.agent-office-section { background: #fff; }
.agent-office-section .section-heading { width: 100%; max-width: 920px; margin-bottom: 44px; }
.agent-office-section .section-heading h2 { line-height: 1.35; }
.office-console { overflow: hidden; border: 1px solid #dfe7f4; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px #233e7710; }
.office-topbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; background: #f7f9ff; border-bottom: 1px solid var(--line); }
.office-brand { display: flex; align-items: center; gap: 10px; }
.office-brand > svg { width: 24px; height: 24px; color: var(--blue); }
.office-brand strong { color: #23314e; font-size: 15px; font-weight: 600; }
.office-live { display: flex; align-items: center; gap: 7px; color: #667a9c; font-size: 12px; white-space: nowrap; }
.office-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #3567f810; }
.office-toolbar { padding: 14px 28px 6px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.office-scenarios { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fd; }
.office-scenarios button { border: 0; border-radius: 8px; padding: 10px 15px; background: transparent; color: #71809b; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.office-scenarios button svg { width: 17px; height: 17px; }
.office-scenarios button[aria-pressed="true"] { color: var(--blue); background: #fff; box-shadow: 0 2px 8px #203f7520; }
.office-pause { display: flex; gap: 8px; align-items: center; padding: 9px 12px; background: #fff; color: #627494; border: 1px solid #dce6f5; border-radius: 9px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.office-pause > span:first-child { color: var(--blue); font-size: 15px; width: 12px; }
.office-scene-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 4px 28px 0; font-size: 12px; line-height: 1.6; color: #8492aa; }
.office-scene-caption > span:first-child { color: #50668d; }
.office-interaction-hint { text-align: right; }
.office-mobile-flow, .office-all-roles { display: none; }
.office-stage { position: relative; width: calc(100% - 36px); margin: 0 18px; aspect-ratio: 1060 / 650; isolation: isolate; }
.office-floor, .office-connections { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; fill: none; pointer-events: none; }
.office-floor { z-index: -2; }
.office-connections { z-index: -1; }
.office-route { fill: none; stroke: #c8dafa; stroke-width: 1.4; opacity: .6; }
.office-active-route { fill: none; stroke: #5b88fd; stroke-width: 2.4; stroke-dasharray: 5 6; }
.office-agent { position: absolute; left: var(--office-x); top: var(--office-y); transform: translate(-50%, -50%); width: 15.6%; height: 25%; padding: 0; border: 0; background: transparent; color: #263a5a; text-align: center; cursor: pointer; -webkit-user-select: none; user-select: none; }
.office-agent::before { content: ""; position: absolute; inset: 12% 1% 3%; z-index: -1; background: #ffffff5e; border: 1px solid transparent; border-radius: 18px; transition: border-color .25s, background .25s, box-shadow .25s; }
.office-agent:hover::before, .office-agent[aria-pressed="true"]::before { border-color: #b2cbf8; background: #ffffffbe; box-shadow: 0 8px 20px #3462a312; }
.office-agent.is-source::before { border-color: #8aafff; background: #f3f7ffcf; box-shadow: 0 8px 24px #3567f81a; }
.office-agent.is-target::before { border-color: #bfd4fa; background: #ffffffaa; }
.office-agent .office-desk { display: block; width: 89%; height: 62%; margin: 2% auto 0; overflow: visible; fill: none; stroke: none; filter: drop-shadow(0 6px 4px #4679b00c); }
.office-agent .office-monitor-screen { fill: #597baf; transition: fill .3s; }
.office-agent.is-source .office-monitor-screen, .office-agent.is-target .office-monitor-screen { fill: #3567f8; }
.office-agent .office-robot-head { fill: #fff; stroke: #a7bce0; stroke-width: 1.4; transition: stroke .3s; }
.office-agent.is-source .office-robot-head { stroke: #3567f8; }
.office-agent.is-source .office-robot { animation: office-bob 2s ease-in-out infinite; }
.office-agent-title { display: block; font-size: clamp(11px, 1.05vw, 14px); font-weight: 600; line-height: 1.6; }
.office-agent-specialty { display: block; color: #8594ad; font-size: clamp(9px, .87vw, 11px); line-height: 1.6; }
.office-agent-state { position: absolute; top: -4%; left: 50%; transform: translateX(-50%); min-width: 70px; padding: 4px 9px; border: 1px solid #d9e5fa; border-radius: 7px; background: #fff; color: #3668e8; font-size: 10px; white-space: nowrap; opacity: 0; transition: opacity .2s; box-shadow: 0 3px 10px #35599608; }
.office-agent.is-source .office-agent-state, .office-agent.is-target .office-agent-state { opacity: 1; }
.office-agent.is-source .office-agent-state { background: #3567f8; border-color: #3567f8; color: #fff; }
.office-agent.is-complete:not(.is-source):not(.is-target) .office-agent-title::after { content: " ✓"; color: #6f95cf; font-size: 11px; }
.office-hub { position: absolute; left: 50%; top: 50%; width: 19%; transform: translate(-50%, -50%); display: flex; align-items: center; flex-direction: column; gap: 5px; pointer-events: none; }
.office-hub > svg { width: 28px; height: 28px; color: var(--blue); padding: 4px; box-sizing: content-box; background: #e7f0ff; border-radius: 10px; }
.office-hub strong { color: #315b9c; font-size: 13px; }
.office-hub span { color: #8a9cba; font-size: 10px; }
.office-foundation { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 0; color: #7183a2; font-size: 12px; }
.office-foundation span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.office-foundation svg { width: 15px; height: 15px; color: #7498d9; }
.office-detail-grid { display: grid; grid-template-columns: 1.45fr 1fr; border-top: 1px solid var(--line); background: #fcfdff; }
.office-flow-detail { padding: 26px 30px 22px; }
.office-step-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; font-size: 11px; color: var(--blue); }
.office-transfer { color: #8190aa; }
.office-flow-detail h3, .office-role-detail h3 { margin: 0; color: #23314e; font-size: 19px; font-weight: 600; line-height: 1.5; }
.office-flow-detail p, .office-role-detail p { margin: 9px 0 12px; color: #637695; font-size: 13px; line-height: 1.9; min-height: 49px; }
.office-artifact { display: flex; align-items: center; gap: 7px; color: #5777aa; font-size: 12px; }
.office-artifact svg { width: 15px; height: 15px; }
.office-step-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; }
.office-step-dots { display: flex; align-items: center; gap: 6px; flex: 1; max-width: 280px; }
.office-step-dots button { position: relative; flex: 1; height: 26px; border: 0; padding: 10px 0; cursor: pointer; background: transparent; }
.office-step-dots button::before { content: ""; display: block; height: 3px; border-radius: 3px; background: #e0e8f6; }
.office-step-dots button.is-past::before { background: #a8c0f5; }
.office-step-dots button[aria-current="step"]::before { background: var(--blue); }
.office-step-controls > button, .office-resume-follow { padding: 5px 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; cursor: pointer; }
.office-step-controls > button span { margin-left: 8px; }
.office-role-detail { padding: 24px 30px; border-left: 1px solid var(--line); position: relative; }
.office-role-eyebrow { display: block; margin-bottom: 9px; color: #8393ae; font-size: 11px; }
.office-role-agent { position: absolute; right: 30px; top: 62px; color: #8293ae; font-size: 11px; }
.office-human-gate { display: flex; align-items: flex-start; gap: 7px; padding: 9px 11px; color: #6680a4; font-size: 11px; line-height: 1.7; background: #f0f5fc; border-radius: 7px; }
.office-human-gate svg { flex: 0 0 13px; width: 13px; height: 13px; margin-top: 3px; }
.office-resume-follow { margin-top: 10px; }
.office-fallback-note { margin: 0; padding: 13px 28px; color: #5d7192; font-size: 10px; line-height: 1.8; border-top: 1px solid var(--line); }
.office-agent-specialty, .office-scene-caption, .office-hub span,
.office-transfer, .office-role-eyebrow, .office-role-agent,
.office-foundation { color: #5d7192; }
.office-console [hidden] { display: none !important; }
.office-console button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.office-console.is-paused .office-robot { animation-play-state: paused; }
@keyframes office-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 900px) {
  .office-scene-caption { grid-template-columns: 1fr 1fr; gap: 7px 12px; }
  .office-foundation { grid-row: 2; grid-column: 1 / -1; }
  .office-interaction-hint { grid-row: 1; grid-column: 2; }
  .office-agent-title { font-size: 11px; }
  .office-agent-specialty { font-size: 9px; }
  .office-hub strong { font-size: 11px; }
  .office-hub span { font-size: 9px; }
  .office-hub > svg { width: 21px; height: 21px; }
  .office-role-agent { position: static; display: block; margin-top: 3px; }
  .office-flow-detail, .office-role-detail { padding: 22px; }
  .office-step-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 640px) {
  .agent-office-section .section-heading { margin-bottom: 30px; }
  .agent-office-section .section-heading h2 { font-size: 29px; }
  .agent-office-section .section-heading h2 { text-wrap: balance; }
  .office-console { border-radius: 18px; }
  .office-topbar { padding: 17px 16px; gap: 7px; flex-wrap: wrap; }
  .office-brand strong { font-size: 13px; }
  .office-brand > svg { width: 20px; height: 20px; }
  .office-live { margin-left: 30px; font-size: 10px; }
  .office-toolbar { padding: 10px 12px 4px; gap: 7px; flex-wrap: wrap; }
  .office-scenarios { width: 100%; gap: 2px; }
  .office-scenarios button { flex: 1; justify-content: center; padding: 10px 5px; gap: 5px; font-size: 11px; white-space: nowrap; }
  .office-scenarios button svg { width: 13px; height: 13px; }
  .office-pause { margin-left: auto; padding: 6px 9px; font-size: 10px; }
  .office-scene-caption { padding: 4px 16px 10px; font-size: 10px; grid-template-columns: 1fr; gap: 7px; }
  .office-interaction-hint { display: none; }
  .office-mobile-flow { display: flex; flex-direction: column; gap: 5px; margin: 0 12px 16px; padding: 10px 12px; border-left: 2px solid #3567f8; background: #f1f6ff; border-radius: 0 8px 8px 0; font-size: 11px; color: #597498; }
  .office-mobile-flow strong { color: #3567f8; font-size: 11px; font-weight: 500; }
  .office-stage { width: calc(100% - 24px); height: auto; margin: 0 12px; aspect-ratio: auto; padding: 12px; border: 1px solid #e0e9f7; border-radius: 14px; background: #f6f9fe; }
  .office-floor, .office-connections { display: none; }
  .office-hub { position: static; width: 100%; transform: none; flex-direction: row; justify-content: center; gap: 8px; padding: 2px 0 17px; }
  .office-hub > svg { width: 18px; height: 18px; padding: 5px; }
  .office-hub strong { font-size: 11px; }
  .office-hub span { font-size: 9px; }
  .office-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .office-agent { position: relative; left: auto; top: auto; transform: none; width: 100%; height: 146px; border-radius: 12px; }
  .office-agent:not(.is-in-scenario):not([aria-pressed="true"]) { display: none; }
  .office-console.show-all-roles .office-agent { display: block; }
  .office-all-roles { display: block; width: calc(100% - 24px); margin: 10px 12px 0; padding: 10px; background: #fff; color: #56729d; border: 1px solid #e0e9f7; border-radius: 9px; font-size: 11px; cursor: pointer; }
  .office-agent::before { inset: 4px 0 0; background: #ffffff80; border-color: #e4ebf7; border-radius: 12px; }
  .office-agent .office-desk { width: 105px; height: 90px; margin: 2px auto 0; }
  .office-agent-title { font-size: 12px; }
  .office-agent-specialty { font-size: 10px; }
  .office-agent-state { top: -6px; padding: 3px 6px; font-size: 9px; }
  .office-foundation { gap: 6px 10px; padding: 0; justify-content: center; flex-wrap: wrap; font-size: 9px; }
  .office-foundation svg { width: 12px; height: 12px; }
  .office-foundation span { gap: 4px; }
  .office-detail-grid { grid-template-columns: 1fr; }
  .office-flow-detail, .office-role-detail { padding: 20px 17px; }
  .office-role-detail { border-left: 0; border-top: 1px solid var(--line); }
  .office-step-meta { flex-direction: row; font-size: 10px; }
  .office-flow-detail h3, .office-role-detail h3 { font-size: 17px; }
  .office-flow-detail p, .office-role-detail p { font-size: 12px; min-height: 0; }
  .office-role-agent { position: absolute; top: 57px; right: 17px; margin: 0; font-size: 10px; }
  .office-fallback-note { padding: 12px 17px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .office-agent.is-source .office-robot { animation: none; }
  .office-console * { transition: none !important; }
}
