/* /workspace — 왼쪽 대화, 오른쪽 보고서 (디자인 Workspace 보드). 모바일은 탭 전환 */
/* 워크스페이스는 화면 전체를 쓰는 앱 — 상단 메뉴도 끝까지, 대화 칸과 같은 16px 끝선 */
.ws-body { --st-page: 100000px; --st-pad: 16px; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.ws { flex: 1; min-height: 0; display: grid; grid-template-columns: 440px minmax(0, 1fr); }
.ws-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--st-border); background: var(--st-surface); }
.ws-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--st-border); }
#ws-new { white-space: nowrap; flex-shrink: 0; }
.ws-chat-head h1 { font-size: var(--st-fs-lg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ws-empty h2 { font-size: var(--st-fs-lg); margin: 8px 0 6px; }
.ws-empty p { margin: 0 0 14px; font-size: var(--st-fs-md); }
.ws-examples, .ws-follow { display: flex; flex-direction: column; gap: 8px; }
.ws-follow { margin-top: 8px; }
.ws-ex {
  text-align: left; padding: 10px 12px; border: 1px solid var(--st-border); border-radius: var(--st-r-md);
  background: var(--st-surface); color: var(--st-text); font: 400 var(--st-fs-md)/1.45 var(--st-font); cursor: pointer;
}
.ws-ex:hover { border-color: var(--st-accent); }
.ws-user { align-self: flex-end; max-width: 88%; background: var(--st-accent); color: var(--st-on-accent); padding: 10px 14px; border-radius: var(--st-r-lg); }
.ws-user p, .ws-msg p { margin: 0; }
.ws-msg { font-size: var(--st-fs-md); line-height: 1.6; }
.ws-ai p + p { margin-top: 6px; }
.ws-err { color: var(--st-err); }
.ws-clarify { border-left: 3px solid var(--st-accent); padding-left: 10px; }
.ws-steps { border: 1px solid var(--st-border); border-radius: var(--st-r-md); background: var(--st-surface-2); }
.ws-steps summary { display: flex; justify-content: space-between; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: var(--st-fs-md); }
.ws-steps-t { color: var(--st-text-muted); font-weight: 400; }
.ws-steps ol { list-style: none; margin: 0; padding: 0 12px 8px; }
.ws-steps li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--st-border); font-size: var(--st-fs-md); }
.ws-step-t { display: flex; flex-wrap: wrap; column-gap: 6px; min-width: 0; }
.ws-step-t > span:first-child { color: var(--st-text); }
.ws-step-m { color: var(--st-text-muted); font-size: var(--st-fs-sm); font-family: var(--st-mono); }
.ws-steps-more { display: block; width: calc(100% - 24px); margin: 0 12px 2px; padding: 6px 0; border: 0; border-top: 1px solid var(--st-border); background: none; color: var(--st-accent); font: 500 var(--st-fs-sm) var(--st-font); text-align: left; cursor: pointer; }
.ws-steps-more:hover { text-decoration: underline; }
.ws-note { font-size: var(--st-fs-sm); color: var(--st-text-muted); padding-left: 10px; border-left: 2px solid var(--st-border); }
.ws-ok { color: var(--st-ok); }
.ws-x { color: var(--st-err); }
.ws-spin { width: 10px; height: 10px; border: 2px solid var(--st-chip); border-top-color: var(--st-accent); border-radius: 50%; animation: ws-spin .8s linear infinite; flex-shrink: 0; align-self: center; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ws-spin { animation: none; } }
/* 입력칸 + 단추 — 같은 높이로 한 줄 (10-09) */
.ws-form { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 8px; padding: 12px 16px 10px; border-top: 1px solid var(--st-border); }
.ws-form textarea {
  resize: none; min-height: 64px; max-height: 180px; padding: 10px 12px; font: 400 var(--st-fs-md)/1.5 var(--st-font); color: var(--st-text);
  background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-r-md); box-sizing: border-box;
}
.ws-form textarea:focus { outline: none; border-color: var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-soft); }
.ws-send { align-self: stretch; min-width: 84px; min-height: 64px; padding: 0 16px; border-radius: var(--st-r-md); background: var(--st-accent); color: var(--st-on-accent); border-color: var(--st-accent); font-weight: 600; }
.ws-send:disabled { opacity: .6; cursor: progress; }
.ws-fine { grid-column: 1 / -1; margin: 0; font-size: var(--st-fs-sm); color: var(--st-text-muted); }
/* 무료 질문은 보고서가 공개된다는 미리 알림 (10-08) */
.ws-public { grid-column: 1 / -1; margin: 0; font-size: var(--st-fs-sm); color: var(--st-text); }
.ws-public::before { content: "● "; color: var(--st-accent); }
.ws-report { display: flex; flex-direction: column; min-height: 0; background: var(--st-bg); }
.ws-report-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--st-border); background: var(--st-surface); }
.ws-report-body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 40px 40px; }
.ws-report-empty { max-width: 520px; margin: 80px auto; text-align: center; }
.ws-tabs { display: none; }

@media (max-width: 900px) {
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-tabs { display: flex; border-bottom: 1px solid var(--st-border); background: var(--st-surface); }
  .ws-tabs button { flex: 1; min-height: 44px; border: 0; background: none; font: 500 var(--st-fs-md) var(--st-font); color: var(--st-text-muted); border-bottom: 2px solid transparent; }
  .ws-tabs button[aria-selected="true"] { color: var(--st-accent); border-bottom-color: var(--st-accent); }
  body[data-tab="chat"] .ws-report, body[data-tab="report"] .ws-chat { display: none; }
  .ws-report-body { padding: 18px 16px 32px; }
  .ws-report-bar { padding: 8px 16px; }
}
