.target-workspace { --tw-blue: var(--primary, #0052d9); --tw-text: var(--ink, #1d2129); --tw-muted: #596579; --tw-line: var(--line, #e5e6eb); color: var(--tw-text); padding-bottom: 12px; font-size: 14px; }
.target-workspace.has-batch { padding-bottom: 88px; }
.target-workspace * { box-sizing: border-box; min-width: 0; }
.target-workspace button, .target-workspace input { font: inherit; letter-spacing: 0; }
.target-workspace input { width: 100%; min-height: 36px; border: 1px solid #d9dee7; border-radius: 4px; padding: 7px 9px; background: #fff; color: var(--tw-text); font-variant-numeric: tabular-nums; }
.target-workspace input::placeholder { color: var(--tw-muted); font-size: 12px; font-weight: 400; }
.target-workspace input:focus-visible, .target-workspace button:focus-visible { outline: 2px solid var(--tw-blue); outline-offset: 2px; }
.target-workspace button:disabled { cursor: default; }
.tw-toolbar { align-items: center; gap: 12px; padding-block: 16px 8px; }
.tw-toolbar h1 { font-size: 20px; margin: 0; }
.tw-toolbar > div { flex: 1; }
.tw-toolbar .tw-month { display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--tw-line); border-radius: 6px; color: var(--tw-muted); background: #fff; flex-shrink: 0; }
.tw-month input { width: 126px; border: 0; padding: 7px 0; font-size: 12px; }
.tw-headline { padding-top: 0; }
.tw-headline .performance-composition { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.tw-headline .performance-target strong { display: block; width: 100%; text-align: center; }
.tw-total { cursor: default; }
.tw-summary-note { margin: 8px 0 0; color: var(--tw-muted); font-size: 9px; text-align: center; line-height: 1.6; }
.tw-received-row { display: grid; gap: 5px; padding-block: 9px; }
.tw-received-row > strong { font-size: 11px; }
.tw-received-row > b { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tw-amount-field { display: flex; align-items: center; min-height: 34px; padding: 0 7px; border: 1px solid #d9dee7; border-radius: 4px; background: #fff; }
.tw-amount-field > span { flex: 0 0 auto; color: var(--tw-muted); font-size: 12px; }
.tw-amount-field input { min-height: 32px; padding: 0 0 0 4px; border: 0; border-radius: 0; outline-offset: 0; font-size: 14px; font-weight: 600; }
.tw-amount-field > b { padding-left: 4px; font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tw-amount-field:focus-within { border-color: var(--tw-blue); }
.tw-amount-field input:focus-visible { outline: none; }
.tw-received-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.tw-status, .tw-history-button { font-size: 10px !important; }
.tw-status { color: var(--tw-muted); }
.tw-status.is-confirmed, .tw-balanced { color: #087a58; }
.tw-unbalanced { color: #bc4e12; }
.tw-confirm { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; padding: 0 8px; border: 1px solid var(--tw-blue); border-radius: 4px; background: var(--tw-blue); color: #fff; font-size: 11px !important; white-space: nowrap; }
.tw-confirm svg { flex-shrink: 0; }
.tw-review-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tw-review-ring { fill: none; stroke: var(--success, #00a870); stroke-width: 32; transform: rotate(-90deg); transform-origin: 150px 150px; }
.tw-history-button { border: 0; padding: 4px 0; background: transparent; color: var(--tw-blue); }
.tw-section-heading > span { color: var(--tw-muted); font-size: 10px; flex-shrink: 0; }
.tw-group-title { margin: 16px 0 8px; font-size: 12px; color: var(--tw-muted); font-weight: 700; }
.tw-branches { display: grid; gap: 8px; }
.tw-branch { padding: 12px 10px; border: 0; border-radius: 8px; background: #f7f8fa; }
.tw-branch-heading.responsibility-rank { padding: 0; margin: 0; grid-template-columns: 30px minmax(0, 1fr) 12px; gap: 9px; background: transparent; }
.tw-branch-heading .rank-medal { width: 30px; height: 30px; }
.tw-branch-heading .responsibility-head { align-items: center; }
.tw-node-link { padding: 0; border: 0; background: transparent; color: var(--tw-text); text-align: left; }
.tw-branch-heading .responsibility-head strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; font-size: 13px; }
.tw-branch-heading .responsibility-total { max-width: 48%; }
.tw-branch-heading .responsibility-total b { font-size: 15px; overflow-wrap: anywhere; }
.tw-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tw-card-meta > small { color: var(--tw-muted); font-size: 9px; }
.tw-reference-button { display: inline-flex; align-items: center; gap: 3px; padding: 2px 0; border: 0; background: transparent; color: var(--tw-muted); font-size: 9px !important; }
.tw-drill-button { padding: 4px 0; border: 0; background: transparent; color: #8791a1; }
.tw-child-metrics { display: grid; grid-template-columns: repeat(var(--tw-columns), minmax(0,1fr)); gap: 5px; margin: 8px 0 0 39px; }
.tw-child-metrics .tw-amount-field { min-height: 32px; padding-inline: 5px; }
.tw-child-metrics input { min-height: 30px; font-size: 12px; }
.tw-field-caption { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; color: var(--tw-muted); font-size: 9px; white-space: nowrap; }
.tw-field-caption > i { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 1px; background: var(--tw-blue); }
.tw-field-caption.orange > i { background: #ed7b2f; }
.tw-field-caption.green > i { background: #00a870; }
.tw-field-caption.purple > i { background: #7a5af8; }
.tw-field-caption small { font-size: 8px; }
.tw-card-reference { margin: 10px 0 0 39px; border-top: 1px solid var(--tw-line); }
.tw-card-reference > div { padding: 8px 0; border-bottom: 1px solid var(--tw-line); font-size: 10px; }
.tw-card-reference > div > strong { margin-right: 8px; }
.tw-card-reference > div > small { display: block; margin-top: 5px; color: var(--tw-muted); }
.tw-reference { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--tw-muted); font-size: 9px; line-height: 1.6; }
.tw-reconciliation h2, .tw-history h2 { margin: 0 0 12px; font-size: 15px; }
.tw-reconciliation table { width: 100%; border-collapse: collapse; font-size: 10px; font-variant-numeric: tabular-nums; }
.tw-reconciliation th { padding-bottom: 9px; color: var(--tw-muted); font-weight: 400; text-align: right; }
.tw-reconciliation th:first-child, .tw-reconciliation td:first-child { text-align: left; }
.tw-reconciliation td { padding: 11px 0; border-top: 1px solid #eceff3; text-align: right; overflow-wrap: anywhere; }
.tw-reconciliation .tw-field-caption { margin: 0; font-size: 10px; }
.tw-reason { display: grid; gap: 6px; margin-top: 14px; color: var(--tw-muted); font-size: 10px; }
.tw-reject-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 16px 48px #1d212933; }
.tw-reject-dialog::backdrop { background: #1d212966; }
.tw-reject-dialog h2 { margin: 0; font-size: 20px; }
.tw-reject-dialog #tw-reject-subject { margin: 8px 0 20px; color: var(--tw-muted); line-height: 1.6; overflow-wrap: anywhere; }
.tw-reject-dialog label { display: block; margin-bottom: 8px; font-weight: 600; }
.tw-reject-dialog textarea { display: block; width: 100%; min-height: 112px; padding: 10px 12px; border: 1px solid #d9dee7; border-radius: 4px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.6; color: var(--tw-text); background: #fff; }
.tw-reject-dialog textarea::placeholder { color: var(--tw-muted); }
.tw-reject-dialog textarea:focus-visible { outline: 2px solid var(--tw-blue); outline-offset: 2px; }
.tw-reject-dialog .tw-review-actions { margin-top: 20px; }
.tw-reject-dialog .tw-review-actions button { min-height: 44px; padding-inline: 16px; }
.tw-publish-dock { position: fixed; z-index: 26; bottom: calc(68px + env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%,520px); min-height: 68px; padding: 10px 16px; transform: translateX(-50%); border-top: 1px solid var(--tw-line); background: #fff; }
.tw-publish-dock strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.tw-publish-dock small { display: block; margin-top: 4px; color: var(--tw-muted); font-size: 9px; }
.tw-primary, .tw-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: 4px; font-size: 12px !important; font-weight: 600 !important; white-space: nowrap; }
.tw-primary { border: 1px solid var(--tw-blue); background: var(--tw-blue); color: #fff; }
.tw-primary:disabled { border-color: #e8ebf0; background: #e8ebf0; color: #727d8d; }
.tw-publish-dock .tw-primary { min-width: 128px; }
.tw-primary.is-published:disabled { border-color: #c4e7db; background: #edf8f3; color: #087a58; }
.tw-secondary { border: 1px solid var(--tw-line); background: #fff; color: var(--tw-blue); }
.tw-primary svg { flex-shrink: 0; }
.tw-notice, .tw-warning { margin: 12px 0; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.tw-notice { color: var(--tw-muted); }
.tw-warning { color: #b3261e; }
.tw-error { padding-inline: 16px; }
.tw-history p { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--tw-line); font-size: 12px; }
.tw-history span { color: var(--tw-muted); overflow-wrap: anywhere; }
.target-workspace .state-panel { margin: 0; }
.target-workspace .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (hover: hover) {
  .tw-primary:not(:disabled):hover, .tw-confirm:hover { background: #003eb3; border-color: #003eb3; }
  .tw-node-link:hover { color: var(--tw-blue); }
}
@media (min-width: 700px) { .tw-publish-dock { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (max-width: 350px) {
  .tw-month input { width: 109px; }
  .tw-toolbar .tw-month { padding-inline: 6px; gap: 3px; }
  .tw-received-row > strong { font-size: 10px; }
  .tw-branch { padding-inline: 8px; }
  .tw-child-metrics { margin-left: 32px; gap: 3px; }
  .tw-branch-heading.responsibility-rank { grid-template-columns: 25px minmax(0,1fr) 10px; gap: 7px; }
  .tw-branch-heading .rank-medal { width: 25px; height: 25px; font-size: 13px; }
  .tw-field-caption { font-size: 8px; gap: 2px; }
  .tw-field-caption small { font-size: 7px; }
  .tw-branch-heading .responsibility-total b { font-size: 13px; }
  .tw-publish-dock { padding-inline: 10px; }
  .tw-primary { padding-inline: 9px; font-size: 11px !important; }
}
