:root { font-family: system-ui, sans-serif; color: #20313d; background: #f5f7f8; }
body { max-width: 1000px; margin: auto; padding: 1.5rem; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h1 { font-size: 1.6rem; }
section, form, article { margin-block: 1rem; }
article, #preview, #temporary { padding: 1rem; background: white; border: 1px solid #cad3d9; border-radius: 6px; }
label { display: block; margin: .7rem 0; }
input, select, button { font: inherit; padding: .5rem; max-width: 100%; box-sizing: border-box; }
input, select { display: block; width: min(100%, 440px); }
button { cursor: pointer; margin: .3rem .5rem .3rem 0; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
#notice { min-height: 1.5rem; font-weight: 600; }
.error { color: #992323; }
.warning { color: #765400; }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid #cad3d9; }
code { overflow-wrap: anywhere; }

/* Working journey: one panel replaces the previous step. */
#team-detail { max-width: 850px; }
.participant-option { display: flex; align-items: center; gap: .6rem; }
.participant-option input { width: auto; }
textarea { display: block; width: 100%; min-height: 6rem; font: inherit; padding: .6rem; box-sizing: border-box; }
.coach-messages { max-height: 55vh; overflow-y: auto; scroll-behavior: auto; }
.chat-message p, .summary-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.assistant { border-left: 4px solid #22746a; }
.conversation-start { padding: 1rem; }
.thinking-indicator::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .6rem; border: 2px solid #cad3d9; border-top-color: #22746a; border-radius: 50%; animation: thinking 1s linear infinite; }
@keyframes thinking { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .thinking-indicator::before { animation: none; } }

.attention-area { border-left: 4px solid #a76600; padding: .8rem 1rem; background: #fff7e6; margin-bottom: 1rem; }
.question-selection { display: flex; align-items: center; gap: .6rem; padding: .5rem; }
.question-selection input { width: 1.25rem; height: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; list-style: none; padding: 0; }
.breadcrumbs li { display: flex; align-items: baseline; gap: .4rem; }
.breadcrumbs .breadcrumb-link { border: 0; background: none; color: #225e78; text-decoration: underline; padding: .2rem 0; margin: 0; }
.lecturer-question-title { display: inline-block; max-width: calc(100% - 1.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.lecturer-question-source { display: block; margin-top: .25rem; font-size: .9rem; color: #52616b; overflow-wrap: anywhere; }
