/* V1 agent workspace. Tokens follow V1_UI_STANDARD_2026-11-06.md. */
.agency-agents{--agent-ink:#1c1c24;--agent-muted:#656574;--agent-line:#e7e7ee;--agent-bg:#f6f6f9;color:var(--agent-ink);font-family:Manrope,system-ui,sans-serif;font-size:14px;line-height:1.5;min-width:0}
.agency-agents .page-heading{margin-bottom:24px}.client-v1-design .agency-agents .button,.agency-admin-design .agency-agents .button{border:0;border-radius:6px;min-height:38px;padding:9px 12px;font:500 13px/20px Manrope,system-ui,sans-serif;box-shadow:0 1px 12px #1c1c2408;background:#fff;gap:8px}.client-v1-design .agency-agents .button.primary,.agency-admin-design .agency-agents .button.primary{background:linear-gradient(120deg,#0147fd,#295aed 65%,#5477ff);color:#fff}.agency-agents .icon{width:18px;height:18px;flex:none;stroke-width:1.75}.agency-agents :is(button,input,select,textarea):focus-visible{outline:2px solid #0147fd;outline-offset:3px}.agency-agents [hidden]{display:none!important}.agency-agents .muted{color:var(--agent-muted);font-size:12px}.agency-agents .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.aga209-tabs{display:flex;gap:24px;overflow-x:auto;white-space:nowrap;margin:0 0 24px;border-bottom:1px solid #e7e7ee;background:none;padding:0}.aga209-tabs>button{display:flex;align-items:center;gap:8px;flex:none;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:0 0 14px;color:#656574;font:500 13px/20px Manrope,system-ui,sans-serif;cursor:pointer;transition:transform 160ms cubic-bezier(.2,.8,.2,1)}.aga209-tabs>button[aria-selected=true]{border-bottom-color:#0147fd;color:#0147fd}.aga209-tabs>button:hover{transform:translateY(-1px)}.aga209-tabs>button:active{transform:none}.aga209-tabs .icon{width:16px;height:16px}
.agent-mode{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px;color:#656574;font-size:12px}.agent-mode strong{font-size:12px;font-weight:600;color:#1c1c24}.agent-mode>.button{margin-left:auto;width:36px;height:36px;min-height:36px;padding:8px}.agent-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#888897;flex:none}.agent-inbox{display:grid;grid-template-columns:260px minmax(0,1fr);background:#fff;border-radius:10px;box-shadow:0 1px 12px #1c1c2408;overflow:hidden;height:clamp(520px,calc(100dvh - 270px),800px);min-height:520px;}.agent-inbox:has(.agent-logs){grid-template-columns:230px minmax(320px,1fr) 300px}.agent-thread-list{border-right:1px solid var(--agent-line);padding:20px 12px;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.agent-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px;margin-bottom:16px}.agency-agents .agent-list-heading h2,.agency-agents .agent-chat-person h2{font-size:14px;line-height:20px;margin:0;font-weight:600}.agent-search{display:flex;gap:8px;align-items:center;background:#f6f6f9;border-radius:6px;margin:0 8px 16px;padding:0 10px}.agent-search>.icon{width:16px;color:#888897}.agency-agents .agent-search input{width:100%;min-width:0;border:0;box-shadow:none;background:none;height:38px;padding:0;font:inherit;font-size:12px}.agent-thread{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px;border:0;border-radius:8px;color:#1c1c24;background:#fff;cursor:pointer;margin-bottom:4px}.agent-thread.selected{background:#edf2ff}.agent-thread strong{display:block;font-size:13px;font-weight:600}.agent-thread small{display:block;font-size:12px;color:#656574;margin-top:4px}.agent-avatar{display:grid;place-items:center;width:34px;height:34px;background:#f0f2f7;border-radius:8px;color:#656574;flex:none}.agent-thread.selected .agent-avatar{background:#e1e9ff;color:#0147fd}.agent-list-foot{font-size:12px;color:#888897;margin:auto 8px 0;padding-top:24px;line-height:1.6}.agent-list-empty{padding:24px 8px;font-size:12px;color:#888897}.agent-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.agent-chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--agent-line)}.agent-chat-person{display:flex;gap:12px;align-items:center}.agent-chat-person .muted{display:block;margin-top:4px}.agent-chat-control{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px 0;flex-wrap:wrap}.agent-chat-control>div{display:flex;gap:8px;flex-wrap:wrap}.agent-status{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:#656574}.agent-status.on{color:#24976b}.agent-status.on .agent-dot{background:#24976b}.agency-agents .agent-chat-control .button{background:#f6f6f9;box-shadow:none;min-height:34px;padding:6px 10px;font-size:12px}.agent-reason{font-size:12px;color:#888897;margin:8px 24px 16px}.agent-feed{display:flex;flex-direction:column;gap:20px;min-height:0;max-height:none;overflow-y:auto;padding:24px;background:#fafafb;flex:1}.agent-message{max-width:84%;align-self:flex-start;min-width:120px}.agent-message.agent,.agent-message.employee{align-self:flex-end}.agent-message-label{display:flex;gap:16px;justify-content:space-between;font-size:12px;color:#656574;margin-bottom:6px}.agent-message-label time{font-size:11px;color:#888897;font-variant-numeric:tabular-nums}.agent-message-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 16px;background:#fff;border-radius:8px;box-shadow:0 1px 12px #1c1c2408;font-size:13px;line-height:1.7}.agent-message.agent .agent-message-body{background:#edf2ff}.agent-message.employee .agent-message-body{background:#f0f5f2}.agent-feed-empty{margin:auto;text-align:center;max-width:360px;color:#888897;font-size:13px}.agent-feed-empty h3{color:#656574;font-size:14px;font-weight:500}.agent-compose{padding:16px 24px 20px;border-top:1px solid var(--agent-line)}.agent-compose-options{display:flex;align-items:end;gap:16px;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap}.agent-compose-options label{font-size:12px;color:#656574;display:flex;flex-direction:column;gap:6px}.agent-compose-options select{border:0;border-radius:6px;padding:8px 12px;height:38px;background:#f6f6f9;font:500 12px Manrope,system-ui,sans-serif;color:#1c1c24;max-width:100%}.agency-agents .agent-compose textarea{display:block;width:100%;box-sizing:border-box;min-height:76px;resize:vertical;border:0;border-radius:6px;padding:12px;background:#f6f6f9;color:#1c1c24;font:13px/20px Manrope,system-ui,sans-serif}.agent-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.agent-logs{padding:20px 16px;border-left:1px solid var(--agent-line);min-width:0;min-height:0;max-height:none;overflow-y:auto}.agent-logs>.muted{margin-bottom:20px}.agent-logs .agent-list-heading{padding:0}.agent-logs .agent-list-heading h2{font-size:13px}.agent-logs .button{box-shadow:none;padding:4px;width:28px;min-height:28px}.agent-log-entries article{padding:12px 0;border-bottom:1px solid var(--agent-line)}.agent-log-entries article>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.agent-log-entries strong{font-size:12px;font-weight:600}.agent-log-entries time{font:11px Manrope,system-ui,sans-serif;color:#888897}.agent-log-entries p{font-size:12px;line-height:1.6;color:#656574;margin:6px 0 0;overflow-wrap:anywhere}.agent-log-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:24px;font-size:12px;color:#888897}.agent-log-meta strong{font-weight:500;color:#656574;text-align:right}.agent-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 32px;max-width:500px;align-self:center;margin:auto;text-align:center;min-height:400px}.agent-empty>.icon{color:#888897;width:30px;height:30px;margin-bottom:20px}.agent-empty h2{font-size:20px;font-weight:600;margin:0 0 12px}.agent-empty p{font-size:13px;color:#656574;line-height:1.7}
/* Existing V1 settings retain their original actions and fields. */
.agency-agents .aga209-panel{border:0;border-radius:10px;background:#fff;padding:24px;box-shadow:0 1px 12px #1c1c2408}.agency-agents .aga209-panel h2{font-size:18px;margin:0 0 8px}.aga209-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.aga209-field{display:flex;flex-direction:column;gap:8px;margin:20px 0;color:#656574;font-size:13px}.aga209-field>:is(input,select,textarea){width:100%;box-sizing:border-box;background:#f6f6f9;border:0;border-radius:6px;padding:10px 12px;color:#1c1c24;font:14px/20px Manrope,system-ui,sans-serif;min-height:38px}.aga209-field textarea{resize:vertical}.aga209-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin:12px 0}.aga209-check input{width:16px;height:16px;flex:none;accent-color:#0147fd;margin-top:3px}.aga209-faq-row{padding:16px 0;border-bottom:1px solid #e7e7ee}.aga209-save{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:20px;flex-wrap:wrap}.aga209-save>span{margin-right:auto;font-size:12px;color:#888897}.aga209-save>.button[disabled]{display:none}.aga209-chat{display:flex;flex-direction:column;gap:16px;min-height:160px;padding:20px;background:#fafafb;border-radius:8px}.aga209-message{padding:12px 16px;background:#fff;border-radius:8px;max-width:85%;font-size:13px;white-space:pre-wrap}.aga209-message.assistant{align-self:flex-end;background:#edf2ff}.aga209-message small{display:block;color:#888897;font-size:12px;margin-top:8px}.aga209-price,.aga209-quota{padding:24px;background:#f6f6f9;border-radius:8px}.aga209-price>strong,.aga209-quota>strong{display:block;font-size:28px;margin:12px 0}.aga209-price strong small,.aga209-quota strong small{font-size:13px;font-weight:400}.aga209-quota progress{width:100%;accent-color:#0147fd}.aga209-invoice{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #e7e7ee}.aga209-invoice>div{flex:1}.aga209-invoice small{display:block;color:#888897;margin-top:4px;font-size:12px}.aga209-upload{cursor:pointer}.agency-agents .notice{border:0;border-radius:8px;background:#f6f6f9;font-size:13px;padding:16px;line-height:1.6}.agency-agents .aga209-state{margin:16px 0}
@media(max-width:1280px){.agent-inbox:has(.agent-logs){grid-template-columns:200px minmax(0,1fr)}.agent-logs{grid-column:1/-1;border-left:0;border-top:1px solid var(--agent-line);max-height:340px}.agent-log-entries{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.agent-log-meta{max-width:400px}.agent-inbox{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){.agent-inbox,.agent-inbox:has(.agent-logs){display:flex;flex-direction:column;min-height:600px}.agent-thread-list{border-right:0;border-bottom:1px solid var(--agent-line);padding:16px}.agent-list-heading{padding:0}.agent-search{margin:0 0 12px}.agent-list-foot{display:none}.agent-thread{padding:10px}.agency-agents .button{min-height:44px}.agent-chat-head,.agent-chat-control{padding:16px}.agent-chat-person{gap:8px}.agent-chat-person .muted{font-size:11px}.agent-reason{margin:0 16px 12px}.agent-feed{padding:16px;max-height:420px;min-height:250px}.agent-message{max-width:94%}.agent-compose{padding:16px}.agent-compose-options{align-items:flex-start}.agent-compose-options>.muted{display:none}.agent-compose-footer{align-items:flex-start;flex-direction:column}.agent-compose-footer .button{align-self:flex-end}.agent-logs{padding:16px}.agent-log-entries{display:block}.aga209-two{grid-template-columns:1fr;gap:0}.aga209-save{align-items:stretch;flex-direction:column}.aga209-save>span{margin:0}.agent-mode{align-items:flex-start}.agent-mode>span:last-of-type{flex-basis:80%}.agent-empty{padding:32px 20px;min-height:280px}.aga209-tabs{gap:24px}.aga209-tabs>button{min-height:44px}.agency-agents .aga209-panel{padding:20px}.agent-compose textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.aga209-tabs>button{transition:none;transform:none!important}}

/* Question tabs and phrase search, shared V1 component. */
.ai-faq-search{display:flex;flex-direction:column;gap:8px;margin:20px 0;color:#656574;font-size:12px}.ai-faq-search input{width:100%;box-sizing:border-box;background:#f6f6f9;border:1px solid #e7e7ee80;border-radius:6px;min-height:44px;padding:12px;font:14px Manrope,system-ui,sans-serif;color:#1c1c24}.ai-faq-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;min-width:0}.ai-faq-tabs{max-height:520px;overflow:auto;display:flex;flex-direction:column;gap:4px}.ai-faq-tabs button{display:flex;gap:12px;align-items:center;text-align:left;min-height:44px;padding:12px;border:0;border-radius:6px;background:#fff;color:#656574;font:13px Manrope,system-ui,sans-serif;cursor:pointer}.ai-faq-tabs button[aria-selected=true]{background:#edf2ff;color:#0147fd}.ai-faq-tabs span{font-size:11px;color:#888897;flex:none}.ai-faq-tabs strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ai-faq-tabs button[hidden],.ai-faq-item[hidden]{display:none}.ai-faq-item{min-width:0}.ai-faq-item h3{font-size:16px;margin:0}.ai-faq-item textarea{width:100%;box-sizing:border-box}.ai-faq-tabs button:focus-visible{outline:2px solid #0147fd;outline-offset:-2px}@media(max-width:760px){.ai-faq-layout{grid-template-columns:1fr;gap:16px}.ai-faq-tabs{max-height:210px}}

.agent-thread-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.agent-thread>span{min-width:0}.agent-thread strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-last-time{display:block;font-size:10px;color:#888897;margin-top:4px}.agent-chat-head,.agent-chat-control,.agent-reason,.agent-conversation>.aga209-field{flex-shrink:0}.agent-conversation>.aga209-field{margin:0 24px 12px}.agent-logs article{font-size:12px;padding:12px 0;border-bottom:1px solid #e7e7ee80}.agent-logs p{overflow-wrap:anywhere}.agency-agents .agent-feed{overscroll-behavior:contain}@media(max-width:1280px){.agent-inbox:has(.agent-logs){grid-template-rows:minmax(0,1fr) 160px}.agent-logs{max-height:none}}@media(max-width:760px){.agency-agents .agent-inbox,.agency-agents .agent-inbox:has(.agent-logs){height:760px;min-height:0;max-height:calc(100dvh - 150px)}.agency-agents .agent-thread-list{flex:0 0 190px;min-height:0;overflow:hidden}.agency-agents .agent-conversation{flex:1;min-height:0}.agency-agents .agent-feed{min-height:0;max-height:none}.agency-agents .agent-logs{flex:0 0 150px;max-height:150px}.agent-conversation>.aga209-field{margin:0 16px 12px}}

/* Foldable settings with readable summaries and intentional editing. */
.agent-setting-stack{display:flex;flex-direction:column;gap:12px}.agent-settings-intro{margin-bottom:24px}.agent-settings-intro h2{margin:0 0 8px;font-size:22px}.agent-settings-intro p,.agent-settings-note{font-size:13px;color:#656574;line-height:1.7}.agent-setting-card{border:1px solid #e7e7ee80;border-radius:10px;background:#fff;overflow:hidden}.agent-setting-card>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer;min-height:64px;box-sizing:border-box}.agent-setting-card>summary::-webkit-details-marker{display:none}.agent-setting-card>summary>span:nth-child(2){min-width:0;flex:1}.agent-setting-card>summary strong{display:block;font-size:14px;font-weight:600;color:#1c1c24}.agent-setting-card>summary small{display:block;font-size:12px;color:#888897;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-setting-mark{display:grid;place-items:center;background:#edf2ff;color:#0147fd;width:34px;height:34px;border-radius:8px;flex:none}.agent-setting-mark .icon{width:17px;height:17px}.agent-setting-chevron{font-size:20px;color:#888897;transition:transform .15s}.agent-setting-card[open] .agent-setting-chevron{transform:rotate(180deg)}.agent-setting-content{padding:4px 20px 20px}.agent-setting-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;color:#656574;padding:16px;background:#fafafb;border-radius:8px;margin-bottom:16px}.agent-setting-preview p{margin:6px 0 0}.agent-tone-options{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.agent-tone-options label{cursor:pointer;display:flex;gap:8px;align-items:center;border:1px solid #e7e7ee;border-radius:6px;padding:12px;font-size:13px}.agent-tone-options label:has(input:checked){border-color:#0147fd;background:#edf2ff;color:#0147fd}.agent-action-toggle{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid #e7e7ee80;cursor:pointer;position:relative}.agent-action-toggle>span:first-child{flex:1;min-width:0}.agent-action-toggle strong{display:block;font-size:14px;font-weight:600}.agent-action-toggle small{display:block;font-size:12px;color:#888897;line-height:1.7;margin-top:6px}.agent-action-toggle>input{position:absolute;right:0;width:42px;height:26px;opacity:0;cursor:pointer;z-index:1}.agent-switch{display:block;width:38px;height:22px;border-radius:14px;background:#d9d9e3;padding:3px;box-sizing:border-box;flex:none}.agent-switch:before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #1c1c2420}.agent-action-toggle>input:checked+.agent-switch{background:#0147fd}.agent-action-toggle>input:checked+.agent-switch:before{transform:translateX(16px)}.agent-action-toggle>input:focus-visible+.agent-switch{outline:2px solid #0147fd;outline-offset:3px}.agent-action-rule{padding:16px 0;border-bottom:1px solid #e7e7ee80}.agent-action-rule strong{font-size:13px}.agent-action-rule p{font-size:12px;color:#656574;line-height:1.7;margin:6px 0 0}.agent-scenario-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.agent-scenario-options label{display:flex;gap:10px;align-items:center;font-size:13px}.agent-scenario-options input{accent-color:#0147fd}.agent-setting-content [hidden]{display:none!important}.agent-setting-content textarea{width:100%;box-sizing:border-box;resize:vertical}.agent-setting-content .button{min-height:40px}.agent-setting-card>summary:focus-visible{outline:2px solid #0147fd;outline-offset:-3px}@media(max-width:760px){.agent-setting-card>summary{padding:16px}.agent-setting-content{padding:0 16px 16px}.agent-scenario-options{grid-template-columns:1fr}.agent-setting-card>summary small{white-space:normal}.agent-setting-content .button{min-height:44px}}@media(prefers-reduced-motion:reduce){.agent-setting-chevron{transition:none}}

.agent-chat-tools{display:flex;gap:8px;align-items:center;flex:none}.agent-context-button{width:38px;min-width:38px;padding:8px!important}.agent-context-button .icon{width:17px;height:17px}

.agent-section-tools{display:flex;justify-content:flex-end;margin:-12px 0 16px}

.agent-setting-card .agent-setting-chevron{display:none}

.agent-doc-guide{margin:20px 0}.agent-doc-guide p{margin:8px 0 0}.agent-doc-detail{min-width:0}.agent-doc-detail>.agent-setting-card{margin:16px 0}.agent-doc-detail .card-heading{align-items:flex-start}.agent-doc-detail h3{margin:0 0 8px}.agent-doc-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;max-height:420px;overflow:auto}.agent-doc-detail>label{margin:16px 0}.agent-doc-detail textarea{box-sizing:border-box;width:100%}.agent-doc-detail code,.agent-doc-guide code{color:#0147fd;background:#edf2ff;padding:3px 7px;border-radius:4px}
