:root{
  --bg:#f6f7fb;
  --panel:#fff;
  --text:#1f2937;
  --muted:#6b7280;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --border:#e5e7eb;
  --soft:#eef2ff;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
.container{width:min(1120px,calc(100% - 32px));margin:0 auto}
.site-header,.sub-header{
  background:linear-gradient(135deg,#1e3a8a,#2563eb);
  color:#fff;
  padding:52px 0;
}
.sub-header{padding:34px 0}
.eyebrow{margin:0 0 8px;font-weight:700;letter-spacing:.08em;opacity:.9}
h1,h2{line-height:1.25;margin:0 0 14px}
h1{font-size:clamp(28px,4vw,44px)}
h2{font-size:22px}
.lead{max-width:800px;margin:0;opacity:.92;font-size:18px}
.back{display:inline-block;color:#fff;text-decoration:none;margin-bottom:16px;opacity:.9}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:32px 0}
.card,.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding:24px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.card p,.form-help{color:var(--muted)}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  border:none;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}
.button:hover{background:var(--primary-dark)}
.button.full{width:100%;margin-top:8px}
.layout{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:20px;
  align-items:start;
  padding:28px 0 48px;
}
.result-panel{min-width:0}
.form-panel{grid-column:1/-1}
form{display:grid;gap:14px}
label{display:grid;gap:8px;font-weight:700}
input{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 13px;
  font:inherit;
  background:#fff;
}
.required{color:#dc2626}
.result-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ghost{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
  text-decoration:none;
  font-size:14px;
}
.output{
  margin:12px 0 0;
  padding:18px;
  border-radius:14px;
  background:#f9fafb;
  border:1px solid var(--border);
  white-space:pre-wrap;
  word-break:keep-all;
  font-family:inherit;
  min-height:420px;
}
.output.empty{
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
}
.loading{
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  background:var(--soft);
  color:var(--primary-dark);
  font-weight:700;
}
.hidden{display:none}
.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  background:#111827;
  color:#fff;
  padding:12px 16px;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  z-index:50;
}
.google-form{
  width:100%;
  height:1400px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}
@media(max-width:860px){
  .cards,.layout{grid-template-columns:1fr}
  .google-form{height:1500px}
}
