#page-workspace { max-width: 1440px; margin-inline: auto; min-width: 0; }
.ws-heading { align-items: center; }
.ws-heading-mark { display: grid; width: 58px; height: 58px; border: 1px solid #cfe2d9; border-radius: 18px; place-items: center; color: var(--green); background: #e5f1eb; }
.ws-heading-mark svg { width: 27px; height: 27px; }
.ws-tabs { display: flex; gap: 6px; margin: 4px 0 24px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ws-tabs > button { display: inline-flex; flex: 1; min-width: 0; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.ws-tabs > button.active { background: var(--green); color: white; box-shadow: 0 3px 9px #176b5818; }
.ws-tabpanel { min-width: 0; }
.ws-card { min-width: 0; padding: 24px; border: 1px solid #dce7e0; border-radius: 16px; background: #fff; box-shadow: 0 3px 13px #173f2905; }
.ws-card h2 { margin: 0; font-size: 17px; line-height: 1.5; letter-spacing: -.025em; }
.ws-card h3 { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ws-card-heading, .ws-label-row, .ws-section-header, .ws-actions, .ws-task-title { display: flex; align-items: center; gap: 12px; }
.ws-card-heading, .ws-label-row, .ws-section-header { justify-content: space-between; }
.ws-card-heading { margin-bottom: 15px; }
.ws-card-heading > div, .ws-section-header > div { min-width: 0; }
.ws-section-header { margin: 0 0 23px; align-items: flex-start; }
.ws-section-header h2 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.035em; }
.ws-section-header p { max-width: 630px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.ws-kicker { margin: 0 0 6px; color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.ws-muted, .ws-period { margin: 7px 0; color: #61736a; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.ws-actions { flex-wrap: wrap; gap: 8px; }
.ws-button { min-height: 40px; white-space: normal; font-size: 12px; line-height: 1.4; padding: 9px 13px; border-radius: 9px; }
.ws-button:disabled, .ws-icon-button:disabled { opacity: .48; cursor: not-allowed; }
.ws-batch-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.ws-batch-results { display: grid; min-width: 0; gap: 20px; }
.ws-count, .ws-kind { flex-shrink: 0; padding: 5px 10px; border-radius: 8px; color: var(--green); background: #eaf4ef; font-size: 12px; font-weight: 700; }
.ws-review-list { display: grid; gap: 14px; margin: 22px 0 14px; }
.ws-review-row { padding: 13px 14px 9px; border: 1px solid #dfe8e2; border-radius: 12px; background: #fbfdfb; }
.ws-review-row label { font-size: 12px; font-weight: 750; }
.ws-icon-button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #738178; }
.ws-icon-button:hover { background: #eef3ef; }
.ws-review-row textarea, .ws-result-body textarea { display: block; width: 100%; min-width: 0; resize: vertical; margin-top: 5px; padding: 10px 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.8; }
.ws-review-row textarea:disabled { color: #607369; }
.ws-char-count { display: block; color: #7b8b81; text-align: right; font-size: 10px; }
.ws-batch-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20px; margin: 24px 0; }
.ws-field { display: grid; min-width: 0; gap: 7px; font-size: 12px; font-weight: 650; }
.ws-field input, .ws-field select { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #d5e0d9; border-radius: 9px; background: white; color: var(--ink); font-size: 13px; }
.ws-submit-box { display: grid; gap: 17px; margin-top: 24px; padding: 20px; border: 1px solid #d2e4d8; border-radius: 12px; background: #f0f7f2; }
.ws-submit-box > div > span { color: #5b7364; font-size: 12px; }
.ws-submit-box strong { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; color: #1a513b; font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: -.05em; }
.ws-submit-box strong small { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.ws-submit-box p { margin: 7px 0 0; color: #627769; font-size: 11px; line-height: 1.6; }
.ws-submit-box > button { width: 100%; min-height: 46px; }
.ws-batch-list { display: grid; gap: 7px; max-height: 286px; overflow-y: auto; scrollbar-width: thin; }
.ws-batch-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; padding: 13px; border: 1px solid transparent; border-radius: 9px; background: #f7faf8; text-align: left; }
.ws-batch-choice.active { border-color: #a6ccb5; background: #eef7f0; }
.ws-batch-choice strong { display: block; font-size: 12px; }
.ws-batch-choice small { display: block; margin-top: 4px; color: #78897e; font-size: 11px; }
.ws-batch-choice b { color: var(--green); font-size: 14px; white-space: nowrap; }
.ws-batch-totals { display: flex; flex-wrap: wrap; gap: 9px 16px; padding: 12px 0 17px; border-bottom: 1px solid var(--line-soft); color: #758379; font-size: 11px; }
.ws-batch-totals b { margin-left: 4px; color: var(--ink); font-size: 12px; }
.ws-result-items { display: grid; gap: 10px; margin-top: 17px; }
.ws-result-item { min-width: 0; border: 1px solid var(--line); border-radius: 11px; }
.ws-result-item > summary { display: flex; min-height: 58px; align-items: center; gap: 9px; padding: 12px; cursor: pointer; list-style: none; }
.ws-result-item > summary::-webkit-details-marker { display: none; }
.ws-result-item > summary::after { content: "+"; color: #6d8476; font-size: 19px; }
.ws-result-item[open] > summary::after { content: "−"; }
.ws-item-number { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: #eef4ef; color: #60826a; font-size: 11px; line-height: 24px; text-align: center; }
.ws-result-review { display: -webkit-box; flex: 1; min-width: 0; overflow: hidden; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ws-result-body { padding: 0 15px 15px; }
.ws-original-review { margin: 0 0 10px; padding: 10px 12px; border-radius: 7px; background: #f7faf7; color: #718076; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-result-body textarea { padding: 12px; border: 1px solid #dfe7e0; border-radius: 8px; margin-bottom: 12px; }
.ws-status { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 4px 8px; border-radius: 20px; background: #eef2ef; color: #68796e; font-size: 10px; font-weight: 650; white-space: nowrap; }
.ws-status-running { background: #e9f1fc; color: #476a9b; }
.ws-status-completed { background: #e4f3e9; color: #2c8050; }
.ws-status-failed { background: #fff0e9; color: #ac6240; }
.ws-progress { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 6px; accent-color: var(--green); background: #e8efea; }
.ws-progress::-webkit-progress-bar { background: #e8efea; }
.ws-progress::-webkit-progress-value { background: var(--green); border-radius: 6px; }
.ws-draft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.ws-draft-card h3 { margin: 20px 0 9px; }
.ws-draft-preview { display: -webkit-box; min-height: 50px; margin: 0 0 20px; overflow: hidden; color: #718076; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ws-inline-editor, .ws-confirm, .ws-capture-editor { display: grid; gap: 12px; width: 100%; margin-top: 17px; padding: 15px; border: 1px solid #d7e4db; border-radius: 10px; background: #f6faf7; }
.ws-confirm { background: #fff9f3; border-color: #ecdfce; }
.ws-confirm p { margin: 0; color: #876b4d; font-size: 12px; line-height: 1.75; }
.ws-task-list { display: grid; gap: 12px; }
.ws-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 23px; }
.ws-task-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 15px; }
.ws-task-main h3 { margin: 0; font-size: 14px; }
.ws-task-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #eef5ef; color: var(--green); }
.ws-task-title { flex-wrap: wrap; gap: 8px; }
.ws-task > .ws-confirm { grid-column: 1 / -1; margin: 0; }
.ws-compact-field { width: 160px; }
.ws-empty { display: flex; min-height: 200px; flex-direction: column; align-items: center; justify-content: center; padding: 32px 22px; text-align: center; }
.ws-empty > svg { width: 34px; height: 34px; margin-bottom: 11px; color: #90aa99; }
.ws-empty h3 { margin: 0 0 7px; font-size: 15px; font-weight: 600; }
.ws-empty p { max-width: 410px; margin: 0; color: #7b8c81; font-size: 12px; line-height: 1.8; }
.ws-alert { padding: 14px 16px; margin: 16px 0; border: 1px solid #ead9c1; border-radius: 10px; background: #fff8ec; color: #8b6638; }
.ws-alert p { margin: 0 0 8px; font-size: 12px; line-height: 1.8; }
.ws-alert p:last-child { margin: 0; }
.ws-error { margin: 4px 0; color: #ab523a; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.ws-loading { display: flex; min-height: 170px; align-items: center; justify-content: center; gap: 10px; color: #76897c; font-size: 13px; }
.ws-loading svg { animation: ws-spin 1.4s linear infinite; }
.ws-period-picker { display: flex; flex-shrink: 0; gap: 4px; padding: 4px; border: 1px solid #dae4dc; border-radius: 10px; background: #fff; }
.ws-period-picker button { min-height: 36px; padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; font-size: 12px; }
.ws-period-picker button[aria-pressed="true"] { color: white; background: var(--green); }
.ws-period { margin-bottom: 15px; }
.ws-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.ws-metric { display: grid; gap: 12px; }
.ws-metric > svg { color: #729e80; }
.ws-metric > span { color: #75847b; font-size: 11px; }
.ws-metric strong { color: #244d34; font-size: 29px; line-height: 1.1; font-weight: 650; letter-spacing: -.045em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ws-chart-card { margin-bottom: 20px; }
.ws-chart { display: grid; grid-template-columns: repeat(var(--ws-days), minmax(0, 1fr)); align-items: end; gap: clamp(1px, .45vw, 6px); height: 190px; margin-top: 27px; padding-top: 10px; border-bottom: 1px solid #d7e3d9; background: repeating-linear-gradient(to top, transparent 0, transparent 44px, #eef3ef 44px, #eef3ef 45px); }
.ws-chart-column { display: flex; height: 100%; min-width: 0; align-items: end; }
.ws-chart-column > span { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #568c6a; }
.ws-chart-axis { display: flex; justify-content: space-between; margin-top: 9px; color: #829084; font-size: 10px; }
.ws-data-details { margin-top: 20px; color: #5d7865; font-size: 12px; }
.ws-data-details > summary { cursor: pointer; }
.ws-table-wrap { max-height: 350px; margin-top: 12px; overflow: auto; }
.ws-table-wrap table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ws-table-wrap th, .ws-table-wrap td { padding: 9px 10px; border-bottom: 1px solid #e7eee8; text-align: left; white-space: nowrap; }
.ws-table-wrap th { color: #5e7866; font-weight: 650; }
.ws-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ws-breakdown { display: grid; gap: 16px; margin-top: 22px; }
.ws-breakdown > div { display: grid; grid-template-columns: 78px minmax(0, 1fr) 25px; align-items: center; gap: 10px; font-size: 12px; }
.ws-breakdown meter { width: 100%; height: 10px; accent-color: var(--green); }
.ws-breakdown meter::-webkit-meter-bar { border: 0; background: #edf3ee; }
.ws-breakdown meter::-webkit-meter-optimum-value { background: #71a482; }
.ws-breakdown b { text-align: right; }
.ws-topic-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.ws-topic-list > span { padding: 7px 11px; border-radius: 8px; background: #f0f5f1; color: #61806b; font-size: 12px; }
.ws-topic-list b { margin-left: 8px; color: #395b44; }
.ws-mark-summary { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 21px; padding: 0 5px; color: #7c8a81; font-size: 12px; }
.ws-mark-summary b { margin-left: 5px; color: #46674f; }
.ws-capture-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 19px 0 14px; }
.ws-capture-bar[hidden] { display: none; }
.ws-capture-bar > small { color: #7b8c81; font-size: 11px; }
.ws-capture-editor { margin: 0; }
.ws-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
@media (max-width: 1150px) { .ws-batch-layout { gap: 16px; } .ws-card { padding: 20px; } .ws-card-heading { flex-wrap: wrap; } .ws-metrics { gap: 10px; } }
@media (max-width: 950px) { .ws-batch-layout { grid-template-columns: minmax(0, 1fr); } .ws-batch-results { grid-template-columns: minmax(0, 1fr); } .ws-batch-list { max-height: 230px; } .ws-draft-grid { gap: 14px; } .ws-section-header { flex-wrap: wrap; } }
@media (max-width: 600px) {
  .ws-heading-mark { display: none; }
  .ws-tabs { gap: 2px; padding: 4px; margin-bottom: 20px; }
  .ws-tabs > button { flex-direction: column; min-height: 61px; gap: 5px; padding: 8px 3px; font-size: 10px; }
  .ws-tabs > button svg { width: 18px; height: 18px; }
  .ws-card { padding: 18px; border-radius: 13px; }
  .ws-card h2 { font-size: 16px; }
  .ws-draft-grid, .ws-insight-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-section-header h2 { font-size: 18px; }
  .ws-section-header > .ws-actions { width: 100%; justify-content: space-between; }
  .ws-button { min-height: 42px; padding: 9px 11px; }
  .ws-batch-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ws-review-row { padding-inline: 11px; }
  .ws-review-row textarea, .ws-field input, .ws-field select, .ws-result-body textarea { font-size: 16px; }
  .ws-result-item > summary { flex-wrap: wrap; }
  .ws-result-review { flex-basis: calc(100% - 40px); }
  .ws-result-item > summary > .ws-status { margin-left: 33px; }
  .ws-result-item > summary::after { margin-left: auto; }
  .ws-task { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ws-task > .ws-actions { padding-left: 55px; }
  .ws-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .ws-metric { padding: 17px; gap: 10px; }
  .ws-metric strong { font-size: 27px; }
  .ws-chart { height: 160px; }
  .ws-mark-summary { justify-content: space-between; gap: 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .ws-loading svg { animation: none; } }
