/* guitar.ligardi.ru — minimal, печатаемый, плотный */
:root {
  --bg: #fafaf7;
  --panel: #fff;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e6e3d9;
  --accent: #c2410c;
  --accent-bg: #fef1e8;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

.topbar {
  background: #1a1a1a;
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .brand { display: flex; gap: 10px; align-items: baseline; }
.topbar .logo { font-size: 22px; color: var(--accent); }
.topbar .name { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 600; }
.topbar .tag { font-size: 13px; color: #999; }

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hero .lead { color: var(--muted); font-size: 15px; max-width: 600px; }

.drop {
  margin-top: 28px;
  border: 2px dashed #c5c2b3;
  border-radius: 18px;
  background: var(--panel);
  position: relative;
  cursor: pointer;
  transition: all .15s ease;
  overflow: hidden;
}
.drop:hover { border-color: var(--accent); background: var(--accent-bg); }
.drop.drag { border-color: var(--accent); background: var(--accent-bg); transform: scale(1.005); }
.drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.drop-inner {
  padding: 50px 30px;
  text-align: center;
  pointer-events: none;
}
.drop-icon { font-size: 42px; margin-bottom: 8px; }
.drop-title { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.drop-sub { color: var(--muted); font-size: 13px; }

.opts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.opts label {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.opts input, .opts select {
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}

.progress {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-top: 32px;
  box-shadow: var(--shadow);
}
.progress h2 { margin: 0 0 14px; font-size: 22px; }
.prog-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.prog-bar {
  flex: 1; height: 12px; background: #ece9dd; border-radius: 6px; overflow: hidden;
}
#prog-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), #ea580c);
  transition: width .4s ease;
}
.prog-pct { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 50px; text-align: right; }
.prog-step { color: var(--muted); font-size: 14px; }
.job-id { color: var(--muted); font-size: 12px; margin-top: 8px; }
.job-id code { background: #ece9dd; padding: 2px 6px; border-radius: 4px; }

.result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-top: 32px;
  box-shadow: var(--shadow);
}
.result h2 { margin: 0 0 14px; font-size: 22px; }
.result-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
  margin-bottom: 18px;
}
.result-meta b { color: var(--ink); }
.result-actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: #f0ede2; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: #9a3208; }
.btn.ghost { background: transparent; }

.result-frame {
  width: 100%;
  min-height: 800px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.error {
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 18px;
  padding: 24px;
  margin-top: 24px;
}
.error h2 { margin: 0 0 12px; color: #b91c1c; }
.error pre {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.hidden { display: none !important; }

.botbar {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.botbar a { color: var(--accent); text-decoration: none; }
