/* ============================================================ Shipping voice-decision study — shared styles for the `decision` and `outro` apps. Adapted from studies/19-dnd/software (dealnodeal.css + study.css). ============================================================ */ @keyframes page-in { from { opacity: 0; } to { opacity: 1; } } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: #f0f0f2; color: #111; animation: page-in 0.25s ease; } .otree-title { display: none !important; } /* ── Page wrapper ─────────────────────────────────────────── */ .r-page { max-width: 680px; margin: 0 auto; padding: 28px 16px 40px; } .r-page.has-pill { padding-bottom: 120px; } .r-progress { height: 3px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-bottom: 6px; } .r-progress-fill { height: 100%; background: #3b82f6; border-radius: 99px; transition: width .3s; } .r-meta { display: flex; justify-content: space-between; font-size: .78rem; color: #9ca3af; margin-bottom: 20px; } /* ── Cards ────────────────────────────────────────────────── */ .r-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05); padding: 24px; margin-bottom: 12px; } .r-card h2 { font-size: 1.1rem; font-weight: 700; color: #111; margin: 0 0 12px; } .r-card p { font-size: .92rem; color: #4b5563; line-height: 1.65; margin: 0 0 10px; } .r-card p:last-child { margin: 0; } .r-card-label { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9ca3af; margin-bottom: 14px; } .r-card.emphasis { border-left: 3px solid #3b82f6; background: #f8fbff; } .bonus-callout { font-weight: 700; color: #1d4ed8; } /* ── Results payoff breakdown ────────────────────────────── */ .payoff { margin-top: 4px; } .payoff-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: .92rem; color: #4b5563; } .payoff-row .amount { font-variant-numeric: tabular-nums; white-space: nowrap; } .payoff-row.total { border-bottom: none; border-top: 2px solid #e5e7eb; margin-top: 4px; padding-top: 12px; font-size: 1.1rem; font-weight: 800; color: #111; } .payoff-row.total .amount { color: #1d4ed8; } .payoff-note { margin-top: 14px; font-size: .85rem; color: #9ca3af; } /* ── Intro / step lists ──────────────────────────────────── */ .intro-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05); padding: 28px 24px; margin-bottom: 12px; } .intro-card h2 { font-size: 1.1rem; font-weight: 700; color: #111; margin: 0 0 12px; } .intro-card p { font-size: .92rem; color: #4b5563; line-height: 1.65; margin: 0 0 10px; } .step-list { list-style: none; padding: 0; margin: 12px 0 0; } .step-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .9rem; color: #4b5563; border-bottom: 1px solid #f3f4f6; line-height: 1.5; } .step-list li:last-child { border-bottom: none; } .step-num { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #eff6ff; color: #3b82f6; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; } /* ── Delivery-history chart + table ──────────────────────── */ .delivery-chart { width: 100%; height: 300px; margin: 4px 0 8px; } .chart-caption { font-size: .8rem; color: #9ca3af; line-height: 1.5; margin: 0 0 4px; } .delivery-table { width: 100%; border-collapse: collapse; font-size: .86rem; } .delivery-table caption { caption-side: top; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9ca3af; margin-bottom: 10px; } .delivery-table th, .delivery-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: center; } .delivery-table thead th { background: #f9fafb; font-weight: 600; color: #374151; } .delivery-table tbody th { background: #f9fafb; font-weight: 600; } .delivery-table td.unknown { color: #c7cad1; font-weight: 700; } /* Blank cell on the pre-reveal screen: no value, no "?" */ .delivery-table td.blank { background: #fafafb; } .delivery-table td.blank::after { content: "\00a0"; } .company-a { color: #2563eb; } .company-b { color: #d97706; } /* ── Voice instruction banner ───────────────────────────── */ .voice-instruction { background: #dbeafe; border: 1px solid #93c5fd; border-radius: 10px; padding: 18px 22px; margin: 18px 0 4px; text-align: center; } .voice-instruction p { font-size: .82rem; color: #3b82f6; margin: 0 0 6px; } .voice-instruction p:last-child { margin: 0; } p.say-this { font-size: 1.5rem; font-weight: 700; line-height: 1.4; color: #3b82f6; } /* Staged entrance on ChoiceSet: the blue instruction pops in first, the table card fades in about a second later. */ @keyframes vi-pop { 0% { opacity: 0; transform: scale(0.96) translateY(6px); } 100% { opacity: 1; transform: scale(1) translateY(0); } } @keyframes card-in { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } } .voice-instruction.animate-in { animation: vi-pop 0.35s ease-out both; } .r-card.reveal-delayed { animation: card-in 0.45s ease-out 0.9s both; } @media (prefers-reduced-motion: reduce) { .voice-instruction.animate-in, .r-card.reveal-delayed { animation: none; } } /* ── Floating voice pill ────────────────────────────────── */ .voice-pill { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 50px; padding: 12px 22px; box-shadow: 0 2px 16px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06); display: flex; align-items: center; gap: 12px; z-index: 1000; transition: box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease; } /* Hidden until the reading delay elapses (decision.js removes this class) */ .voice-pill.is-pending { opacity: 0; transform: translate(-50%, 26px); pointer-events: none; } /* Salient entrance when the recorder is about to arm */ @keyframes pill-appear { 0% { opacity: 0; transform: translate(-50%, 30px) scale(0.9); } 55% { opacity: 1; transform: translate(-50%, -8px) scale(1.06); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } } .voice-pill.pill-appear { animation: pill-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); } /* Amber "get ready" state during the pre-roll, just before recording starts */ .voice-pill.is-arming { box-shadow: 0 0 0 4px rgba(245, 158, 11, .30), 0 6px 26px rgba(245, 158, 11, .28), 0 2px 8px rgba(0,0,0,.08); } .voice-pill.is-arming .status-text { color: #b45309; font-weight: 700; } .voice-pill.is-arming .recording-indicator { background: #f59e0b; animation: pulse 0.9s ease-in-out infinite; } .voice-pill.is-recording { box-shadow: 0 0 0 4px rgba(239,68,68,.25), 0 4px 24px rgba(239,68,68,.18), 0 2px 8px rgba(0,0,0,.08); } .recording-indicator { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; transition: background .3s; } .recording-indicator.active { background: #ef4444; animation: pulse 1.5s ease-in-out infinite; } .recording-indicator.has-recording { background: #22c55e; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.3); } } .status-text { font-size: .85rem; font-weight: 500; color: #374151; min-width: 120px; text-align: center; } .pill-btn { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; background: #f3f4f6; color: #374151; flex-shrink: 0; } .pill-btn:hover:not(:disabled) { background: #e5e7eb; transform: scale(1.05); } .pill-btn:active:not(:disabled) { transform: scale(.95); } .pill-btn:disabled { opacity: .35; cursor: not-allowed; } .pill-btn svg { width: 18px; height: 18px; } .pill-btn.record-btn { background: #ef4444; color: #fff; } .pill-btn.record-btn:hover:not(:disabled) { background: #dc2626; } .pill-btn.record-btn.recording { background: #374151; } .pill-btn.record-btn.recording:hover:not(:disabled) { background: #1f2937; } /* Icons that decision.js reveals by toggling inline display */ #dec-stop-icon { display: none; } .pill-spacer { height: 96px; } /* ── Busy overlay + spinner ─────────────────────────────── */ #dec-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(244, 244, 248, 0.94); opacity: 0; transition: opacity 0.2s ease; } #dec-overlay[hidden] { display: none; } #dec-overlay.visible { opacity: 1; } .dec-spinner { width: 44px; height: 44px; border: 4px solid #c7d2fe; border-top-color: #3b82f6; border-radius: 50%; animation: dec-spin 0.8s linear infinite; } @keyframes dec-spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .dec-spinner { animation-duration: 2s; } } .dec-overlay-text { font-size: .95rem; color: #4b5563; margin: 0; } /* ── Final-choice approval panel ────────────────────────── */ #approval-panel { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.12); padding: 22px 24px 30px; transform: translateY(100%); transition: transform 0.18s ease; z-index: 1002; max-width: 620px; margin: 0 auto; } #approval-panel.visible { transform: translateY(0); } .approval-title { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #9ca3af; text-align: center; margin-bottom: 12px; } .approval-transcript { font-size: 1.15rem; font-weight: 600; color: #111; text-align: center; line-height: 1.45; margin: 0 0 8px; } .approval-coded { font-size: .9rem; color: #4b5563; text-align: center; margin: 0 0 18px; } .approval-actions { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; } .approval-btn { flex: 1; padding: 13px 12px; border-radius: 9px; border: 1.5px solid #e5e7eb; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .12s; } .approval-btn.ghost { background: #fff; color: #6b7280; } .approval-btn.ghost:hover { background: #f3f4f6; color: #374151; } .approval-btn.primary { background: #3b82f6; border-color: #3b82f6; color: #fff; } .approval-btn.primary:hover { background: #2563eb; } /* ── BDM guaranteed-amount slider ───────────────────────── */ .bdm-slider-wrap { margin-top: 16px; } .bdm-slider-value { text-align: center; font-size: 1.1rem; font-weight: 500; color: #9ca3af; margin-bottom: 12px; font-variant-numeric: tabular-nums; } .bdm-slider-value.touched { font-size: 1.8rem; font-weight: 800; color: #1d4ed8; } .bdm-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: #e5e7eb; outline: none; cursor: pointer; } /* The handle stays invisible (but the track is still clickable/draggable at its position) until the participant actually interacts — see bdm_slider.js — so no default value is shown before they've answered. */ .bdm-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #3b82f6; box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 3px solid #fff; cursor: pointer; opacity: 0; transition: opacity .15s; } .bdm-slider.touched::-webkit-slider-thumb { opacity: 1; } .bdm-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #3b82f6; box-shadow: 0 1px 4px rgba(0,0,0,.25); border: 3px solid #fff; cursor: pointer; opacity: 0; transition: opacity .15s; } .bdm-slider.touched::-moz-range-thumb { opacity: 1; } .bdm-slider-ticks { display: flex; justify-content: space-between; font-size: .8rem; color: #9ca3af; margin-top: 6px; } /* ── Comprehension radios ───────────────────────────────── */ .cq-question { font-size: .95rem; font-weight: 700; color: #111; margin-bottom: 16px; line-height: 1.45; } .cq-options { display: flex; flex-direction: column; gap: 8px; } .cq-option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: .88rem; color: #374151; line-height: 1.45; transition: border-color .15s, background .15s; user-select: none; } .cq-option:hover { border-color: #93c5fd; background: #f0f7ff; } .cq-option.selected { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; } .cq-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; accent-color: #3b82f6; } .r-field-group { margin-top: 20px; } .r-field-group:first-child { margin-top: 0; } /* ── Text / number inputs (outro) ───────────────────────── */ .r-input, .r-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: .88rem; color: #111; background: #fff; box-sizing: border-box; outline: none; font-family: inherit; transition: border-color .15s; } .r-textarea { resize: vertical; min-height: 80px; } .r-input:focus, .r-textarea:focus { border-color: #3b82f6; } .r-label { display: block; font-size: .92rem; font-weight: 600; color: #111; margin-bottom: 10px; } /* ── Buttons ────────────────────────────────────────────── */ .btn-center { text-align: center; margin-top: 24px; } .otree-btn-next { display: inline-flex; align-items: center; padding: 10px 28px; border-radius: 8px; font-size: .88rem; font-weight: 500; border: none; cursor: pointer; background: #3b82f6; color: #fff; box-shadow: 0 1px 3px rgba(59,130,246,.45); transition: background .15s; } .otree-btn-next:hover { background: #2563eb; } .otree-btn-next:disabled { opacity: .5; cursor: not-allowed; } /* ── Responsive ─────────────────────────────────────────── */ @media (max-width: 480px) { .voice-pill { padding: 8px 14px; gap: 8px; bottom: 20px; max-width: calc(100% - 24px); } .status-text { display: none; } .pill-btn { width: 38px; height: 38px; } }