/* Feature-specific theme and research layouts. Shared shell: workshop-design.css. */
.participant-desk .research-columns { gap: 1rem; }
.participant-desk #research-cards { background: transparent; }
.participant-desk .research-category { padding: 1rem; min-width: 0; }
.participant-desk .research-category h4 { font-size: 1rem; line-height: 1.5; }
.participant-desk .research-category p { font-size: .9rem; color: #bdcfe7; }
.participant-desk .research-category li { font-size: 1rem; line-height: 1.5; }
.participant-desk .research-category form { padding: .75rem 0 0; border: 0; background: transparent; margin: 1rem 0 0; }
.participant-desk .research-category form button { width: 100%; }
.participant-desk .research-category form input { border-radius: .75rem; }
.desk-autosave { padding: .75rem 1rem; border-radius: .75rem; background: #12483f; color: #c9f8ea; font-size: .9rem; }
.desk-extra-notes { border-top: 1px solid #29486b; border-bottom: 1px solid #29486b; margin: 1.25rem 0; }
.desk-extra-notes > p { font-size: .9rem; color: #c5d4ea; }
.participant-desk #phase-readiness { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid #3a556d; border-radius: 1rem; background: #0d2943; }
.participant-desk #history-save { margin-top: 1rem; }
.participant-desk #challenge-choice { padding: 0; margin: 0; border: 0; background: transparent; }
.participant-desk #challenge-choice > .eyebrow { display: none; }
.participant-desk .theme-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.theme-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.participant-desk .theme-card { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; padding: 0 0 1rem; min-width: 0; overflow: hidden; text-align: left; white-space: normal; border: 1px solid #365778; border-radius: 1.2rem; background: linear-gradient(155deg,#122c50,#0a1833); color: #edf6ff; line-height: 1.5; box-shadow: 0 8px 24px #0002; transition: border-color .15s,background .15s; }
.participant-desk .theme-card:hover { border-color: var(--theme-color); background: #143451; }
.participant-desk .theme-card { position: relative; }
.participant-desk .theme-card.is-active { border-color: #a4f7ff; outline: 2px solid #30d9ff; outline-offset: 2px; background: linear-gradient(155deg,#13446b,#092a48); box-shadow: 0 0 0 4px #0088ff45,0 0 26px #00baff70,inset 0 0 18px #00baff22; }
.theme-card-selected { position: absolute; z-index: 2; top: .65rem; right: .65rem; display: flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid #a1f3ff; border-radius: 2rem; background: linear-gradient(135deg,#1469ed,#174cd0); box-shadow: 0 0 14px #00c8ff75; color: #fff; font-size: .75rem; font-weight: 700; }
.theme-card-selected > span { display: grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; color: #1560d7; font-size: .7rem; }
.theme-card-coach { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2rem; margin: auto 1rem 0; padding: .3rem .65rem; border: 1px solid #40c9fa; border-radius: 2rem; background: #063060; box-shadow: 0 0 12px #00baff45,inset 0 0 10px #00baff22; color: #dcf8ff; font-size: .75rem; font-weight: 700; }
.theme-coach-dots { display: inline-flex; gap: .25rem; }
.theme-coach-dots i { display: block; width: .35rem; height: .35rem; border-radius: 50%; background: #58f2ff; animation: theme-coach-pulse 1.1s infinite; }
.theme-coach-dots i:nth-child(2) { animation-delay: .15s; }
.theme-coach-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes theme-coach-pulse { 0%,70%,100% { opacity: .35; } 35% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .theme-coach-dots i { animation: none; } }
.theme-card-art { display: block; position: relative; aspect-ratio: 2/1; width: 100%; background: #0a203e; color: var(--theme-color); }
.theme-card-art::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#0a1833d9); pointer-events: none; }
.theme-card-illustration { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.theme-card-icon { position: absolute; z-index: 1; left: 1rem; bottom: .4rem; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--theme-color); border-radius: 50%; background: #081c3ee8; box-shadow: 0 0 18px color-mix(in srgb,var(--theme-color) 35%,transparent); }
.theme-card-icon .icon { width: 1.6rem; height: 1.6rem; }
.theme-card-title { padding: 0 1rem; margin-top: .25rem; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.theme-card-description { padding: 0 1rem; color: #c6d7ea; font-weight: 400; font-size: .88rem; }
.theme-card-state { display: block; min-height: 2rem; padding: .3rem 1rem 0; margin-top: auto; font-size: .8rem; color: #7de5d4; }
.theme-exploration:not(:empty) { margin: 1rem 0; padding: 1rem; border: 1px solid #345571; border-radius: 1rem; background: #0b2341; font-size: .9rem; }
.theme-decision { margin-top: 1rem; padding: 1rem; border: 1px solid #328e8a; border-radius: 1rem; background: #092f3c; }
.theme-decision-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 1rem; align-items: start; }
.theme-decision h3 { margin: .25rem 0 1rem; }
.theme-decision label { display: block; margin: .75rem 0 .4rem; }
.theme-decision textarea, .theme-decision select { width: 100%; max-width: 100%; box-sizing: border-box; }
.theme-decision-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.theme-decision-actions button { white-space: normal; flex: 1 1 180px; }
.participant-desk .theme-choice-journey { position: relative; display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1.7fr); gap: 1.25rem; align-items: center; padding: 1.4rem; overflow: hidden; border-color: #218db6; background: radial-gradient(circle at 8% 15%,#20568c70,transparent 35%),radial-gradient(circle at 90% 85%,#005c7550,transparent 35%),#071c40; }
.theme-choice-journey::before { content: "✦ · ✧ · ✦"; position: absolute; top: .25rem; right: 1rem; color: #ffdc46; letter-spacing: .7rem; font-size: 1.1rem; opacity: .6; pointer-events: none; }
.theme-journey-art { position: relative; display: grid; gap: .75rem; min-width: 0; text-align: center; }
.theme-journey-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid #70eaff; border-radius: 1.1rem; box-shadow: 0 0 16px #00baff66; }
.theme-journey-art strong { color: #f0f8ff; font-size: 1rem; overflow-wrap: anywhere; }
.theme-journey-check { position: absolute; top: -.5rem; right: -.5rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid #85ffef; background: #1de9d6; color: #05234c; font-size: 1.5rem; font-weight: 800; box-shadow: 0 0 14px #00eaff66; }
.theme-journey-content { min-width: 0; }
.theme-journey-content h3 { margin: .25rem 0 .5rem; color: #ffe052; font-size: clamp(1.3rem,2vw,1.9rem); line-height: 1.2; font-weight: 800; }
.theme-journey-content p { font-size: .9rem; color: #d4e7fc; margin: .5rem 0 .8rem; }
.theme-journey-content .eyebrow { color: #65eee3; font-size: .65rem; }
.participant-desk .theme-journey-content > button { display: block; width: 100%; margin: .45rem 0 0; white-space: normal; border-radius: 2rem; }
.theme-journey-content > .primary-action { font-weight: 750; }
.theme-reason-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; margin: .85rem 0; }
.participant-desk .theme-reason { --reason-color:#42d8ff; position: relative; display: flex; gap: .5rem; align-items: center; min-width: 0; min-height: 64px; padding: .65rem; border: 2px solid var(--reason-color); border-radius: 1rem; background: #0b2853; color: #fff; white-space: normal; text-align: left; font-size: .8rem; line-height: 1.3; }
.theme-reason > span { font-size: 1.7rem; color: var(--reason-color); flex-shrink: 0; }
.participant-desk .reason-help { --reason-color:#fb4bb8; background: #4c114c; }
.participant-desk .reason-recognize { --reason-color:#25e5d2; background: #06494d; }
.participant-desk .reason-ideas { --reason-color:#b06dff; background: #351263; }
.participant-desk .reason-fair { --reason-color:#39b9ff; background: #0a3466; }
.participant-desk .reason-own { grid-column: 1 / -1; justify-content: center; min-height: 44px; border-width: 1px; border-radius: 2rem; }
.theme-reason[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff,inset 0 0 18px #ffffff18; }
.theme-reason[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -.4rem; right: -.3rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; background: #fff; color: #07334c; border-radius: 50%; font-weight: 800; }
.theme-reason:disabled { opacity: .45; }
.theme-reason-chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .85rem 0; }
.theme-reason-chips li { padding: .35rem .65rem; border: 1px solid #2f9fb6; border-radius: 1rem; background: #092e51; color: #d6f8ff; font-size: .8rem; overflow-wrap: anywhere; }
.theme-reason-chips li > span { color: #31edd2; }
.theme-choice-conflict { grid-column: 1 / -1; padding: 1rem; border: 1px solid #e4b952; border-radius: .75rem; background: #362b25; }
.theme-choice-journey:has(.theme-journey-content:only-child) { grid-template-columns: minmax(0,1fr); }
.theme-decision > p, #theme-final-motivation { white-space: pre-wrap; overflow-wrap: anywhere; }
.participant-desk button:focus-visible, .participant-desk select:focus-visible, .participant-desk textarea:focus-visible { outline: 3px solid #8defff; outline-offset: 4px; }
.participant-desk .participant-next-action { margin: 1rem 0 1.5rem; padding: 1.25rem; border-radius: 1rem; border: 1px solid #29486b; background: #081c3e; }
.participant-next-action:empty { display: none; }

@media (max-width: 700px) {
    .theme-cards { grid-template-columns: minmax(0,1fr); }
    .theme-decision-fields { grid-template-columns: minmax(0,1fr); gap: .25rem; }
    .participant-desk .theme-choice-journey { grid-template-columns: minmax(0,1fr); padding: 1.1rem; }
    .theme-journey-art { max-width: 180px; margin: 0 auto; }
    .theme-reason-grid { gap: .65rem; }
    .participant-desk .theme-reason { font-size: .75rem; padding: .6rem; }
    .participant-desk .research-columns, .participant-desk .theme-grid { grid-template-columns: minmax(0,1fr); }
}
/* Research uses the same illustrated, rounded workspace as theme selection. */
.participant-desk .research-task-heading { position: relative; isolation: isolate; overflow: hidden; min-height: 150px; padding: 1.2rem; border: 1px solid #1886ab; border-radius: 1rem; background: #062346; }
.research-heading-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 52%; height: 100%; object-fit: cover; object-position: center; }
.research-task-heading::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#062346 30%,#062346eb 48%,#06234605 100%); }
.participant-desk .research-task-heading h2 { font-size: clamp(1.9rem,3vw,2.5rem); }
.research-task-heading #runner-goal { max-width: 65%; }
.participant-desk #research-cards { padding: 0; border: 0; margin: 0; }
.participant-desk .research-instructions { color: #bfd9ef; font-size: .85rem; margin: .75rem 0; }
.participant-desk .research-columns { gap: .65rem; align-items: stretch; }
.participant-desk .research-category { --list-color:#00d5ee; display: flex; flex-direction: column; padding: .7rem; border: 2px solid var(--list-color); background: linear-gradient(155deg,#082c4d,#061d38); border-radius: 1rem; }
.participant-desk .research-category.cause { --list-color:#f44bd5; background: linear-gradient(155deg,#252044,#101e39); }
.participant-desk .research-category.effect { --list-color:#ffd520; }
.research-list-heading { display: flex; align-items: center; gap: .6rem; min-height: 64px; }
.research-list-heading > div { min-width: 0; }
.participant-desk .research-category h4 { margin: 0 0 .2rem; color: #fff; font-size: .95rem; line-height: 1.3; }
.research-list-icon { display: grid; place-items: center; flex: 0 0 2.7rem; height: 2.7rem; border-radius: 50%; background: linear-gradient(135deg,color-mix(in srgb,var(--list-color),white 20%),color-mix(in srgb,var(--list-color),#061d38 50%)); box-shadow: 0 0 18px color-mix(in srgb,var(--list-color),transparent 75%); font-size: 1.6rem; color: white; }
.research-list-heading .card-count { display: block; color: #e2efff; font-size: .75rem; }
.participant-desk .research-category .research-list-goal { font-size: .75rem; margin: .25rem 0 .7rem; }
.research-category > ul { flex: 1; margin: 0; }
.participant-desk .research-category li { display: block; padding: .65rem; background: #07304a99; border-color: #165574; border-radius: .75rem; font-size: .85rem; line-height: 1.4; }
.participant-desk .research-category li[data-review-state="improve"] { border-color: #e6b64f; }
.research-item-row { display: flex; gap: .5rem; align-items: center; min-height: 32px; }
.research-item-label { flex: 1; min-width: 0; }
.research-item-dot { flex: 0 0 .7rem; height: .7rem; border-radius: 50%; background: var(--list-color); box-shadow: 0 0 8px color-mix(in srgb,var(--list-color),transparent 55%); }
.research-item-check { flex: 0 0 1.25rem; height: 1.25rem; text-align: center; color: #6fbbed; font-size: 1.2rem; line-height: 1.25rem; }
[data-review-state="accepted"] .research-item-check { border-radius: 50%; color: #003442; background: #00e7ce; font-size: .9rem; font-weight: 900; }
.participant-desk .research-category .research-item-feedback { margin: .55rem 0 0; padding-top: .5rem; border-top: 1px solid #42708466; font-size: .75rem; color: #e4efff; }
.participant-desk .research-category .research-item-pending { font-size: .7rem; margin: .4rem 0 0; }
.participant-desk .research-item-retry { min-height: 32px; font-size: .7rem; padding: .3rem .5rem; margin: .4rem 0 0; }
.research-item-menu { position: relative; flex: 0 0 24px; }
.research-item-menu summary { min-height: 32px; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; color: #d2e6ff; list-style: none; }
.research-item-menu summary::-webkit-details-marker { display: none; }
.research-item-menu > div { position: absolute; z-index: 3; right: 0; width: 160px; padding: .4rem; background: #0c2449; border: 1px solid #3b94b9; border-radius: .7rem; box-shadow: 0 8px 20px #0008; }
.participant-desk .research-item-menu button { width: 100%; font-size: .75rem; margin: .2rem 0; white-space: normal; }
.participant-desk .research-category .research-add-form { grid-template-columns: minmax(0,1fr) auto; gap: .4rem; margin-top: .5rem; }
.participant-desk .research-add-form input { font-size: .75rem; padding: .5rem; margin: 0; }
.participant-desk .research-category .research-add-form button { width: auto; padding: .5rem .6rem; margin: 0; font-size: .75rem; border-radius: .7rem; background: #ffd324; color: #062346; }
.participant-desk .research-category .research-edit { padding: 0; margin: 0; }
.participant-desk .research-category .research-empty { padding: 1rem .25rem; font-size: .8rem; }
.participant-desk #phase-history[data-viewed-phase="research"] #phase-readiness { border-color: #167fa4; background: linear-gradient(120deg,#07324e,#0b2044); }
.participant-desk #phase-history[data-viewed-phase="research"] #phase-readiness h3 { color: #ffda24; font-size: 1.6rem; margin-top: 0; }
.participant-desk #phase-history[data-viewed-phase="research"] #phase-readiness h3::before { content: "🏆 "; }
@media (max-width: 700px) {
    .research-task-heading #runner-goal { max-width: 100%; }
    .research-heading-art { width: 70%; opacity: .35; }
    .participant-desk .research-columns { grid-template-columns: minmax(0,1fr); }
}
.research-workspace .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.research-list-icon .icon { width: 1.6rem; height: 1.6rem; }
.participant-desk .research-category .research-add-form input { height: 44px; }
.participant-desk .research-category .research-add-form button { white-space: nowrap; }
@media (min-width: 701px) and (max-width: 1450px) {
    .participant-desk .research-category .research-add-form { grid-template-columns: minmax(0,1fr); }
    .participant-desk .research-category .research-add-form button { width: 100%; }
}
.participant-desk .research-category .research-help-button { align-self: flex-start; min-height: 32px; margin: 0 0 .65rem; padding: .3rem .55rem; border: 1px solid color-mix(in srgb,var(--list-color),transparent 45%); border-radius: 1rem; background: #082b46; color: #d5f5ff; font-size: .75rem; white-space: normal; text-align: left; }
.participant-desk .research-category .research-help-button:hover:not(:disabled) { border-color: var(--list-color); background: #123e58; }
