:root { --ink: #263b38; --muted: #71817c; --accent: #287264; --accent-dark: #1d574b; --paper: #f7f8f4; --line: #dfe6e0; --soft: #edf3ed; --radius: 18px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: wait; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #9bbfa6; outline-offset: 4px; }
.site-header { max-width: 1160px; margin: auto; height: 86px; display: flex; align-items: center; gap: 10px; padding: 0 32px; font-size: 15px; font-weight: 600; }
.brand-mark { font-size: 34px; line-height: 1; color: var(--accent); }
.header-note { margin-left: auto; font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 400; }
.page-shell { width: min(100% - 40px, 710px); margin: 30px auto 60px; }
.intro-card { background: #fff; border: 1px solid var(--line); padding: 44px 48px; border-radius: 24px; box-shadow: 0 8px 40px #243b3205; }
.eyebrow { font-size: 12px; color: var(--accent); letter-spacing: 1.5px; font-weight: 600; }
h1 { font-size: clamp(26px, 4vw, 35px); font-weight: 600; letter-spacing: -.8px; line-height: 1.4; margin: 12px 0 16px; }
h2 { font-size: 15px; font-weight: 600; margin: 23px 0 10px; }
p { line-height: 1.9; }
.lead { font-size: 15px; color: #61746d; margin: 0; }
.muted { color: var(--muted); }
.study-facts { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0; font-size: 12px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.study-facts b { font-size: 17px; margin-right: 4px; }
.consent-copy p { font-size: 13px; margin: 9px 0; color: #62736c; }
.consent-form { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 25px; }
.section-label { font-size: 14px; font-weight: 600; }
.section-label span { font-size: 12px; font-weight: 400; margin-left: 10px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0 24px; }
label { font-size: 13px; line-height: 1.7; }
select, textarea, input[type=password], input[type=text] { width: 100%; color: var(--ink); border: 1px solid #d5dfd7; border-radius: 10px; background: #fafcf9; padding: 12px; margin-top: 7px; }
.name-field { display: block; margin-bottom: 22px; font-size: 15px; font-weight: 600; }
.name-field input { font-size: 16px; font-weight: 400; }
.profile-notice { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--soft); font-size: 13px; }
select { height: 46px; }
textarea { resize: vertical; min-height: 110px; }
.check-label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check-label input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.agreement { margin: 0 0 20px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 12px 22px; border-radius: 11px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary-button:hover { background: var(--soft); }
.full-width { width: 100%; }
.site-footer { font-size: 11px; letter-spacing: .5px; text-align: center; color: #8a9992; margin: 0 20px 28px; }
.review-shell { width: min(100% - 40px, 960px); margin: 8px auto 34px; }
.progress-heading { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border: none; border-radius: 5px; background: #e5eae3; overflow: hidden; }
progress::-webkit-progress-bar { background: #e5eae3; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 5px; }
.task-heading { text-align: center; margin: 27px 0 20px; }
.task-heading h1 { font-size: 23px; margin: 8px 0 5px; }
.task-heading p { font-size: 12px; margin: 0; }
.image-stage { display: flex; justify-content: center; gap: 18px; min-height: 350px; }
.image-card { margin: 0; position: relative; flex-shrink: 1; min-width: 0; }
.stimulus { display: block; width: 350px; height: 350px; object-fit: contain; background: #eef0eb; border: 1px solid #dde4dc; border-radius: 14px; }
.image-card figcaption { text-align: center; color: var(--muted); font-size: 12px; margin-top: 9px; }
.image-stage.pair .stimulus { width: min(350px, 40vw); height: min(350px, 40vw); }
.image-stage.rank { gap: 14px; min-height: 276px; }
.image-stage.rank .stimulus { width: min(276px, 28vw); height: min(276px, 28vw); }
.reference-section { text-align: center; margin: 0 auto 16px; }
.reference-image { width: 150px; height: 150px; object-fit: contain; border-radius: 10px; display: block; margin: 8px auto 0; border: 1px solid var(--line); }
.image-caption { font-size: 11px; color: var(--muted); }
.answer-area { margin: 22px auto 0; max-width: 740px; }
.emotion-buttons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.emotion-button { border: 1px solid #d6dfd7; border-radius: 11px; background: #fff; color: var(--ink); padding: 13px 0 10px; min-height: 65px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; }
.emotion-button:hover { border-color: var(--accent); background: #edf5ee; }
.emotion-button.selected, .scale-button.selected { border-color: var(--accent); background: #e4f1e8; color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }
.annotation-question { min-width: 0; margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.annotation-question legend { font-size: 13px; font-weight: 600; padding: 0 5px; }
.scale-buttons { display: grid; gap: 8px; }
.intensity-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.severity-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scale-button { min-height: 46px; padding: 9px 5px; font-size: 13px; color: var(--ink); background: #fafcf9; border: 1px solid var(--line); border-radius: 9px; }
.scale-button:hover { background: var(--soft); border-color: var(--accent); }
.reason-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.reason-option { padding: 7px 0; }
.reason-option span { min-width: 0; overflow-wrap: anywhere; }
.mode1-submit { display: flex; margin: 20px auto 0; min-width: 180px; }
.mode1-submit:disabled { cursor: not-allowed; }
kbd { font: inherit; font-size: 10px; color: #93a297; }
.unnatural-section { margin-top: 22px; border: 2px solid #d9aa70; border-radius: 15px; background: #fff8ed; overflow: hidden; }
.unnatural-section.is-checked { border-color: #a45c21; background: #fff4e4; }
.unnatural-row { display: flex; align-items: center; min-height: 72px; padding: 0 20px; gap: 12px; }
.unnatural-row label { flex: 1; min-height: 68px; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; color: #794019; }
.unnatural-row .check-label input { width: 28px; height: 28px; margin: 0; accent-color: #a45c21; }
.unnatural-row kbd { font-size: 13px; font-weight: 600; color: #794019; border: 1px solid #d9aa70; border-radius: 5px; padding: 3px 7px; }
.unnatural-details { padding: 0 16px 16px; border-top: 1px solid #e6c7a0; }
.unnatural-details .annotation-question { border-color: #e6c7a0; background: #fffdf9; }
.unnatural-details legend { color: #794019; font-size: 16px; }
.unnatural-details .scale-button { min-height: 52px; font-size: 16px; }
.unnatural-details .reason-option { min-height: 52px; padding: 10px; border: 1px solid #ead9c4; border-radius: 9px; font-size: 15px; }
.unnatural-details .reason-option:has(input:checked) { background: #fff0d9; border-color: #a45c21; }
.unnatural-details .reason-option input { width: 22px; height: 22px; accent-color: #a45c21; }
.unnatural-comment { margin: 18px auto 0; padding: 16px; border-radius: 12px; background: #f6e9d6; }
.unnatural-comment label { color: #794019; font-size: 15px; }
.unnatural-comment textarea { background: white; font-size: 16px; min-height: 100px; }
.review-navigation { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.review-navigation button:disabled { cursor: not-allowed; }
.packet-progress { font-size: 12px; text-align: right; margin: 10px 0 0; color: var(--accent); }
.status { font-size: 12px; text-align: center; min-height: 22px; margin: 12px 0 4px; }
.status.error { color: #a34437; }
.retry { display: flex; margin: 8px auto; }
.review-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; color: #86958a; margin: 18px 0 0; }
.save-dot { height: 5px; width: 5px; background: #649d72; border-radius: 50%; }
.pair-questions { background: white; padding: 6px 18px; border: 1px solid var(--line); border-radius: 14px; }
.pair-question { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pair-question:last-child { border: 0; }
.pair-question legend { float: left; width: 65%; font-size: 13px; padding: 5px 0; }
.choice-label { background: #f1f5ee; padding: 7px 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.choice-label input { accent-color: var(--accent); margin: 0; }
.pair-submit, .rank-submit { display: flex; margin: 17px auto 0; min-width: 180px; }
.rank-pick { width: 100%; margin-top: 9px; padding: 10px; border-radius: 9px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; }
.rank-pick.selected { border-color: var(--accent); background: var(--soft); }
.rank-order { text-align: center; font-size: 13px; margin: 16px 0 10px; }
.rank-reset { display: block; margin: auto; }
.text-button { border: 0; background: transparent; color: var(--accent); text-decoration: none; font-size: 13px; cursor: pointer; padding: 6px; }
.done-card { text-align: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 32px; margin: 0 auto 23px; display: grid; place-items: center; }
.done-card h1 { font-size: 29px; }
.result-downloads { margin-top: 25px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-downloads p { font-size: 12px; }
.download-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.download-actions a { font-size: 12px; }
.packet-detail { font-size: 11px; }
.export-cell a { display: block; white-space: nowrap; font-size: 12px; margin: 5px 0; }
.feedback-form { margin: 30px 0; text-align: left; }
.feedback-form button { margin-top: 14px; }
.success-message { font-size: 13px; color: var(--accent); }
.closing-note { font-size: 12px; margin-top: 24px; }
.login-card { max-width: 460px; margin: 80px auto; }
.login-card h1 { font-size: 25px; }
.login-card form { margin-top: 25px; }
.login-card button { margin-top: 20px; }
.error-message { color: #a34437; font-size: 13px; }
.admin-shell { width: min(100% - 48px, 1160px); margin: 28px auto 60px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; }
.admin-heading h1 { font-size: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 25px; }
.stat { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
.stat span { font-size: 12px; color: var(--muted); display: block; }
.stat b { display: block; font-weight: 500; font-size: 31px; margin-top: 12px; }
.stat small { font-size: 17px; color: var(--muted); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.packet-allocations { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0 24px; }
.packet-allocation { padding: 13px; background: white; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.packet-allocation span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { border-collapse: collapse; min-width: 850px; width: 100%; text-align: left; font-size: 13px; }
th { color: var(--muted); font-weight: 500; font-size: 12px; background: #f1f5ee; padding: 16px 20px; }
td { padding: 17px 20px; border-top: 1px solid var(--line); }
td progress { width: 125px; height: 4px; }
.table-progress { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.time-cell { font-size: 11px; color: var(--muted); line-height: 1.9; }
.status-badge { background: #f1f3ef; color: #78867e; font-size: 11px; border-radius: 20px; padding: 5px 10px; white-space: nowrap; }
.status-badge.complete { color: var(--accent); background: #e5f1e8; }
.admin-note { font-size: 12px; }
@media (max-width: 600px) {
  .site-header { height: 64px; padding: 0 20px; font-size: 13px; }
  .header-note { font-size: 10px; letter-spacing: 1px; }
  .page-shell { width: calc(100% - 28px); margin: 15px auto 32px; }
  .intro-card { padding: 28px 23px; border-radius: 18px; }
  .study-facts { gap: 13px; font-size: 10px; }
  .field-grid { gap: 10px; }
  .review-shell { width: calc(100% - 28px); margin-top: 8px; }
  .task-heading { margin: 19px 0 15px; }
  .task-heading h1 { font-size: 20px; }
  .image-stage { min-height: min(350px, 86vw); gap: 10px; }
  .stimulus { width: min(350px, 86vw); height: min(350px, 86vw); }
  .emotion-buttons { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .emotion-button { padding: 9px 0 7px; min-height: 54px; font-size: 14px; }
  .answer-area { margin-top: 18px; }
  .annotation-question { padding: 13px 10px; }
  .scale-button { font-size: 12px; }
  .reason-options { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .unnatural-row { padding: 0 14px; }
  .unnatural-row label { font-size: 17px; gap: 10px; }
  .unnatural-details { padding: 0 10px 12px; }
  .unnatural-details .reason-option { font-size: 15px; }
  .image-stage.pair { min-height: 44vw; }
  .image-stage.pair .stimulus { width: 44vw; height: 44vw; border-radius: 10px; }
  .image-stage.rank { min-height: 27vw; gap: 7px; }
  .image-stage.rank .stimulus { width: 28vw; height: 28vw; border-radius: 9px; }
  .pair-question legend { width: 100%; font-size: 12px; }
  .pair-question { gap: 8px; }
  .reference-image { width: 115px; height: 115px; }
  .rank-pick { font-size: 10px; padding: 8px 3px; }
  .rank-order { font-size: 12px; }
  .site-footer { font-size: 10px; }
  .admin-shell { width: calc(100% - 28px); margin-top: 20px; }
  .stats-grid { gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat span { font-size: 10px; }
  .stat b { font-size: 24px; }
  .stat small { font-size: 12px; }
  .admin-actions a { font-size: 12px; padding: 10px 13px; }
  .done-card h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) { button, a { transition: background .12s, border-color .12s; } }
