.research-workspace { background: #fff; color: #292524; letter-spacing: 0; }
.workspace-main { max-width: 1240px; margin: 0 auto; padding: 36px 28px 24px; }
.workspace-main *, .workspace-main *::before, .workspace-main *::after { box-sizing: border-box; letter-spacing: 0; }
.workspace-main [hidden] { display: none !important; }
.workspace-main h1 { font-size: 30px; line-height: 1.25; font-weight: 750; margin: 0 0 6px; }
.workspace-main h2 { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 0 0 10px; }
.workspace-main h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.workspace-main p { margin: 0; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workspace-heading p { font-size: 14px; color: #57534e; }
.workspace-main a { color: #92400e; text-underline-offset: 3px; }
.workspace-link, .corpus-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.workspace-main .material-symbols-outlined { font-size: 20px; width: 20px; height: 20px; line-height: 20px; overflow: hidden; flex-shrink: 0; }
.research-disclaimer { color: #57534e; background: #fafaf9; border-left: 3px solid #d6d3d1; padding: 10px 14px; font-size: 13px; margin: 22px 0 !important; }
.workspace-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) 200px 160px; gap: 16px; padding: 0 0 22px; margin: 0; border-bottom: 1px solid #d6d3d1; }
.workspace-toolbar label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.workspace-toolbar input, .workspace-toolbar select { width: 100%; min-width: 0; height: 44px; border: 1px solid #a8a29e; border-radius: 4px; background: #fff; color: #292524; font: inherit; font-size: 14px; padding: 8px 10px; }
.search-field > div { position: relative; }
.search-field .material-symbols-outlined { position: absolute; top: 12px; left: 12px; color: #78716c; pointer-events: none; }
.workspace-toolbar .search-field input { padding-left: 40px; }
.workspace-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); align-items: start; }
.experiment-browser { min-width: 0; padding: 16px 0 0; border-right: 1px solid #d6d3d1; }
.experiment-browser summary { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 14px 0; cursor: pointer; font-size: 14px; font-weight: 650; }
.experiment-browser summary::after { content: '+'; font-size: 20px; }
.experiment-browser details[open] summary::after { content: '-'; }
#result-count { font-weight: 400; font-size: 12px; color: #57534e; margin-left: auto; padding-right: 12px; }
#experiment-list { max-height: 720px; overflow-y: auto; overscroll-behavior: contain; padding-right: 10px; }
#experiment-list a { display: block; padding: 15px 14px; margin-bottom: 2px; text-decoration: none; color: #292524; border: 1px solid transparent; border-radius: 4px; }
#experiment-list a:hover { background: #fafaf9; }
#experiment-list a[aria-current='true'] { background: #fffbeb; border-color: #d97706; }
.experiment-label { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #57534e; margin-bottom: 6px; }
.experiment-title { font-size: 14px; font-weight: 600; line-height: 1.5; display: block; overflow-wrap: anywhere; }
.experiment-type { font-size: 12px; display: block; margin-top: 6px; color: #57534e; }
#study-detail { min-width: 0; padding: 26px 0 28px 34px; scroll-margin-top: 96px; }
.study-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: #57534e; margin-bottom: 12px; align-items: center; }
.run-state { background: #f5f5f4; color: #44403c; padding: 2px 7px; border-radius: 3px; }
.run-state.partial { background: #fff7ed; color: #9a3412; }
.run-state.design { background: #fff1f2; color: #9f1239; }
#study-title { font-size: 25px; line-height: 1.35; overflow-wrap: anywhere; margin-bottom: 12px; }
.study-question { font-size: 18px; line-height: 1.65; margin-bottom: 18px !important; }
.study-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.study-actions a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid #a8a29e; border-radius: 4px; text-decoration: none; font-size: 13px; }
.study-actions a.primary-action { background: #92400e; border-color: #92400e; color: #fff; }
.study-section { border-top: 1px solid #e7e5e4; padding: 20px 0; }
.study-section p, .study-section li { font-size: 15px; line-height: 1.8; color: #44403c; overflow-wrap: anywhere; }
.study-section ul { padding-left: 20px; margin: 0; list-style: disc; }
.study-section li + li { margin-top: 7px; }
.study-section figure { margin: 18px 0 0; }
.study-section img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #fff; }
.study-section figcaption { font-size: 12px; color: #57534e; margin-top: 6px; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.source-links a { display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.record-date { color: #57534e; font-size: 12px !important; margin-top: 12px !important; }
#no-results, #load-error, #loading-state { padding: 24px 12px; font-size: 15px; }
.workspace-main button { border: 1px solid #a8a29e; border-radius: 4px; background: #fff; color: #292524; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
#load-error a { margin-left: 16px; font-size: 14px; }
.corpus-record { padding: 24px 0 !important; border-top: 1px solid #d6d3d1; }
.corpus-record h2 { font-size: 18px; }
.corpus-record p { font-size: 14px; color: #57534e; }
.corpus-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }
@media (max-width: 900px) {
  .workspace-layout { grid-template-columns: 260px minmax(0, 1fr); }
  #study-detail { padding-left: 24px; }
  .workspace-toolbar { grid-template-columns: minmax(180px, 1fr) 175px 140px; }
}
@media (max-width: 680px) {
  .workspace-main { padding-top: 24px; }
  .workspace-heading { display: block; }
  .workspace-main h1 { font-size: 26px !important; }
  .workspace-heading > a { margin-top: 10px; }
  .workspace-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .search-field { grid-column: 1 / -1; }
  .workspace-toolbar select { font-size: 13px; }
  .workspace-layout { display: block; }
  .experiment-browser { border-right: 0; border-bottom: 1px solid #d6d3d1; }
  #experiment-list { max-height: 300px; padding-right: 0; }
  #study-detail { padding: 24px 0; }
  #study-title { font-size: 22px !important; }
  .study-section { padding: 18px 0 !important; }
  .study-actions { gap: 8px; }
  .study-question { font-size: 16px; }
  .corpus-record h2 { font-size: 18px !important; }
}
