/* Office request panel: per-model usage, visible goals and the flat detailed report.
   The desk keeps the request, recent progress, final answer, goals, usage and every required
   action; the blocks below are read in the "상세 보고서" dialog instead (office-panel.js). */
.office-workspace-desk :is(details[data-blocking-history],details[data-blocking-detail],details[data-question-details],details[data-goal-outcome],section[data-orchestration-overview],details[data-orchestration-summary],details[data-estimated-budget],details[data-progress-history],details.conversation-cautions,details.conversation-technical,details[data-runtime-details$="-children"]){display:none}

/* ---------- Usage under "업무 상세" ---------- */
.office-usage{margin:12px 0 4px;min-width:0;container-type:inline-size}
/* Values are read-only rounded tags (the shared .value-chip: no hover, press or pointer); labels stay
   plain text. Unknown / not applicable / partial or planned keep their words with a dashed outline. */
.office-usage .office-value{max-width:100%;color:#eef5f2;background:#21363a;border-color:#5d8078;word-break:keep-all;overflow-wrap:break-word;font-variant-numeric:tabular-nums;vertical-align:baseline}
.office-usage .office-value:is([data-value-kind=unknown],[data-value-kind=none]){border-style:dashed;background:transparent}
.office-usage .office-value[data-value-kind=partial]{border-style:dashed}
.office-usage-table tfoot .office-value{font-weight:650}
.office-usage[hidden]{display:none}
.office-usage-title{margin:0 0 8px;font-size:.875rem;line-height:1.6;color:#d3e5df}
.office-usage-title strong{color:#f1f8f5;font-size:.95rem;margin-right:4px}
.office-usage-table{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.5;table-layout:auto}
/* Model IDs break at their hyphens and Korean at word boundaries, never mid-word. */
.office-usage-table th,.office-usage-table td{padding:6px 8px;border-bottom:1px solid #46675f;text-align:left;vertical-align:top;white-space:normal;word-break:keep-all;overflow-wrap:break-word;background:transparent;color:#eef5f2}
.office-usage-table thead th{color:#c9ddd6;font-weight:600;border-bottom-width:2px}
.office-usage-table tfoot :is(th,td){font-weight:650;border-bottom:0;color:#f6fbf9}
.office-usage-note{margin:6px 0 0;font-size:.875rem;color:#d3e5df}
.office-report-open{margin-top:12px}
.office-desk-heading>p{margin-bottom:0}

/* ---------- Current status and elapsed time, right above the usage ---------- */
/* Only the duration text changes each second; tabular digits keep the line from jittering. */
.office-elapsed{margin:12px 0 4px;padding:10px 12px;border:1px solid #46675f;border-radius:10px;background:#17282a;min-width:0;overflow-wrap:anywhere}
.office-elapsed[hidden]{display:none}
.office-elapsed-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px;font-size:.875rem;color:#d3e5df}
.office-elapsed .office-value{color:#eef5f2;background:#21363a;border-color:#5d8078;word-break:keep-all}
.office-elapsed .office-value[data-value-kind=unknown]{border-style:dashed;background:transparent}
.office-elapsed-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:4px 16px;margin:0;font-size:.875rem;line-height:1.5}
.office-elapsed-facts>div{min-width:0}
.office-elapsed-facts dt{color:#c9ddd6;font-size:.8125rem}
.office-elapsed-facts dd{margin:0;color:#f1f8f5;word-break:keep-all;overflow-wrap:break-word}
.office-elapsed-facts dd[data-value-kind=unknown]{color:#e3c46a}
.office-elapsed-clock{font-variant-numeric:tabular-nums;font-weight:650}
.office-elapsed-note{margin:6px 0 0;font-size:.8125rem;line-height:1.5;color:#bcd3cb}
/* ---------- Completed and remaining goals ---------- */
.office-goals{margin:16px 0 4px;padding:14px 16px;border:1px solid #46675f;border-radius:12px;background:#17282a;min-width:0;overflow-wrap:anywhere}
.office-goals-title{margin:0 0 6px;font-size:1rem;color:#f1f8f5}
.office-goals h5{margin:14px 0 8px;font-size:.95rem;color:#d7ece4}
.office-goals-count{margin:0;color:#d3e5df;font-size:.9rem}
.office-goals-empty{margin:6px 0 0;color:#d3e5df;line-height:1.6}
.office-goal-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.office-goal{padding:10px 12px;border-left:3px solid #84ddbe;border-radius:6px;background:#1d3333}
.office-goal[data-goal-state=progress]{border-left-color:#8cc4f0}
.office-goal[data-goal-state=blocked]{border-left-color:#f0a07a}
.office-goal[data-goal-state=unknown]{border-left-color:#e3c46a}
.office-goal p{margin:4px 0;line-height:1.6;color:#e8f2ef}
.office-goal-text{font-weight:600;color:#f6fbf9}
.office-goal-label{display:inline-block;min-width:4.5em;margin-right:6px;color:#bcd3cb;font-size:.875rem}

/* ---------- Flat detailed report (one scroll, no accordions) ---------- */
#office-report{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:2px solid #547a76;border-radius:14px;background:#15262b;color:#e8f2ef;overflow:auto;overscroll-behavior:contain}
#office-report::backdrop{background:#000c}
.office-report-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 20px 12px;background:#15262b;border-bottom:1px solid #46675f}
.office-report-head h2{margin:4px 0 0;font-size:1.2rem}
.office-report-head button{flex-shrink:0}
.office-report-note{margin:12px 20px 0;color:#d3e5df;font-size:.9rem;line-height:1.6}
.office-report-body{padding:4px 20px 24px;min-width:0;overflow-wrap:anywhere}
.office-report-section{margin-top:18px;padding-top:4px;border-top:1px solid #46675f}
.office-report-section>h3{margin:12px 0 10px;font-size:1.08rem;color:#f1f8f5}
.office-report-body :is(h4,h5,h6){margin:16px 0 8px;font-size:.98rem;color:#d7ece4}
.office-report-block{margin:10px 0;padding-left:12px;border-left:2px solid #3a5265}
.office-report-facts{display:grid;grid-template-columns:minmax(110px,190px) minmax(0,1fr);gap:6px 14px;margin:8px 0 12px;line-height:1.6}
.office-report-facts dt{color:#c9ddd6}.office-report-facts dd{margin:0;min-width:0;white-space:pre-wrap}
.office-report-table{width:100%;border-collapse:collapse;margin:8px 0 14px;font-size:.875rem;line-height:1.5}
.office-report-table caption{text-align:left;padding:4px 0 6px;color:#d3e5df}
.office-report-table :is(th,td){padding:6px 8px;border:1px solid #46675f;text-align:left;vertical-align:top;white-space:normal;word-break:keep-all;overflow-wrap:break-word;background:transparent;color:#e8f2ef;font-weight:400}
.office-report-table thead th{background:#1b3134;color:#d7ece4;font-weight:600}
.office-report-table tbody th{font-weight:600;min-width:12em}
.office-report-table ul{margin:0;padding-left:18px}
.office-report-body pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.office-report-body .runtime-task,.office-report-body .panel{margin:8px 0;padding:10px 12px}
#office-report :is(button,a):focus-visible,.office-report-open:focus-visible{outline:3px solid #95edcf;outline-offset:3px}
.office-report-scroll{max-width:100%;overflow-x:auto}
.office-report-scroll:focus-visible{outline:3px solid #95edcf;outline-offset:2px}
@media(max-width:600px){
  #office-report{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:12px}
  .office-report-head,.office-report-body{padding-left:12px;padding-right:12px}.office-report-note{margin-left:12px;margin-right:12px}
  .office-report-facts{grid-template-columns:minmax(0,1fr);gap:2px}.office-report-facts dd{margin-bottom:8px}
  .office-goals{padding:12px}.office-goal-label{display:block;min-width:0}
  .office-elapsed{padding:8px 10px}.office-elapsed-facts{grid-template-columns:minmax(0,1fr)}
}
/* The desk column (desktop) and phones show each model as one compact labelled row; only a wide
   stacked desk keeps the five-column grid. Explicit table roles keep the table semantics. */
@container (max-width:560px){
  .office-usage-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .office-usage-table,.office-usage-table :is(tbody,tfoot){display:block;width:auto}
  .office-usage-table tr{display:flex;flex-wrap:wrap;gap:2px 16px;padding:8px 0;border-bottom:1px solid #46675f}
  .office-usage-table :is(td,th){display:block;border:0;padding:0}
  .office-usage-table td[data-label]::before{content:attr(data-label);margin-right:6px;color:#c9ddd6;font-size:.8125rem}
  .office-usage-table tfoot th{flex-basis:100%}
}
/* ---------- Work focus v1: the request window without the drawn office ---------- */
/* With the preserved office view off, the desk is the whole window, at a readable width. */
.office-workspace-layout:has(>#task-office[hidden]){grid-template-columns:minmax(0,1fr)}
.office-workspace-layout:has(>#task-office[hidden])>.office-workspace-desk{width:100%;max-width:980px;margin:0 auto;box-sizing:border-box}
.office-desk-heading>.office-desk-note{margin:8px 0 0;font-size:.875rem;color:#c9ddd6}
.conversation-publish-note{margin:10px 0 0;padding:8px 12px;border-left:3px solid #e3c46a;background:#2a2a1f;color:#f1e7c4;line-height:1.6;overflow-wrap:anywhere}
/* Actual actors. Only an observed current run moves (data-live=true); everything else is still. */
.work-actors{margin:12px 0 4px;min-width:0}
.work-actors[hidden]{display:none}
.work-actors-title{margin:0 0 8px;font-size:.95rem;color:#f1f8f5}
.work-actor-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.work-actor{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:6px 12px 6px 6px;border:1px solid #46675f;border-radius:999px;background:#17282a}
.work-actor-text{min-width:0;overflow-wrap:anywhere;font-size:.875rem;line-height:1.4;color:#e8f2ef}
.work-actor-text small{color:#c9ddd6;font-size:.8125rem}
.work-actor-state{display:inline-block;margin-left:2px;color:#d3e5df}
.work-actor-icon{position:relative;flex:none;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#2a4442;color:#f6fbf9;font-weight:700;font-size:.875rem;border:2px solid #5d8078}
.work-actor-icon[data-provider=codex]{border-color:#84ddbe}
.work-actor-icon[data-provider=claude]{border-color:#e5a87a}
.work-actor[data-actor-state=needs]{border-color:#e3c46a;background:#2e2a1c}
.work-actor[data-actor-state=needs] .work-actor-state{color:#f6e3a6;font-weight:650}
.work-actor[data-actor-state=stopped] .work-actor-state{color:#f5c3aa}
.work-actor:is([data-actor-state=history],[data-actor-state=done],[data-actor-state=unknown]) .work-actor-icon{opacity:.8}
.work-actor[data-actor-state=history]{border-style:dashed}
.work-actor[data-live=true] .work-actor-icon::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid transparent;border-top-color:#9ff0d4;border-right-color:#9ff0d4;animation:work-actor-spin 1.1s linear infinite}
.work-actor[data-live=true] .work-actor-state{color:#a8f2d8;font-weight:650}
@keyframes work-actor-spin{to{transform:rotate(360deg)}}
.work-actors-progress{margin:8px 0 0;font-size:.9rem;line-height:1.6;color:#e8f2ef;overflow-wrap:anywhere}
.work-actors-history,.work-actors-note{margin:6px 0 0;font-size:.875rem;color:#d3e5df}
@media(prefers-reduced-motion:reduce){.work-actor[data-live=true] .work-actor-icon::after{animation:none;border-color:#9ff0d4}}
