.ai-workspace {
  --ai-purple: #6b2d96;
  --ai-ink: #30243c;
  --ai-muted: #74677e;
  --ai-line: #e7dfed;
  color: var(--ai-ink);
  line-height: 1.55;
  font-size: 14px;
  max-width: 1500px;
  margin: 0 auto;
}
.ai-workspace *, .ai-workspace *::before, .ai-workspace *::after { box-sizing: border-box; }
.ai-workspace [hidden] { display: none !important; }
.ai-workspace h2, .ai-workspace h3, .ai-workspace h4, .ai-workspace p { margin: 0; }
.ai-workspace h3 { font-size: 23px; letter-spacing: -.025em; }
.ai-workspace h4 { font-size: 16px; letter-spacing: -.015em; }
.ai-workspace button, .ai-workspace textarea, .ai-workspace select, .ai-workspace input { font: inherit; }
.ai-workspace button { cursor: pointer; }
.ai-workspace button:focus-visible, .ai-workspace select:focus-visible, .ai-workspace textarea:focus-visible, .ai-workspace input:focus-visible, .ai-workspace a:focus-visible, .ai-workspace summary:focus-visible { outline: 3px solid #ab72d4; outline-offset: 3px; }
.ai-workspace button:disabled, .ai-workspace textarea:disabled { opacity: .55; cursor: default; }
.ai-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 38px; border: 1px solid #e8ddf0; border-radius: 22px; background: radial-gradient(ellipse at 90% 80%, #dfc4f1 0%, transparent 45%), linear-gradient(120deg, #eee2f7, #fbf8fd 70%); margin-bottom: 28px; }
.ai-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .15em; color: #80559a; }
.ai-hero h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.16; letter-spacing: -.04em; margin: 12px 0 14px; }
.ai-hero p { color: #716078; max-width: 590px; }
.ai-hero-symbol { width: 116px; height: 116px; display: grid; place-items: center; flex-shrink: 0; background: #ffffffb5; border: 1px solid #fff; border-radius: 30px; color: #8b4db1; transform: rotate(8deg); box-shadow: 0 16px 30px #6b2d960d; }
.ai-hero-symbol svg { width: 64px; height: 64px; }
.ai-provider { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 12px; color: #70557e; background: #ffffffb5; padding: 6px 10px; border-radius: 7px; }
.ai-provider > span { width: 7px; height: 7px; background: #3a9970; border-radius: 50%; }
.ai-provider.unavailable > span { background: #b17d22; }
.ai-notice, .ai-service-note { padding: 13px 17px; border: 1px solid #dfd0ec; border-radius: 10px; background: #f7f0fc; color: #624576; margin: 0 0 20px !important; overflow-wrap: anywhere; }
.ai-notice.error, .ai-task-status.error { color: #963f43; background: #fff5f4; border-color: #f0d4d2; }
.ai-service-note { background: #fffaf0; color: #85662c; border-color: #ede0bd; }
.ai-section-heading, .ai-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.ai-section-heading p, .ai-list-heading p { color: var(--ai-muted); margin-top: 4px; }
.ai-count { font-size: 12px; color: #785987; padding: 7px 12px; border: 1px solid var(--ai-line); border-radius: 20px; white-space: nowrap; }
.ai-agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 30px; }
.ai-agent-card { border: 1px solid var(--ai-line); background: #fff; border-radius: 16px; padding: 22px; min-width: 0; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.ai-agent-card.selected { border-color: #ba91d4; box-shadow: 0 4px 18px #6b2d960a; background: linear-gradient(145deg, #fdfaff, #fff 65%); }
.ai-agent-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.ai-agent-card-heading h4 { font-size: 16px; line-height: 1.3; }
.ai-agent-glyph { display: grid; place-items: center; width: 42px; height: 42px; background: #f1e7f8; color: #8544ab; font-size: 25px; border-radius: 12px; flex-shrink: 0; }
.ai-agent-card > p { color: var(--ai-muted); font-size: 13px; margin-bottom: 14px; overflow-wrap: anywhere; }
.ai-tool-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 10px; }
.ai-tool-tags span { background: #f6f3f8; border: 1px solid #eee8f2; color: #7d678b; border-radius: 5px; font-size: 10px; padding: 3px 6px; }
.ai-card-actions { display: flex; margin-top: auto; padding-top: 12px; }
.ai-card-actions .ai-button { width: 100%; }
.ai-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 13px; background: #fff; border: 1px solid var(--ai-line); color: #604774; border-radius: 9px; font-weight: 650 !important; font-size: 12px !important; line-height: 1.35; }
.ai-button:hover { background: #f6effb; }
.ai-button.primary { background: var(--ai-purple); color: white; border-color: var(--ai-purple); }
.ai-button.primary:hover { background: #552273; }
.ai-text-button { border: 0; background: transparent; color: #805797; font-size: 12px !important; min-height: 40px; padding: 7px 3px; text-align: left; }
.ai-text-button:hover { color: #542274; text-decoration: underline; }
.ai-panel { border: 1px solid var(--ai-line); border-radius: 19px; background: #fff; overflow: hidden; scroll-margin-top: 20px; }
.ai-panel-heading { padding: 26px 28px 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.ai-panel-heading h3 { margin: 5px 0 7px; }
.ai-panel-heading p { color: var(--ai-muted); max-width: 760px; }
.ai-tabs { display: flex; padding: 0 24px; gap: 20px; border-bottom: 1px solid var(--ai-line); }
.ai-tabs button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 14px 6px 12px; color: #8b7b95; min-height: 48px; font-size: 13px; font-weight: 650; }
.ai-tabs button.selected { color: #6b2d96; border-bottom-color: #873eb2; }
.ai-chat-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 580px; }
.ai-conversations { background: #fbf9fd; border-right: 1px solid var(--ai-line); padding: 21px 15px; min-width: 0; }
.ai-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.ai-history-heading h4 { font-size: 14px; }
.ai-history-heading .ai-button { padding: 7px 10px; min-height: 38px; }
.ai-private-note { color: #9884a5; font-size: 11px; margin: 7px 0 14px !important; }
.ai-conversation-list { display: flex; flex-direction: column; gap: 7px; max-height: 550px; overflow: auto; padding: 3px; margin: -3px; }
.ai-conversation { padding: 12px; border: 1px solid transparent; background: transparent; border-radius: 9px; text-align: left; min-width: 0; color: #675173; }
.ai-conversation:hover { background: #f1e8f8; }
.ai-conversation.selected { border-color: #e5d3f1; background: #f0e4f8; }
.ai-conversation strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-conversation time { display: block; color: #9b86a7; font-size: 10px; margin-top: 5px; }
.ai-muted { color: var(--ai-muted); font-size: 12px; }
.ai-chat-main { min-width: 0; padding: 23px 26px 16px; display: flex; flex-direction: column; }
.ai-messages { min-height: 270px; max-height: 620px; overflow: auto; padding: 4px 3px 18px; margin: -3px; scrollbar-width: thin; }
.ai-empty { text-align: center; padding: 45px 22px; color: var(--ai-muted); }
.ai-empty > span { display: block; font-size: 32px; color: #b18cc9; margin-bottom: 12px; }
.ai-empty h4, .ai-empty h2, .ai-empty h3 { color: #5e436f; margin-bottom: 9px; }
.ai-empty p { max-width: 470px; margin: auto; font-size: 13px; }
.ai-examples { display: grid; gap: 8px; max-width: 530px; margin: -20px auto 15px; }
.ai-example { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #eee5f4; border-radius: 9px; background: #fcfaff; color: #81648f; font-size: 12px !important; text-align: left; }
.ai-example:hover { background: #f6effa; border-color: #d9c4e9; }
.ai-message { margin: 0 0 22px; padding: 16px 18px; background: #faf7fc; border: 1px solid #eee6f4; border-radius: 0 13px 13px 13px; overflow-wrap: anywhere; }
.ai-message.user { background: #f1e6f9; border-color: #e8d6f3; margin-left: 35px; border-radius: 13px 0 13px 13px; }
.ai-message-meta { display: flex; justify-content: space-between; gap: 13px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.ai-message-meta strong { font-size: 12px; color: #75458d; }
.ai-message-meta time { font-size: 10px; color: #a08caa; }
.ai-message-text { white-space: pre-wrap; font-size: 13px; line-height: 1.75; }
.ai-sources { border-top: 1px solid #e7dcec; margin-top: 16px; padding-top: 11px; font-size: 11px; }
.ai-sources > strong { display: block; font-size: 10px; letter-spacing: .04em; color: #8d739c; margin-bottom: 7px; }
.ai-sources > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; margin: 5px 0; }
.ai-sources a { color: #76369b; text-decoration: underline; text-underline-offset: 3px; }
.ai-sources small { color: #9f8bab; font-size: 10px; }
.ai-composer { margin-top: auto; border: 1px solid #dcc8ea; border-radius: 12px; padding: 13px 14px 11px; background: #fff; box-shadow: 0 4px 15px #6b2d9605; }
.ai-composer label { display: block; font-size: 11px; color: #90759f; margin-bottom: 7px; }
.ai-composer textarea { display: block; width: 100%; resize: vertical; border: 0; border-radius: 5px; padding: 4px 2px; color: var(--ai-ink); background: transparent; min-height: 75px; max-height: 260px; font-size: 13px; }
.ai-composer textarea::placeholder { color: #b0a0bb; }
.ai-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.ai-composer-footer > span { color: #aa96b7; font-size: 10px; }
.ai-task-status { color: #7f5b96; background: #f5ecfb; border: 1px solid #e7d5f3; border-radius: 9px; padding: 10px 13px; margin: 0 0 14px; font-size: 12px; overflow-wrap: anywhere; }
.ai-limitations { font-size: 11px; color: #a08bae; margin-top: 12px; }
.ai-limitations summary { cursor: pointer; padding: 4px 0; }
.ai-limitations p { margin-top: 10px; }
.ai-limitations ul { padding-left: 18px; }
.ai-limitations li { margin: 7px 0; }
.ai-loading { color: #9c83ab; padding: 50px 25px; text-align: center; }
.ai-panel-content > .ai-list-heading, .ai-panel-content > .ai-task-list, .ai-panel-content > .ai-activity, .ai-panel-content > .ai-private-note { margin: 24px 28px; }
.ai-task-list { display: grid; gap: 12px; }
.ai-task { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--ai-line); border-radius: 12px; }
.ai-task > div { min-width: 0; overflow-wrap: anywhere; }
.ai-task h4 { margin: 9px 0 5px; font-size: 14px; }
.ai-task p { color: var(--ai-muted); font-size: 12px; }
.ai-task time { display: block; color: #a38aaf; font-size: 10px; margin-top: 7px; }
.ai-task .ai-button { flex-shrink: 0; }
.ai-status { display: inline-block; border-radius: 5px; background: #f0e6f9; color: #84549d; padding: 3px 7px; font-size: 10px; font-weight: 650; }
.ai-status.completed { color: #38866a; background: #eaf7f0; }
.ai-status.failed, .ai-status.cancelled { color: #a36d45; background: #fff3e7; }
.ai-activity { list-style: none; padding: 0; }
.ai-activity li { display: flex; gap: 15px; padding: 0 0 24px; position: relative; }
.ai-activity li::after { content: ""; width: 1px; background: #eaddf2; position: absolute; left: 5px; top: 15px; bottom: 0; }
.ai-activity li:last-child::after { display: none; }
.ai-activity-dot { width: 11px; height: 11px; background: #b38dcb; border: 3px solid #eee0f7; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.ai-activity strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ai-activity time { display: block; color: #a38aaf; font-size: 11px; margin-top: 4px; }
.ai-activity .ai-text-button { display: block; padding: 3px 0; min-height: 36px; }
.ai-settings { padding: 28px; max-width: 850px; }
.ai-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 25px 0; }
.ai-settings-grid label { color: #765a87; font-weight: 600; font-size: 12px; }
.ai-settings-grid select { display: block; width: 100%; margin: 8px 0; min-height: 46px; border: 1px solid #e1d3eb; border-radius: 9px; background: white; padding: 9px 12px; color: #614671; }
.ai-settings small { display: block; font-size: 11px; color: #a089ad; font-weight: 400; }
.ai-checkbox { display: flex; gap: 12px; align-items: flex-start; padding: 19px; background: #fbf8fd; border: 1px solid #ecdef4; border-radius: 11px; }
.ai-checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: #7b3b9f; }
.ai-checkbox strong { font-size: 13px; font-weight: 600; }
.ai-checkbox small { margin-top: 5px; }
.ai-settings-note { color: #9c82ac; font-size: 12px; margin: 19px 0 23px !important; }
.ai-footnote { text-align: center; color: #aa96b7; font-size: 11px; margin-top: 22px; padding: 0 10px; }
@media (max-width: 1050px) {
  .ai-agent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ai-chat-layout { grid-template-columns: 210px minmax(0,1fr); }
  .ai-chat-main { padding: 20px 18px 16px; }
}
@media (max-width: 700px) {
  .ai-hero { padding: 25px; gap: 15px; }
  .ai-hero-symbol { width: 72px; height: 72px; border-radius: 20px; }
  .ai-hero-symbol svg { width: 42px; height: 42px; }
  .ai-agent-card { padding: 17px; }
  .ai-agent-card-heading { gap: 8px; }
  .ai-agent-card-heading h4 { font-size: 14px; }
  .ai-agent-glyph { width: 34px; height: 34px; font-size: 21px; }
  .ai-agent-card > p { font-size: 12px; }
  .ai-chat-layout { grid-template-columns: minmax(0,1fr); }
  .ai-conversations { border-right: 0; border-bottom: 1px solid var(--ai-line); padding: 16px 18px; }
  .ai-conversation-list { flex-direction: row; max-height: none; padding-bottom: 7px; }
  .ai-conversation { flex: 0 0 175px; }
  .ai-private-note { margin-bottom: 8px !important; }
  .ai-panel-heading { padding: 21px; }
  .ai-panel-heading h3 { font-size: 21px; }
  .ai-panel-heading p { font-size: 12px; }
  .ai-tabs { gap: 14px; padding: 0 16px; }
  .ai-composer-footer { align-items: flex-end; }
  .ai-composer-footer > span { max-width: 110px; }
  .ai-message.user { margin-left: 18px; }
  .ai-settings { padding: 22px; }
  .ai-settings-grid { grid-template-columns: 1fr; gap: 18px; }
  .ai-task { align-items: flex-start; flex-direction: column; gap: 13px; }
  .ai-panel-content > .ai-list-heading, .ai-panel-content > .ai-task-list, .ai-panel-content > .ai-activity, .ai-panel-content > .ai-private-note { margin-left: 21px; margin-right: 21px; }
}
@media (max-width: 430px) {
  .ai-hero { padding: 23px 21px; }
  .ai-hero-symbol { display: none; }
  .ai-section-heading { align-items: flex-start; }
  .ai-section-heading h3 { font-size: 21px; }
  .ai-section-heading p { font-size: 12px; }
  .ai-count { padding: 5px 9px; font-size: 10px; }
  .ai-agent-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ai-agent-card { padding: 19px; }
  .ai-agent-card-heading h4 { font-size: 16px; }
  .ai-panel-heading { padding: 19px 17px; }
  .ai-chat-main { padding: 18px 13px 14px; }
  .ai-tabs { gap: 8px; padding: 0 12px; justify-content: space-between; }
  .ai-tabs button { font-size: 12px; }
  .ai-composer { padding: 11px; }
  .ai-message { padding: 14px; }
  .ai-message-meta { gap: 5px; }
  .ai-examples { margin-top: -12px; }
  .ai-settings { padding: 20px 17px; }
  .ai-list-heading { align-items: flex-start; }
  .ai-panel-content > .ai-list-heading, .ai-panel-content > .ai-task-list, .ai-panel-content > .ai-activity, .ai-panel-content > .ai-private-note { margin-left: 17px; margin-right: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ai-workspace * { transition: none !important; scroll-behavior: auto !important; } }

.ai-human-role{display:block;font-size:12px;color:var(--ai-muted,#796985);font-weight:500;margin:4px 0 8px}.ai-workspace .ai-connection-note{font-size:11px;font-weight:600;color:#6b2d96;margin-top:12px}.ai-connections{font-size:12px;margin:8px 0}.ai-connections summary{cursor:pointer}.ai-connections p{padding:8px 0}

/* The work board stays visible; profiles and chat are a secondary view. */
.ai-work-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:8px 0 24px; }
.ai-work-header h2 { font-size:clamp(25px,3vw,34px); line-height:1.2; letter-spacing:-.035em; margin:7px 0 8px; }
.ai-work-header p { color:var(--ai-muted); max-width:650px; }
.ai-work-header .ai-provider { margin-top:0; flex-shrink:0; border:1px solid var(--ai-line); }
.ai-work-board { border:1px solid var(--ai-line); border-radius:17px; background:#fff; padding:23px; }
.ai-work-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.ai-work-actions { display:flex; gap:8px; flex-shrink:0; }
.ai-work-counts { display:flex; flex-wrap:wrap; gap:10px 24px; color:var(--ai-muted); font-size:12px; }
.ai-work-counts strong { display:inline-block; margin-right:4px; font-size:22px; line-height:1.2; font-weight:650; color:var(--ai-ink); }
.ai-work-people { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:10px; border-block:1px solid #f0eaf4; padding:16px 0; margin-bottom:20px; }
.ai-work-person { display:flex; align-items:center; gap:8px; min-width:0; }
.ai-work-person .ai-agent-glyph { width:30px; height:30px; font-size:18px; border-radius:9px; }
.ai-work-person > div { min-width:0; }
.ai-work-person strong { display:block; font-size:12px; }
.ai-work-person small { display:block; color:var(--ai-muted); font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
.ai-work-empty { display:flex; align-items:center; justify-content:center; gap:20px; padding:36px 16px 40px; }
.ai-work-empty > span { font-size:40px; color:#af8fc4; }
.ai-work-empty h3 { font-size:19px; margin-bottom:7px; }
.ai-work-empty p { color:var(--ai-muted); max-width:520px; font-size:13px; }
.ai-work-boundary { border-top:1px solid #f0eaf4; margin-top:19px !important; padding-top:14px; color:var(--ai-muted); font-size:11px; max-width:100%; }
.ai-work-list { display:grid; gap:15px; }
.ai-work-item { border:1px solid var(--ai-line); border-radius:12px; padding:19px 20px; min-width:0; }
.ai-work-item-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.ai-work-owner { color:#805597; font-size:11px; font-weight:650; }
.ai-work-item h3 { font-size:17px; margin-top:3px; overflow-wrap:anywhere; }
.ai-work-item-heading .ai-status { flex-shrink:0; margin-top:3px; }
.ai-status.ready_for_review { background:#eaf6ef; color:#347653; }
.ai-status.running { background:#ede6fa; color:#63449d; }
.ai-status.planned { background:#f3f0f5; color:#74677e; }
.ai-work-goal { display:flex; gap:10px; color:#75677f; font-size:12px; margin-top:13px !important; white-space:pre-wrap; overflow-wrap:anywhere; }
.ai-work-goal > strong { flex-shrink:0; color:#5c4a66; font-size:11px; padding-top:1px; }
.ai-work-timing { display:flex; flex-wrap:wrap; gap:8px 24px; font-size:11px; color:#8b7997; margin-top:13px; }
.ai-work-timing strong { color:#675371; font-weight:600; margin-right:5px; }
.ai-work-timing .ai-work-overdue, .ai-work-timing .ai-work-overdue strong { color:#a15f26; }
.ai-work-steps { list-style:none; padding:0; margin:17px 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ai-work-steps li { display:flex; align-items:flex-start; gap:7px; color:#887792; font-size:11px; border-top:2px solid #eee7f3; padding-top:9px; min-width:0; overflow-wrap:anywhere; }
.ai-work-steps li > span:first-child { font-size:16px; line-height:1.1; }
.ai-work-steps small { display:block; font-size:10px; color:#a28daf; margin-top:3px; }
.ai-work-steps .done { color:#4a7e64; border-color:#a8d2b8; }
.ai-work-steps .running { color:#773a9a; border-color:#b88bd3; }
.ai-work-steps .failed { color:#a16b3f; border-color:#d9b38e; }
.ai-work-stage { color:#897196; font-size:11px; margin-top:12px !important; }
.ai-work-error { color:#9a4d42; font-size:12px; background:#fff7f4; border-radius:7px; padding:10px 12px; margin-top:11px !important; overflow-wrap:anywhere; }
.ai-work-item-actions { display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; margin-top:12px; }
.ai-work-item-actions > small { font-size:10px; color:#a08ca9; margin-left:auto; }
.ai-work-result { margin-top:12px; border-top:1px solid #eee5f4; padding-top:8px; }
.ai-work-result summary { cursor:pointer; color:#743d95; font-size:12px; padding:5px 0; font-weight:600; }
.ai-work-result .ai-message-text { margin-top:14px; overflow-wrap:anywhere; }
.ai-work-result-note { color:#9985a5; font-size:11px; margin-top:15px !important; }
.ai-team-details { margin-top:21px; }
.ai-team-details > summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; gap:18px; padding:17px 19px; background:#fff; border:1px solid var(--ai-line); border-radius:12px; color:#624974; list-style:none; }
.ai-team-details > summary::-webkit-details-marker { display:none; }
.ai-team-details > summary > span:first-child::before { content:'＋'; float:left; font-size:21px; margin-right:12px; font-weight:400; }
.ai-team-details[open] > summary > span:first-child::before { content:'−'; }
.ai-team-details > summary strong { font-size:14px; }
.ai-team-details > summary small { display:block; font-size:11px; color:var(--ai-muted); font-weight:400; margin-top:3px; margin-left:28px; }
.ai-team-details > .ai-agent-grid { margin:17px 0; }
.ai-work-form { border:1px solid #ddc9ec; border-radius:12px; padding:20px; background:#fcf9fe; margin-bottom:20px; }
.ai-work-form h3 { font-size:20px; }
.ai-work-form .ai-list-heading { margin-bottom:17px; }
.ai-work-form .ai-list-heading p { font-size:12px; }
.ai-work-form-grid { display:grid; grid-template-columns:1fr 1.6fr; gap:17px; }
.ai-work-form-grid label { min-width:0; color:#745b84; font-size:12px; font-weight:600; }
.ai-work-form-grid :is(input,select,textarea) { width:100%; display:block; min-height:43px; background:#fff; border:1px solid #dfd0e9; border-radius:8px; padding:9px 11px; margin-top:7px; color:#4e3b5a; font-size:13px; }
.ai-work-form-grid textarea { resize:vertical; min-height:105px; }
.ai-work-goal-field { grid-column:1/-1; }
.ai-work-form-grid small { display:block; margin-top:6px; font-size:10px; font-weight:400; color:#9a84a6; }
.ai-work-form-footer { display:flex; gap:15px; justify-content:space-between; align-items:center; margin-top:19px; }
.ai-work-form-error { color:#98493d; font-size:12px; margin-top:12px !important; }
@media (max-width:1050px) { .ai-work-people { grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px 10px; } }
@media (max-width:700px) {
 .ai-work-header { align-items:flex-start; gap:14px; flex-direction:column; }
 .ai-work-header p { font-size:12px; }
 .ai-work-board { padding:17px; }
 .ai-work-toolbar { align-items:flex-start; flex-direction:column; gap:16px; }
 .ai-work-counts { gap:8px 16px; }
 .ai-work-counts strong { font-size:20px; }
 .ai-work-actions { width:100%; justify-content:flex-end; }
 .ai-work-item { padding:16px; }
 .ai-work-item-heading { flex-direction:column; gap:7px; }
 .ai-work-goal { flex-direction:column; gap:5px; }
 .ai-work-steps { gap:9px; }
 .ai-work-item-actions > small { margin-left:0; width:100%; }
 .ai-work-form { padding:15px; }
 .ai-work-form-grid { grid-template-columns:1fr; gap:14px; }
 .ai-work-form .ai-list-heading { align-items:flex-start; }
 .ai-work-form .ai-list-heading p { font-size:11px; }
 .ai-work-form-footer { flex-wrap:wrap; }
 .ai-team-details > summary { padding:15px; }
 .ai-team-details > summary .ai-count { font-size:10px; padding:5px 7px; }
 .ai-team-details > summary small { font-size:10px; }
}
@media (max-width:430px) {
 .ai-work-board { padding:13px; border-radius:13px; }
 .ai-work-people { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 8px; }
 .ai-work-counts { font-size:10px; gap:7px 11px; }
 .ai-work-counts strong { font-size:18px; }
 .ai-work-empty { padding:27px 5px; align-items:flex-start; gap:10px; }
 .ai-work-empty > span { font-size:29px; }
 .ai-work-empty h3 { font-size:17px; }
 .ai-work-empty p { font-size:12px; }
 .ai-work-item { padding:14px 12px; }
 .ai-work-steps { grid-template-columns:1fr; gap:7px; }
 .ai-work-steps li { align-items:center; border-top:0; padding-top:0; }
 .ai-work-steps small { display:inline; margin-left:6px; }
 .ai-work-item h3 { font-size:16px; }
 .ai-work-item-actions .ai-button { width:100%; }
 .ai-team-details > summary { gap:10px; }
 .ai-team-details > summary small { max-width:180px; }
}
.ai-work-step-label { color:#867091; font-size:10px; font-weight:600; margin-top:16px !important; }
.ai-work-step-label + .ai-work-steps { margin-top:7px; }

.ai-status.ready_for_review.guidance { background:#f2ebf8; color:#79578f; }

.ai-work-count-label { font-size:10px; font-weight:650; color:#8a7299; margin-bottom:7px !important; }
.ai-work-history { border-top:1px solid var(--ai-line); margin-top:21px; padding-top:8px; }
.ai-work-history > summary { cursor:pointer; color:#795b8b; font-size:12px; font-weight:600; padding:10px 1px; }
.ai-work-history > .ai-work-list { margin-top:9px; }

.ai-followup-desk { margin:0 0 21px; border:1px solid var(--ai-line); border-radius:17px; background:#fff; padding:22px; min-width:0; }
.ai-followup-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.ai-followup-heading h3 { font-size:21px; letter-spacing:-.02em; margin:7px 0; color:var(--ai-ink); }
.ai-followup-heading h3 span { font-size:15px; color:#80658f; font-weight:500; }
.ai-followup-heading p { color:var(--ai-muted); font-size:12px; margin:0; }
.ai-followup-heading .ai-button { flex-shrink:0; }
.ai-followup-summary { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; margin-top:17px; }
.ai-followup-summary > small { margin-left:auto; color:var(--ai-muted); font-size:10px; }
.ai-followup-mode { color:#8a7298; font-size:11px; }
.ai-followup-totals { display:flex; flex-wrap:wrap; gap:10px 27px; margin:15px 0; color:var(--ai-muted); font-size:12px; }
.ai-followup-totals strong { display:inline-block; font-size:22px; font-weight:650; color:var(--ai-ink); margin-right:4px; }
.ai-followup-coverage > summary { cursor:pointer; color:#886599; font-weight:600; font-size:11px; padding:9px 0 12px; }
.ai-followup-table-wrap { max-width:100%; overflow-x:auto; }
.ai-followup-table { width:100%; border-collapse:collapse; color:#766480; font-size:12px; table-layout:fixed; }
.ai-followup-table caption { text-align:left; color:#9985a4; font-size:10px; padding:5px 0 10px; }
.ai-followup-table th, .ai-followup-table td { border-top:1px solid #eee7f3; padding:11px 12px 11px 0; vertical-align:top; text-align:left; overflow-wrap:anywhere; }
.ai-followup-table thead th { font-size:10px; color:#927a9e; font-weight:600; padding:9px 12px 9px 0; }
.ai-followup-table th:nth-child(1) { width:23%; }
.ai-followup-table th:nth-child(2) { width:42%; }
.ai-followup-table th:nth-child(3) { width:13%; }
.ai-followup-table th:nth-child(4) { width:22%; }
.ai-followup-table tbody th strong { display:block; color:#5e456f; font-size:12px; font-weight:600; }
.ai-followup-table small { display:block; color:#9c88a6; font-weight:400; font-size:10px; line-height:1.5; margin-top:4px; }
.ai-followup-policy { display:inline-block; font-size:10px; font-weight:600; color:#8b719b; background:#f4edf8; padding:3px 7px; border-radius:5px; }
.ai-followup-policy.active { color:#46795d; background:#eef7f0; }
.ai-followup-policy.paused,.ai-followup-policy.not_configured,.ai-followup-policy.unavailable { color:#99604e; background:#fff4ee; }
.ai-followup-unavailable { font-size:11px; color:#9d8077; }
.ai-followup-queue-note { color:#a18aab; font-size:10px; margin:10px 0 0 !important; }
.ai-followup-details { border-top:1px solid #eee7f3; margin-top:13px; padding-top:3px; }
.ai-followup-details > summary { color:#7b5294; cursor:pointer; font-size:12px; font-weight:600; padding:11px 0; }
.ai-followup-details > p, .ai-followup-details > ul { font-size:11px; line-height:1.6; color:#9984a4; margin-top:13px; }
.ai-followup-details > ul { padding-left:17px; }
.ai-followup-process-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; }
.ai-followup-process-details article { min-width:0; padding:10px 0; border-bottom:1px solid #f2edf5; }
.ai-followup-process-details h4 { font-size:12px; color:#725482; margin:0 0 7px; }
.ai-followup-process-details p { font-size:10px; color:#9881a3; line-height:1.6; overflow-wrap:anywhere; margin:4px 0 !important; }
.ai-followup-process-details .ai-followup-exception { color:#9d5e4a; }
.ai-followup-empty { margin-top:18px; padding:17px; background:#faf6fc; border-radius:9px; color:#856792; font-size:12px; }
.ai-followup-empty p { color:#a18aab; margin-top:7px !important; font-size:11px; }
.ai-review-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; border-top:1px solid var(--ai-line); padding-top:20px; margin-top:8px; }
.ai-review-heading h4 { margin:0 0 5px; font-size:17px; color:#644878; }
.ai-review-heading p { margin:0 !important; color:#9a81a7; font-size:11px; }
.ai-review-heading .ai-button { flex-shrink:0; }
.ai-review-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:17px 0 11px; }
.ai-review-controls label { display:flex; align-items:center; gap:8px; color:#9780a3; font-size:11px; }
.ai-review-controls select { border:1px solid #e2d7ea; border-radius:7px; padding:7px; color:#755486; background:#fff; font-size:11px; }
.ai-review-controls > span { color:#a08ba9; font-size:10px; }
.ai-review-list { display:grid; gap:7px; }
.ai-review-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; border:1px solid #eee5f4; border-radius:9px; padding:12px; background:#fcfafe; color:#80618e; text-align:left; cursor:pointer; }
.ai-review-row.selected { border-color:#c9a6df; background:#f8f1fc; }
.ai-review-row > span { min-width:0; overflow-wrap:anywhere; font-size:11px; }
.ai-review-row > span:first-child { flex:1; }
.ai-review-row > span:nth-child(2) { text-align:right; }
.ai-review-row strong { display:block; font-size:12px; font-weight:600; color:#674875; }
.ai-review-row small { display:block; font-size:10px; color:#a08aa9; margin-top:5px; }
.ai-review-empty { padding:17px 0; color:#a28cab; font-size:12px; }
.ai-review-pagination { display:flex; align-items:center; justify-content:flex-end; gap:15px; margin-top:12px; color:#9880a5; font-size:11px; }
.ai-review-preview { border:1px solid #dbc5e9; border-radius:12px; padding:19px; margin-top:20px; background:#fcf9fe; }
.ai-review-preview-heading { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.ai-review-preview-heading h4 { color:#634673; font-size:18px; margin:5px 0; overflow-wrap:anywhere; }
.ai-review-preview-heading p { color:#9a83a6; font-size:11px; }
.ai-review-message { white-space:pre-wrap; overflow-wrap:anywhere; color:#644b70; background:#fff; border:1px solid #e9ddef; border-radius:8px; font-size:13px; line-height:1.7; padding:15px; margin-top:14px; }
.ai-review-format,.ai-review-attachment { color:#9d86a8; font-size:10px; margin-top:8px !important; overflow-wrap:anywhere; }
.ai-review-buttons-preview { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.ai-review-buttons-preview > span { border:1px solid #e3d7eb; border-radius:6px; padding:6px 9px; color:#8e749d; font-size:10px; overflow-wrap:anywhere; }
.ai-review-original { margin-top:13px; }
.ai-review-original > summary { color:#8a689e; font-size:11px; cursor:pointer; }
.ai-review-original .ai-review-message { color:#9b83a7; font-size:11px; }
.ai-review-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px; }
.ai-review-actions .ai-text-button { margin-left:auto; font-size:11px; }
.ai-review-delivery-note { color:#a58dae; font-size:10px; margin-top:13px !important; }
[data-ai-review-editor] { border-top:1px solid #e8dcee; margin-top:15px; padding-top:15px; }
[data-ai-review-editor] label { display:block; font-size:12px; color:#866395; }
[data-ai-review-text] { display:block; width:100%; border:1px solid #d8c4e5; background:#fff; border-radius:8px; padding:12px; margin-top:8px; resize:vertical; font-size:13px; line-height:1.6; color:#684974; }
.ai-review-editor-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }
[data-ai-review-editor] > p { color:#a18aa9; font-size:10px; margin-top:8px !important; }
@media (max-width:700px) {
 .ai-followup-desk { padding:17px; }
 .ai-followup-heading { flex-direction:column; gap:12px; }
 .ai-followup-heading h3 span { display:block; font-size:13px; margin-top:4px; }
 .ai-followup-heading .ai-button { align-self:flex-end; }
 .ai-followup-summary > small { margin-left:0; width:100%; }
 .ai-followup-table, .ai-followup-table tbody { display:block; }
 .ai-followup-table caption { display:block; }
 .ai-followup-table thead { display:none; }
 .ai-followup-table tr { display:block; border-top:1px solid #eee7f3; padding:11px 0; }
 .ai-followup-table tbody th { display:block; width:auto; padding:0 0 5px; border:0; }
 .ai-followup-table tbody th small { display:inline; margin-left:6px; }
 .ai-followup-table tbody th strong { display:inline; }
 .ai-followup-table td { display:block; width:auto; border:0; padding:5px 0 0 91px; min-height:22px; position:relative; font-size:11px; }
 .ai-followup-table td::before { content:attr(data-label); position:absolute; left:0; top:6px; font-size:10px; font-weight:500; color:#9b84a6; }
 .ai-followup-totals { gap:8px 18px; font-size:10px; }
 .ai-followup-totals strong { font-size:20px; }
 .ai-followup-process-details { grid-template-columns:1fr; gap:0; }
 .ai-review-heading { flex-direction:column; gap:12px; }
 .ai-review-heading .ai-button { align-self:flex-end; }
 .ai-review-preview { padding:14px; }
 .ai-review-actions .ai-text-button { margin-left:0; width:100%; text-align:left; }
}
@media (max-width:430px) {
 .ai-followup-desk { padding:13px; border-radius:13px; }
 .ai-followup-heading h3 { font-size:19px; }
 .ai-followup-totals { gap:7px 13px; }
 .ai-followup-totals strong { font-size:18px; }
 .ai-review-row { align-items:flex-start; gap:8px; padding:10px; }
 .ai-review-row > span:nth-child(2) { max-width:100px; }
 .ai-review-actions { gap:8px; }
 .ai-review-actions > .ai-button { width:100%; }
 .ai-review-message { padding:11px; font-size:12px; }
}

/* Daily work first. Detail, evidence and chat stay available on demand. */
.ai-workspace :is(p, small, time, label, li, caption, th, td, select, textarea, input),
.ai-workspace :is(.ai-status, .ai-button, .ai-text-button, .ai-count, .ai-tool-tags span, .ai-tabs button, .ai-private-note, .ai-muted, .ai-work-counts, .ai-work-count-label, .ai-human-role, .ai-review-format, .ai-followup-policy) { font-size:14px !important; }
.ai-workspace small, .ai-workspace time { color:#75677f; }
.ai-work-header { margin:0 0 16px; gap:16px; }
.ai-work-header h2 { font-size:28px; margin:0 0 4px; }
.ai-work-header p { font-size:14px; }
.ai-work-header .ai-provider { border:0; background:transparent; padding:0; font-size:14px; color:#63516f; }
.ai-work-board { padding:0; border:0; background:transparent; border-radius:0; }
.ai-work-toolbar { margin-bottom:12px; gap:12px; }
.ai-work-count-label { color:#5e4a6d; font-weight:650; margin-bottom:4px !important; }
.ai-work-counts { gap:4px 16px; }
.ai-work-counts strong { font-size:18px; margin-right:3px; }
.ai-work-actions { flex-wrap:wrap; gap:8px; }
.ai-work-list { gap:0; background:#fff; border-radius:12px; overflow:hidden; }
.ai-work-item { padding:18px 20px; border:0; border-bottom:1px solid var(--ai-line); border-radius:0; }
.ai-work-item:last-child { border-bottom:0; }
.ai-work-item-heading { gap:12px; }
.ai-work-item-heading > div { min-width:0; }
.ai-work-owner { font-size:14px; color:#6d467f; }
.ai-work-item h3 { font-size:18px; line-height:1.4; margin-top:3px; }
.ai-work-item-heading .ai-status { margin-top:1px; max-width:235px; line-height:1.4; }
.ai-work-at-glance { display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,.4fr); gap:12px 24px; margin-top:12px; }
.ai-work-at-glance p { min-width:0; }
.ai-work-at-glance span { display:block; color:#7b6c85; font-size:14px; }
.ai-work-at-glance strong { display:block; font-size:14px; font-weight:500; color:#43334f; overflow-wrap:anywhere; }
.ai-work-at-glance .ai-work-overdue strong { color:#9a5928; }
.ai-work-detail { margin-top:12px; }
.ai-work-detail > summary { display:flex; align-items:center; gap:10px; width:fit-content; min-height:40px; cursor:pointer; font-size:14px; font-weight:650; color:#6b2d96; list-style:none; }
.ai-work-detail > summary::-webkit-details-marker { display:none; }
.ai-work-detail > summary::before { content:'＋'; font-size:18px; font-weight:400; }
.ai-work-detail[open] > summary::before { content:'−'; }
.ai-work-detail > summary > span { color:#7b6c85; font-size:14px; font-weight:400; }
.ai-work-detail-body { margin:6px 0 2px; border-top:1px solid #eee7f3; padding-top:12px; }
.ai-work-goal { display:block; font-size:14px; margin-top:0 !important; }
.ai-work-goal > strong { display:block; font-size:14px; margin-bottom:4px; }
.ai-work-timing { font-size:14px; gap:8px 20px; margin-top:14px; }
.ai-work-steps { margin-top:8px; }
.ai-work-steps li { font-size:14px; }
.ai-work-steps small { font-size:14px; }
.ai-work-step-label { font-size:14px; }
.ai-work-stage { color:#75677f; }
.ai-work-item-actions { margin-top:12px; }
.ai-work-result { margin-top:18px; padding-top:14px; }
.ai-work-result h4 { font-size:16px; color:#5d426e; }
.ai-work-result .ai-message-text { font-size:14px; margin-top:10px; }
.ai-work-result-note { color:#75677f; }
.ai-work-history { margin-top:14px; padding-top:0; border-top:0; }
.ai-work-history > summary { font-size:14px; min-height:44px; }
.ai-work-boundary { margin-top:16px !important; padding-top:0; border-top:0; }
.ai-work-empty { padding:28px 16px; background:#fff; border-radius:12px; justify-content:flex-start; }
.ai-work-empty h3 { font-size:18px; }
[data-ai-work-error] { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; margin-bottom:12px; color:#905b34; background:#fff6eb; border-radius:9px; }
.ai-work-form { border:0; background:#fff; padding:18px; }
.ai-work-form-grid label { font-size:14px; }
.ai-work-form .ai-list-heading p, .ai-work-form-grid small { font-size:14px; }
.ai-team-details { margin-top:18px; }
.ai-team-details > summary { border:0; background:#fff; padding:14px 18px; }
.ai-team-details > summary small { font-size:14px; }
.ai-count { border:0; padding:4px 0 4px 8px; }
.ai-agent-card { padding:18px; border-radius:12px; box-shadow:none; }
.ai-tool-tags span { padding:4px 7px; }
.ai-footnote { color:#75677f; font-size:14px; text-align:left; margin-top:18px; padding:0; }
.ai-followup-desk { border:0; border-radius:10px; padding:0; margin-bottom:18px; background:#f5effa; }
.ai-followup-desk.needs-attention { background:#fff7ed; border-left:3px solid #b77a31; }
[data-ai-followup-panel] > summary { display:flex; justify-content:space-between; align-items:center; gap:16px; cursor:pointer; list-style:none; padding:12px 16px; min-height:64px; }
[data-ai-followup-panel] > summary::-webkit-details-marker { display:none; }
.ai-followup-brief { display:flex; flex-wrap:wrap; align-items:center; gap:3px 12px; min-width:0; font-size:14px; }
.ai-followup-brief strong { color:#59396c; font-size:14px; font-weight:650; }
.ai-followup-brief-state { color:#665071; }
.ai-followup-brief-policy { color:#75677f; }
.ai-followup-attention { width:100%; color:#935926; font-weight:600; font-size:14px; }
.ai-followup-open-label { flex-shrink:0; color:#6b2d96; font-weight:650; font-size:14px; }
.ai-followup-open-label::after { content:' ＋'; font-weight:400; }
[data-ai-followup-panel][open] > summary .ai-followup-open-label::after { content:' −'; }
.ai-followup-panel-body { border-top:1px solid #e4d8ed; background:#fff; border-radius:0 0 10px 10px; padding:18px; }
.ai-followup-heading h3 { font-size:18px; margin:0 0 6px; }
.ai-followup-heading p { font-size:14px; }
.ai-followup-summary { margin-top:12px; }
.ai-followup-summary > small { font-size:14px; }
.ai-followup-totals { font-size:14px; margin:14px 0; }
.ai-followup-totals strong { font-size:18px; }
.ai-followup-mode, .ai-followup-coverage > summary, .ai-followup-details > summary { font-size:14px; }
.ai-followup-table tbody th strong, .ai-followup-process-details h4 { font-size:14px; }
.ai-followup-table small, .ai-followup-process-details p { color:#75677f; }
.ai-followup-table td { font-size:14px; }
.ai-followup-policy { font-size:14px; }
.ai-followup-unavailable { color:#96633a; font-size:14px; }
.ai-followup-empty { margin-top:12px; padding:12px 0; background:transparent; }
.ai-followup-empty .ai-button { margin-top:10px; }
.ai-review-heading { padding-top:16px; margin-top:14px; }
.ai-review-heading p { font-size:14px; }
.ai-review-controls { gap:10px; }
.ai-review-controls > span { color:#75677f; font-size:14px; }
.ai-review-row { background:#fff; border-radius:0; border:0; border-bottom:1px solid var(--ai-line); padding:12px 0; }
.ai-review-row > span { font-size:14px; }
.ai-review-row strong { font-size:15px; }
.ai-review-row small { color:#75677f; }
.ai-review-preview { background:#fbf8fd; border:0; border-radius:10px; }
.ai-review-preview-heading h4 { font-size:18px; }
.ai-review-message { font-size:14px; }
.ai-review-format, .ai-review-delivery-note, .ai-review-attachment { color:#75677f; }
.ai-review-buttons-preview > span, .ai-review-original > summary { font-size:14px; }
[data-ai-review-notice] .ai-button { display:block; margin-top:10px; }
@media (max-width:700px) {
 .ai-work-header { flex-direction:row; flex-wrap:wrap; gap:8px 14px; margin-bottom:14px; }
 .ai-work-header h2 { font-size:25px; }
 .ai-work-header .ai-provider { font-size:14px; }
 .ai-work-toolbar { flex-direction:row; flex-wrap:wrap; align-items:flex-start; gap:10px; }
 .ai-work-actions { width:auto; justify-content:flex-start; }
 .ai-work-counts { gap:3px 12px; }
 .ai-work-counts strong { font-size:16px; }
 .ai-work-board { padding:0; }
 .ai-work-item { padding:16px; }
 .ai-work-item-heading { flex-direction:column; gap:7px; }
 .ai-work-item-heading .ai-status { max-width:100%; }
 .ai-work-at-glance { grid-template-columns:minmax(0,1fr) minmax(80px,.55fr); gap:10px; }
 .ai-work-item h3 { font-size:17px; }
 .ai-work-detail > summary { flex-wrap:wrap; gap:6px; }
 .ai-work-detail > summary > span { display:none; }
 .ai-followup-desk { padding:0; border-radius:10px; margin-bottom:14px; }
 [data-ai-followup-panel] > summary { align-items:center; padding:11px 13px; gap:10px; }
 .ai-followup-brief { display:block; }
 .ai-followup-brief > strong, .ai-followup-brief-policy, .ai-followup-attention { display:block; }
 .ai-followup-open-label { max-width:85px; white-space:normal; text-align:right; line-height:1.4; }
 .ai-followup-panel-body { padding:14px; }
 .ai-followup-heading h3 { font-size:18px; }
 .ai-followup-table td { padding-left:0; }
 .ai-followup-table td::before { position:static; display:block; font-size:14px; margin-bottom:3px; }
 .ai-followup-totals { gap:8px 18px; }
 .ai-followup-totals strong { font-size:18px; }
 [data-ai-work-error] { align-items:flex-start; flex-direction:column; }
 .ai-team-details > summary { padding:13px; }
 .ai-team-details > summary .ai-count { font-size:14px; }
 .ai-team-details > summary small { max-width:none; }
}
@media (max-width:430px) {
 .ai-work-item { padding:14px 12px; }
 .ai-work-at-glance { grid-template-columns:minmax(0,1fr); gap:9px; }
 .ai-work-due { display:flex; flex-wrap:wrap; gap:7px; }
 .ai-work-detail { margin-top:7px; }
 .ai-work-steps { grid-template-columns:1fr; }
 .ai-review-row > span:nth-child(2) { max-width:115px; }
}

/* The shared disclosure enhancer also visits AI details. Keep this workspace's own controls. */
.ai-workspace details.ai-work-detail.ui-disclosure,
.ai-workspace details[data-ai-followup-panel].ui-disclosure,
.ai-workspace details.ai-team-details.ui-disclosure {
 border:0; padding:0; background:transparent; box-shadow:none;
}
.ai-workspace details.ai-work-detail.ui-disclosure { margin:2px 0 0; border-radius:0; }
.ai-workspace details.ai-work-detail > summary {
 width:fit-content; min-height:44px; padding:0; border:0; border-radius:0; background:transparent;
}
.ai-workspace details[data-ai-followup-panel].ui-disclosure { margin:0; border-radius:0; }
.ai-workspace details[data-ai-followup-panel].ui-disclosure > summary { padding:12px 16px; border:0; background:transparent; }
.ai-workspace details.ai-team-details.ui-disclosure { margin:18px 0 0; }
.ai-workspace details.ai-team-details.ui-disclosure > summary { padding:14px 18px; }
.ai-workspace details.ai-work-detail.ui-disclosure > summary::after,
.ai-workspace details[data-ai-followup-panel].ui-disclosure > summary::after,
.ai-workspace details.ai-team-details.ui-disclosure > summary::after { content:none; display:none; }
@media (min-width:701px) {
 .ai-work-item { padding:14px 20px; }
 .ai-work-at-glance { margin-top:8px; }
 .ai-work-detail { margin-top:2px; }
}
@media (max-width:700px) {
 .ai-workspace details[data-ai-followup-panel].ui-disclosure > summary { padding:11px 13px; }
 .ai-workspace details.ai-team-details.ui-disclosure > summary { padding:13px; }
}

/* Authenticated pages share an older agent theme with stronger disclosure rules. */
body.workspace-authenticated .main .ai-workspace details.ai-work-detail.ui-disclosure,
body.workspace-authenticated .main .ai-workspace details[data-ai-followup-panel].ui-disclosure,
body.workspace-authenticated .main .ai-workspace details.ai-team-details.ui-disclosure {
 border:0; padding:0; background:transparent; box-shadow:none;
}
body.workspace-authenticated .main .ai-workspace details.ai-work-detail.ui-disclosure { margin:2px 0 0; border-radius:0; }
body.workspace-authenticated .main .ai-workspace details.ai-work-detail.ui-disclosure > summary {
 width:fit-content; min-height:44px; padding:0!important; margin:0; border:0; border-radius:0;
 background:transparent; font-size:14px; line-height:1.55; color:var(--ai-purple); font-weight:650;
}
body.workspace-authenticated .main .ai-workspace .ai-work-at-glance > p { margin:0; line-height:1.55; }
body.workspace-authenticated .main .ai-workspace details[data-ai-followup-panel].ui-disclosure { margin:0; border-radius:0; }
body.workspace-authenticated .main .ai-workspace details[data-ai-followup-panel].ui-disclosure > summary {
 padding:12px 16px!important; min-height:64px; border:0; background:transparent; font-size:14px; line-height:1.55;
}
body.workspace-authenticated .main .ai-workspace details.ai-team-details.ui-disclosure { margin:18px 0 0; }
body.workspace-authenticated .main .ai-workspace details.ai-team-details.ui-disclosure > summary { padding:14px 18px!important; font-size:14px; line-height:1.55; }
body.workspace-authenticated .main .ai-workspace details.ai-work-detail.ui-disclosure > summary::after,
body.workspace-authenticated .main .ai-workspace details[data-ai-followup-panel].ui-disclosure > summary::after,
body.workspace-authenticated .main .ai-workspace details.ai-team-details.ui-disclosure > summary::after { content:none; display:none; }
@media (max-width:700px) {
 body.workspace-authenticated .main .ai-workspace details[data-ai-followup-panel].ui-disclosure > summary { padding:11px 13px!important; }
 body.workspace-authenticated .main .ai-workspace details.ai-team-details.ui-disclosure > summary { padding:13px!important; }
}

/* Super Admin: task-focused work cards; no content or review controls are hidden. */
body.aeris-owner-redesign .ai-workspace{max-width:1400px}
body.aeris-owner-redesign .ai-work-header{margin:0 0 22px}
body.aeris-owner-redesign .ai-work-header h2{font-size:clamp(28px,2.6vw,36px);color:#211a31}
body.aeris-owner-redesign .ai-work-header p{font-size:14px;line-height:1.5;color:#746680}
body.aeris-owner-redesign .ai-work-toolbar{padding:20px 22px;background:#fff;border:1px solid #ece6f0;border-radius:15px;margin-bottom:18px}
body.aeris-owner-redesign .ai-work-counts{gap:12px 28px}
body.aeris-owner-redesign .ai-work-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:transparent;overflow:visible}
body.aeris-owner-redesign .ai-work-item,body.aeris-owner-redesign .ai-work-item:last-child{min-width:0;padding:20px;border:1px solid #ece5f0;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(67,40,83,.045)}
body.aeris-owner-redesign .ai-work-item-heading{align-items:flex-start}
body.aeris-owner-redesign .ai-work-item h3{font-size:17px;line-height:1.35}
body.aeris-owner-redesign .ai-work-at-glance{gap:14px;margin-top:15px}
body.aeris-owner-redesign .ai-work-next strong,body.aeris-owner-redesign .ai-work-due strong{color:#3d344a;line-height:1.45}
body.aeris-owner-redesign .ai-followup-desk{border-radius:13px;margin-bottom:18px}
body.aeris-owner-redesign .ai-team-details>summary{border-radius:14px}
body.aeris-owner-redesign .ai-work-history>.ai-work-list{margin-top:10px}
@media(max-width:900px){body.aeris-owner-redesign .ai-work-list{grid-template-columns:minmax(0,1fr)}body.aeris-owner-redesign .ai-work-toolbar{padding:17px}}
@media(max-width:430px){body.aeris-owner-redesign .ai-work-item,body.aeris-owner-redesign .ai-work-item:last-child{padding:16px;border-radius:12px}body.aeris-owner-redesign .ai-work-toolbar{padding:15px}}
body.workspace-authenticated.aeris-chip-admin-view.aeris-owner-redesign .main .ai-workspace .ai-work-header h2{font-size:clamp(28px,2.6vw,36px);line-height:1.2;letter-spacing:-.035em}
body.workspace-authenticated.aeris-chip-admin-view.aeris-owner-redesign .main .ai-workspace .ai-work-item h3{font-size:17px;line-height:1.35}
