/* 펀드 운용실 펀드 운용 칸·운용 방식 조각·명령의 뜻·사용 안내(fund-workspace-view.js)와 자동 대응 폼(fund-mode-form.js) 모양
   (W63, FeatureId fund.views.operation). 기존 디자인 변수(styles.css의 :root)와 공용 클래스(.panel, .pill, .notice, .button)를
   그대로 쓰고 이 조각에만 필요한 틀만 더한다. 사이트 CSP가 인라인 스타일을 막으므로 모든 모양은 이 파일의 클래스로 준다.
   다른 화면에 번지지 않게 선택자는 fund-ws·fund-mode 접두어로 시작한다. */

.fund-ws-board, .fund-ws-mode, .fund-ws-help, .fund-mode-form, .fund-mode-summary {
  display: grid; gap: 10px; min-width: 0;
}
.fund-ws-board h2, .fund-ws-help h2 { margin: 0 0 4px; font-size: 15px; }
.fund-ws-mode h3, .fund-mode-summary h3 { margin: 0; font-size: 14px; }
.fund-ws-board p, .fund-ws-mode p, .fund-ws-help p, .fund-mode-form p { margin: 0; line-height: 1.6; }
.fund-ws-help-page { display: grid; gap: 14px; min-width: 0; }
.fund-ws-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fund-ws-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.fund-ws-field { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.fund-ws-field select { min-width: 180px; }
.fund-ws-status:empty { display: none; }
.fund-ws-status { font-size: 12px; }
.fund-ws-pills, .fund-ws-mode-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fund-ws-explanation { color: var(--ink); }
.fund-ws-next { color: var(--ink); font-size: 13px; }
.fund-ws-inline-link { font-size: 12px; }
.fund-ws-links { display: flex; flex-wrap: wrap; gap: 6px; }
.fund-ws-details summary, .fund-ws-actions summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.fund-ws-details p { margin-top: 6px; font-size: 12px; color: var(--faint); word-break: break-all; }
.fund-ws-sources { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; font-size: 12px; }

/* 값 목록(이름 / 값). */
.fund-ws-values, .fund-mode-values {
  display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 4px 14px; margin: 0;
  font-size: 13px;
}
.fund-ws-values dt, .fund-mode-values dt { color: var(--muted); }
.fund-ws-values dd, .fund-mode-values dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* 펀드 표: 좁은 화면에서는 표 상자 안에서만 가로로 밀어 본다. */
.fund-ws-table-wrap { overflow-x: auto; max-width: 100%; }
.fund-ws-table { width: 100%; font-size: 12px; }
.fund-ws-table td { vertical-align: top; }
.fund-ws-fund-name { display: grid; gap: 2px; }
.fund-ws-obligations { display: grid; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fund-ws-progress { display: block; max-width: 280px; }

/* 명령의 뜻. */
.fund-ws-actions { display: grid; gap: 8px; }
.fund-ws-action { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fund-ws-action:last-child { border-bottom: 0; }
.fund-ws-action h4 { margin: 0; font-size: 13px; }
.fund-ws-steps, .fund-ws-mode-list { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 13px; }
.fund-ws-mode-list { padding-left: 0; list-style: none; }

/* 자동 대응 폼. */
.fund-mode-form legend { padding: 0 4px; font-weight: 800; }
.fund-mode-intro { display: grid; gap: 4px; }
.fund-mode-field { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.fund-mode-field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fund-mode-label { font-weight: 750; }
.fund-mode-applied { color: var(--muted); font-size: 12px; }
.fund-mode-choices { display: grid; gap: 6px; }
.fund-mode-choice { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.fund-mode-choice input { margin-top: 3px; }
.fund-mode-choice-text { display: grid; gap: 2px; }
.fund-mode-number-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fund-mode-number { max-width: 160px; }
.fund-mode-help, .fund-mode-hint { font-size: 12px; }
.fund-mode-issue:empty { display: none; }
.fund-mode-recovery { color: var(--muted); font-size: 12px; }

/* 키보드 초점. */
.fund-ws-board a:focus-visible, .fund-ws-board button:focus-visible, .fund-ws-board select:focus-visible,
.fund-ws-mode a:focus-visible, .fund-ws-mode button:focus-visible, .fund-mode-form input:focus-visible,
.fund-ws-actions summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* 모바일: 한 줄 배치. */
@media (max-width: 560px) {
  .fund-ws-values, .fund-mode-values { grid-template-columns: 1fr; }
  .fund-ws-field select { min-width: 0; width: 100%; }
  .fund-ws-controls .button, .fund-ws-links .button { flex: 1 1 auto; }
}
