:root { --fa: var(--app-accent, #7c3aed); }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1f2937; background: #f6f5fb; }
a { color: var(--fa); }
.fa-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #ece9f6; position: sticky; top: 0; z-index: 10; }
.fa-bar img { width: 26px; height: 26px; }
.fa-bar .name { font-weight: 700; }
.fa-bar .sp { flex: 1; }
.fa-btn { border: 0; border-radius: 8px; background: var(--fa); color: #fff; font-weight: 600; padding: 9px 15px; cursor: pointer; font-size: 14px; }
.fa-btn:hover { filter: brightness(1.08); }
.fa-btn.ghost { background: #f1eefb; color: var(--fa); }
.fa-btn.sm { padding: 6px 11px; font-size: 13px; }
.fa-btn.danger { background: #fdecec; color: #c0362c; }
.wrap { max-width: 860px; margin: 22px auto; padding: 0 16px; }
h1.pt { font-size: 22px; margin: 0 0 4px; }
.muted { color: #6b7280; font-size: 13px; }
.card { background: #fff; border: 1px solid #ece9f6; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,12,40,.03); }
.card.accent { border-top: 4px solid var(--fa); }
.row { display: flex; align-items: center; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #f0eef7; cursor: pointer; }
.list-item:hover { background: #faf9fe; }
.list-item .t { font-weight: 600; }
.list-item .d { color: #6b7280; font-size: 12px; }
.list-item .sp { flex: 1; }
input.fld, textarea.fld, select.fld { width: 100%; padding: 10px 12px; border: 1px solid #d8d3ea; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fff; }
input.fld:focus, textarea.fld:focus, select.fld:focus { outline: none; border-color: var(--fa); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fa) 16%, transparent); }
.q-title { font-size: 16px; font-weight: 600; border: 0; border-bottom: 2px solid #efedf7; border-radius: 0; padding: 6px 2px; }
.q-title:focus { box-shadow: none; border-bottom-color: var(--fa); }
.opt-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.opt-row input { flex: 1; }
.icon-btn { border: 0; background: none; cursor: pointer; color: #94a3b8; font-size: 18px; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: #f1eefb; color: var(--fa); }
.chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #f1eefb; color: var(--fa); }
.chip.live { background: #e7f7ee; color: #128a4b; }
.tabs { display: flex; gap: 4px; margin: 6px 0 14px; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; color: #6b7280; }
.tabs button.on { background: #fff; color: var(--fa); box-shadow: 0 1px 3px rgba(16,12,40,.08); }
.addbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.addbar button { border: 1px dashed #cfc8e6; background: #fff; color: #5b5470; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.addbar button:hover { border-color: var(--fa); color: var(--fa); }
.share { display: flex; gap: 8px; align-items: center; background: #faf9fe; border: 1px solid #ece9f6; border-radius: 8px; padding: 8px 10px; margin-top: 10px; }
.share code { flex: 1; font-size: 12px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.resp { width: 100%; border-collapse: collapse; font-size: 13px; }
table.resp th, table.resp td { border: 1px solid #ece9f6; padding: 8px 10px; text-align: left; vertical-align: top; }
table.resp th { background: #faf9fe; }
.empty { text-align: center; color: #9aa0ac; padding: 50px 20px; }
.empty .big { font-size: 40px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 999; }
/* public fill */
.fill-hero { border-top: 8px solid var(--fa); }
.req { color: #dc2626; }
label.qlab { display: block; font-weight: 600; margin-bottom: 8px; }
.thanks { text-align: center; padding: 40px 20px; }
/* print — clean response reports (hide chrome/controls) */
@media print {
  .fa-bar, .addbar, .tabs, .fa-btn, .icon-btn, #rsearch, #print, #csv { display: none !important; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  body { background: #fff; }
}
