:root{--bg:#f7f9fc;--fg:#1f2937;--muted:#6b7280;--brand:#2563eb;--brand-2:#1d4ed8;--card:#ffffff;--border:#e5e7eb;}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--fg);background:var(--bg)}
.container{max-width:1000px;margin:0 auto;padding:12px 16px}
a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}
.btn{background:var(--brand);color:#fff;border:none;border-radius:10px;padding:8px 14px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.05)}.btn:hover{background:var(--brand-2)}
input,select,textarea{width:100%;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:#fff}
label{display:block;margin:8px 0 4px;color:var(--muted)}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px;margin:12px 0;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left}
.table th{color:var(--muted);font-weight:600}
.header{background:#fff;border-bottom:1px solid var(--border)}
.header .brand{font-weight:700}
.grid{display:grid;gap:12px}
.grid.two{grid-template-columns:1fr 1fr}
@media (max-width:720px){.grid.two{grid-template-columns:1fr}}

.flash-wrap{margin:8px 0}
.flash{padding:10px;border-radius:10px;margin:6px 0;border:1px solid var(--border)}
.flash.ok{background:#ecfdf5;border-color:#a7f3d0}
.flash.warn{background:#fffbeb;border-color:#fde68a}
.flash.error{background:#fef2f2;border-color:#fecaca}

.survey-body .survey-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:3}
.survey-body .survey-header .container{display:flex;align-items:center;justify-content:space-between}
.bubble-canvas{position:relative;height:calc(100vh - 72px);padding:8px}
.bubble{
  position:absolute;
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 14px;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  font-weight:600;
  user-select:none;
  touch-action:none;
  transform:translateZ(0);
  max-width:40ch;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.axes-overlay{position:absolute;inset:0;width:100%;height:100%}
.axes-overlay line{stroke:#9ca3af;stroke-width:2}
.axes-overlay text{fill:#6b7280;font-weight:600;font-size:14px}
.muted{color:#6b7280}
