/* 共享样式:移动优先(PRD 5.5.1),德/法长词断行适配(PRD 5.9.2) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f6f8; --card: #fff; --ink: #1c2330; --sub: #6b7280;
  --brand: #2563eb; --brand-ink: #fff; --line: #e5e7eb; --ok: #16a34a; --bad: #dc2626;
}
html, body { background: var(--bg); color: var(--ink); font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", sans-serif; }
body { min-height: 100vh; overflow-wrap: break-word; hyphens: auto; }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
h1 { font-size: 20px; margin-bottom: 8px; }
h2 { font-size: 16px; margin: 12px 0 8px; }
p.sub { color: var(--sub); font-size: 14px; line-height: 1.5; }
label { display: block; font-size: 13px; color: var(--sub); margin: 10px 0 4px; }
input[type=text], input[type=email], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink);
}
button { font-family: inherit; cursor: pointer; }
.btn { display: inline-block; width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-size: 15px; font-weight: 600; }
.btn.secondary { background: #eef2f7; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; min-height: 18px; }
.ok-msg { color: var(--ok); font-size: 13px; margin-top: 8px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap; gap: 4px; }
.topbar .title { font-weight: 700; font-size: 15px; }
.topbar .row { flex-wrap: wrap; justify-content: flex-end; min-width: 0; flex: 1; }
.lang-btn { border: 1px solid var(--line); background: #fff; color: var(--sub); border-radius: 8px;
  padding: 4px 6px; font-size: 11px; margin-left: 3px; }
.lang-btn.active { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid .thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3;
  background: #e6e8ec; border: 2px solid transparent; }
.grid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.grid .thumb.selected { border-color: var(--brand); }
.grid .thumb .badge { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.6); color: #fff;
  border-radius: 6px; font-size: 11px; padding: 2px 6px; }
.grid .thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff;
  border-radius: 6px; font-size: 11px; padding: 2px 6px; }
.grid .thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.grid .thumb .mark { position: absolute; right: 4px; top: 4px; border-radius: 8px; font-size: 10px;
  padding: 2px 6px; color: #fff; }
.mark.m2 { background: var(--ok); } .mark.m1 { background: #d97706; } .mark.m0 { background: var(--bad); }
.likert { display: flex; gap: 6px; margin: 6px 0 2px; }
.likert button { flex: 1; padding: 10px 0; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--sub); }
.likert button.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.anchors { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); margin-bottom: 4px; }
.dim { margin-bottom: 14px; }
.dim .q { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.media-zone { position: relative; }
/* 水印暗纹(PRD 5.4.2 内容层):user_id 哈希重复平铺 */
.wm { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5;
  display: flex; flex-wrap: wrap; align-content: space-around; opacity: .07; }
.wm span { transform: rotate(-24deg); font-size: 12px; color: #000; padding: 26px 30px; white-space: nowrap; }
video { width: 100%; border-radius: 10px; background: #000; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; background: #eef2f7; color: var(--sub); }
.task-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task-item:last-child { border-bottom: none; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center;
  justify-content: center; z-index: 50; padding: 20px; }
.modal .card { width: 100%; max-width: 420px; margin: 0; }
.hidden { display: none !important; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 60; display: flex;
  align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; }
.progress { font-size: 12px; color: var(--sub); }
table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th, table.simple td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .wrap { max-width: 760px; } .grid { grid-template-columns: repeat(4, 1fr); } }
