/* ═══════════════════════════════════════════════════════════ DISCLOSURE STUDY — SHARED STYLES ═══════════════════════════════════════════════════════════ */ /* ─── Base overrides ─── */ body { background: #f0f2f7; font-family: 'Segoe UI', Arial, sans-serif; } .otree-title { display: none; } /* hide default oTree title; pages set their own */ /* ─── Page wrapper ─── */ .ds-page { max-width: 840px; margin: 0 auto; padding: 24px 16px 60px; } .ds-title { font-size: 22px; font-weight: 700; color: #1a365d; margin-bottom: 4px; } .ds-subtitle { font-size: 14px; color: #718096; margin-bottom: 24px; } /* ─── Card ─── */ .card { background: #fff; border-radius: 10px; padding: 28px 32px; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin-bottom: 18px; } .card-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: #2b6cb0; font-weight: 700; margin: 24px 0 14px; padding-bottom: 6px; border-bottom: 2px solid #ebf8ff; } /* ─── Callouts ─── */ .callout { border-left: 4px solid #2b6cb0; background: #ebf4ff; border-radius: 0 6px 6px 0; padding: 12px 16px; margin: 16px 0; font-size: 14px; color: #2a4365; line-height: 1.6; } .callout.green { border-color: #38a169; background: #f0fff4; color: #276749; } .callout.warn { border-color: #d69e2e; background: #fffff0; color: #744210; } /* ─── System Notice (disclosure condition) — yellow notice box ─── */ .system-notice { border: 2px solid #f6ad55; border-radius: 10px; background: #fffbeb; overflow: hidden; margin: 20px 0; } .system-notice-header { background: #fef08a; color: #92400e; padding: 10px 18px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #f6ad55; } .system-notice-body { padding: 18px 20px; font-size: 14px; color: #78350f; line-height: 1.75; } /* ─── Schedule grid ─── */ .schedule-wrap { margin-top: 18px; } .schedule-header { font-size: 12px; font-weight: 700; color: #4a5568; margin-bottom: 10px; display: flex; gap: 18px; align-items: center; } .schedule-legend { display: flex; gap: 14px; margin-bottom: 10px; font-size: 11px; color: #718096; } .legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; } .legend-assigned { background: #e53e3e; } .legend-current { background: #2b6cb0; } .schedule-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; } .schedule-slot { border-radius: 5px; padding: 6px 4px; text-align: center; font-size: 10px; font-weight: 600; line-height: 1.3; } .schedule-slot.assigned { background: #fed7d7; color: #9b2c2c; border: 1px solid #fc8181; } .schedule-slot.current { background: #2b6cb0; color: #fff; border: 1px solid #2b6cb0; } /* ─── Persistent disclosure banner (treatment, MainTask only) ─── */ .persistent-banner { background: #2d3748; color: #e2e8f0; padding: 10px 18px; font-size: 13px; line-height: 1.5; border-radius: 8px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; } .persistent-banner strong { color: #fbd38d; } /* ─── Task HUD ─── */ .task-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } .hud-tile { background: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: 0 2px 6px rgba(0,0,0,.06); text-align: center; } .hud-val { font-size: 28px; font-weight: 700; color: #1a365d; } .hud-label { font-size: 11px; color: #a0aec0; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; } /* ─── Task main panel ─── */ .task-panel { display: grid; grid-template-columns: 1fr 320px; gap: 16px; } /* Sentence queue */ .sentence-queue { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.06); } .queue-title { font-size: 14px; font-weight: 700; color: #2d3748; margin-bottom: 4px; } .queue-hint { font-size: 12px; color: #718096; font-style: italic; margin-bottom: 14px; } .sentence-item { border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 11px 14px; margin-bottom: 9px; cursor: pointer; transition: border-color .15s, background .15s; } .sentence-item:hover { border-color: #90cdf4; background: #ebf8ff; } .sentence-item.selected { border-color: #2b6cb0; background: #ebf8ff; } .sentence-item.submitted{ opacity: .45; cursor: default; background: #f7fafc; } .si-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; gap: 8px; } .si-id { font-size: 11px; color: #a0aec0; flex: 1; } .si-steps { font-size: 12px; font-weight: 700; color: #2b6cb0; white-space: nowrap; } .si-earn { font-size: 12px; font-weight: 700; color: #276749; white-space: nowrap; } .si-cipher { font-family: 'Courier New', monospace; font-size: 12px; color: #4a5568; margin-bottom: 7px; word-break: break-all; } .si-meta { display: flex; gap: 14px; font-size: 11px; color: #a0aec0; } /* Complexity dots */ .complexity { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; vertical-align: middle; } .cx-ultra { background: #6b21a8; } .cx-high { background: #e53e3e; } .cx-med { background: #d69e2e; } .cx-low { background: #38a169; } /* Right column panels */ .result-panel, .action-panel { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.06); margin-bottom: 12px; } .rp-title { font-size: 14px; font-weight: 700; color: #2d3748; margin-bottom: 12px; } .decoded-text { font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.7; padding: 10px 14px; background: #f7fafc; border-radius: 6px; margin-bottom: 8px; word-break: break-word; } .error-letter { color: #e53e3e; text-decoration: underline wavy #e53e3e; font-weight: 600; } .result-meta { font-size: 12px; color: #718096; margin-bottom: 6px; } .earn-update { font-size: 14px; font-weight: 700; color: #276749; } /* Spinner */ .spinner-wrap { display: flex; justify-content: center; padding: 20px 0 16px; } .spinner { width: 52px; height: 52px; border: 5px solid #e2e8f0; border-top-color: #2b6cb0; border-radius: 50%; animation: spin .9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Buttons */ .btn { display: block; width: 100%; padding: 11px 20px; border: none; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: opacity .15s; margin-bottom: 10px; } .btn:last-child { margin-bottom: 0; } .btn:hover { opacity: .88; } .btn:disabled { opacity: .4; cursor: not-allowed; } .btn-primary { background: #2b6cb0; color: #fff; } .btn-green { background: #38a169; color: #fff; } /* ─── Payoff screen ─── */ .payoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; } .payoff-tile { background: #f7fafc; border-radius: 8px; padding: 14px 18px; border-left: 4px solid #2b6cb0; } .payoff-tile.highlight { border-color: #38a169; background: #f0fff4; } .pt-label { font-size: 12px; color: #a0aec0; margin-bottom: 4px; } .pt-val { font-size: 24px; font-weight: 700; color: #1a365d; } .payoff-tile.highlight .pt-val { color: #276749; } .submission-log { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; } .submission-log th { background: #edf2f7; color: #4a5568; padding: 8px 12px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; } .submission-log td { padding: 8px 12px; border-bottom: 1px solid #e2e8f0; color: #4a5568; } .submission-log tr:last-child td { border-bottom: none; } /* ─── Survey forms ─── */ .survey-q { margin-bottom: 28px; } .survey-q label.field-required::after { content: ' *'; color: #e53e3e; } .likert-row { display: flex; border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-top: 8px; } .likert-row label { flex: 1; text-align: center; padding: 10px 4px; cursor: pointer; border-right: 1px solid #e2e8f0; font-size: 13px; color: #718096; transition: background .15s; } .likert-row label:last-child { border-right: none; } .likert-row label:hover { background: #ebf8ff; } .likert-anchors { display: flex; justify-content: space-between; font-size: 11px; color: #a0aec0; margin-top: 3px; } /* ─── Cipher demo (instructions page) ─── */ .cipher-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; } .cipher-box { border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; } .cipher-box-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #a0aec0; font-weight: 700; margin-bottom: 6px; } .cipher-text { font-family: 'Courier New', monospace; font-size: 14px; color: #2d3748; } /* ─── Consent checkbox row ─── */ .consent-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1.5px solid #e2e8f0; border-radius: 6px; margin-top: 8px; } .consent-row input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; } .consent-row span { font-size: 14px; line-height: 1.6; color: #4a5568; } /* ─── Payoff table (instructions) ─── */ .payoff-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; } .payoff-table th { background: #2b6cb0; color: #fff; padding: 8px 12px; text-align: left; } .payoff-table td { padding: 7px 12px; border-bottom: 1px solid #e2e8f0; color: #4a5568; } .payoff-table tr:nth-child(even) td { background: #f7fafc; } .payoff-table tr:last-child td { border-bottom: none; } /* ─── Numbered step list (Instructions page) ─── */ .steps-list { margin: 14px 0 20px; } .step-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #e2e8f0; } .step-num { flex-shrink: 0; width: 28px; height: 28px; background: #2b6cb0; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; } .step-body { font-size: 14px; color: #4a5568; line-height: 1.65; padding-top: 2px; } /* ─── Word-by-word progress bar ─── */ .decode-progress-wrap { margin: 16px 0; } .decode-progress-bar { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin-bottom: 8px; } .decode-progress-fill { height: 100%; background: linear-gradient(90deg, #4299e1, #63b3ed); border-radius: 6px; width: 0%; transition: width 0.3s ease; } .decode-progress-label { font-size: 12px; color: #718096; text-align: center; } /* ─── Tier badges ─── */ .tier-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; } .tier-high { background: #fed7d7; color: #c53030; } .tier-moderate { background: #feebc8; color: #c05621; } .tier-low { background: #c6f6d5; color: #276749; } /* ─── Word-level error highlight ─── */ .error-word { color: #e53e3e; text-decoration: underline wavy #e53e3e; font-weight: 600; } /* ─── Matching screen ─── */ .matching-screen { text-align: center; padding: 60px 20px; } .matching-spinner-large { width: 60px; height: 60px; border: 5px solid #e2e8f0; border-top-color: #4299e1; border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 24px; } .matched-badge { display: inline-block; background: #c6f6d5; color: #276749; padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 16px; margin-bottom: 16px; } /* ─── Responsive ─── */ @media (max-width: 640px) { .task-panel { grid-template-columns: 1fr; } .task-hud { grid-template-columns: 1fr 1fr; } .payoff-grid { grid-template-columns: 1fr; } .cipher-demo { grid-template-columns: 1fr; } .schedule-grid { grid-template-columns: repeat(4, 1fr); } }