.thesis-workspace { max-width: 1240px; margin: 1.5rem auto; padding: 0 1.2rem 3rem; }
.thesis-workspace label { display: flex; flex-direction: column; gap: .35rem; margin: .8rem 0; font-weight: 600; }
.thesis-workspace label small, .thesis-workspace label span { font-weight: 400; color: #586671; }
.thesis-workspace input:not([type=file]), .thesis-workspace textarea, .thesis-workspace select { padding: .65rem; border: 1px solid #b9cbd3; border-radius: 5px; font: inherit; background: white; width: 100%; box-sizing: border-box; }
.thesis-workspace textarea { min-height: 85px; resize: vertical; }
.plan-picker { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 1rem; background: #edf4f7; padding: 1rem; border-radius: 8px; }
.plan-picker form { display: flex; gap: .5rem; align-items: end; }
.thesis-workspace button { border: 1px solid #abc1cb; border-radius: 5px; padding: .6rem .9rem; cursor: pointer; background: #fff; color: #174e64; }
.thesis-workspace button:hover { background: #edf5f8; }
.thesis-workspace button:disabled { opacity: .55; cursor: wait; }
.thesis-stages { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0; }
.thesis-stages [aria-current=step] { color: white; background: #185c73; }
.thesis-stage { background: white; border: 1px solid #dde7eb; border-radius: 8px; padding: 1.3rem; }
.thesis-stage[hidden] { display: none; }
.thesis-stage h2 { margin-top: .25rem; }
.thesis-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.objective-input { display: flex; align-items: center; gap: .7rem; }
.objective-input label { flex: 1; }
.thesis-workspace fieldset { border: 1px solid #dde7eb; margin: 1rem 0; border-radius: 6px; }
.thesis-upload { border: 1px dashed #829faa; margin: 1.5rem 0; padding: .8rem; }
.thesis-paper, .thesis-output-section { border-top: 1px solid #dce6ea; padding: 1rem 0; }
.thesis-paper summary { cursor: pointer; font-weight: 600; }
.thesis-interpretation { background: #f0f5fa; border-left: 3px solid #6988a6; padding: .75rem; }
.thesis-source { border-left: 3px solid #387869; padding: .5rem .8rem; margin: .5rem 0; }
.thesis-source blockquote { white-space: pre-wrap; margin: .5rem 0; }
.thesis-workspace table { min-width: 650px; }
.thesis-workspace td { vertical-align: top; min-width: 120px; max-width: 360px; overflow-wrap: anywhere; }
.thesis-workspace pre { white-space: pre-wrap; font: inherit; }
.thesis-workspace [role=status] { min-height: 1.5rem; }
#deletePlan { color: #8d3838; }
@media(max-width: 800px) { .plan-picker, .optional-grid { grid-template-columns: 1fr; } .thesis-stages button { flex: 1 1 45%; } }

.site-header a { color: #c7edf7; }
.plan-picker label { min-width: 0; }
.thesis-stage summary { cursor: pointer; }

.decision-claim { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: .3rem .5rem; border-radius: .3rem; }
.decision-finding { background: #e5f3eb; color: #175536; }
.decision-interpretation { background: #e8eef9; color: #253d72; }
.decision-guidance { background: #fff0d4; color: #69430b; }
.decision-learning { margin: 1rem 0; padding: 1rem; border: 1px solid #d8e1e8; border-radius: .6rem; }
#thesisDecisions .study-table td { min-width: 9rem; vertical-align: top; }
#thesisDecisions pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#thesisDecisions details { margin: .6rem 0; }
#thesisDecisions summary { cursor: pointer; }
