:root {
  --brand: #3d6dff;
  --brand-ink: #1f46c8;
  --ink: #141a2a;
  --muted: #5b6478;
  --line: #dfe3ec;
  --bg: #f4f6fa;
  --card: #ffffff;
  --error: #c62828;
  --ok: #1b8a4b;
  --star: #f5b301;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px; background: #fff; border-bottom: 1px solid var(--line);
}
.logo { height: 26px; width: auto; display: block; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; min-height: 36px;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
h1 { font-size: 22px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { color: var(--muted); margin: 0 0 20px; }
.project { margin: -8px 0 20px; font-size: 14px; color: var(--brand-ink); background: #eef2ff; padding: 8px 12px; border-radius: 8px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.req { color: var(--error); }
input:not([type]), input[type="text"], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
textarea { resize: vertical; min-height: 140px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .upload:focus-within, .stars input:focus-visible + label {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; border-color: var(--brand);
}
.row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } .card { padding: 32px; } h1 { font-size: 26px; } }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; display: flex; justify-content: space-between; gap: 12px; }
.count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.error { color: var(--error); font-size: 14px; margin: 6px 0 0; }
.form-error { background: #fdecec; padding: 10px 12px; border-radius: 8px; }

/* stars: radios visually hidden, labels are the tap targets (44px) */
.stars { display: flex; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  width: 44px; height: 44px; cursor: pointer; border-radius: 8px; display: grid; place-items: center;
  background: no-repeat center/34px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d5d9e3' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
}
.stars label.on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5b301' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
}
.sr, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.upload {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px dashed #b7c0d4; border-radius: 10px;
  color: var(--brand-ink); font-weight: 600; cursor: pointer; background: #fafbff;
}
.upload::before { content: "+"; font-size: 20px; line-height: 1; }
.thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs li { position: relative; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.thumbs button {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}

.consent { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; margin: 6px 0 18px; background: #fbfcfe; }
.consent legend { font-weight: 600; padding: 0 6px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.sub { margin-left: 32px; }
.sub .check-row:has(input:disabled) { color: #9aa2b4; cursor: not-allowed; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
}
.submit:hover { background: var(--brand-ink); }
.submit:disabled { opacity: .6; cursor: progress; }
.fine { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.state { text-align: center; padding: 40px 24px; }
.state p { color: var(--muted); }
.check { width: 56px; height: 56px; border-radius: 50%; background: #e7f6ee; color: var(--ok); font-size: 30px; display: grid; place-items: center; margin: 0 auto 14px; }
@media (prefers-reduced-motion: no-preference) { .submit, .lang button { transition: background-color .15s ease; } }
/* 2026-11-13 video row: the "Remove video" text button */
button.link { border: 0; background: none; padding: 0; color: var(--accent, #3d6bff); text-decoration: underline; cursor: pointer; font: inherit; }
