/* Équipe · light product interface. Presentation only: actions, permissions,
   selected company and generation state remain controlled by the application. */
:root {
  --ink: #202433;
  --muted: #696e7e;
  --line: #e7e9ef;
  --paper: #ffffff;
  --white: #ffffff;
  --green: #3155d9;
  --pale: #eef2ff;
  --lime: #bfcaff;
  --dark: #f8f9fc;
  --amber: #805a18;
  --amber-bg: #fff6e5;
  --purple: #6c55a1;
  --shadow: 0 14px 50px #222b4910;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #3155d9;
  --accent-hover: #2848bc;
  --accent-soft: #eef2ff;
  --surface-soft: #f7f8fb;
  --ink-soft: #51586b;
  --elevation: 0 3px 7px #222b4903, 0 10px 24px #222b4905;
  --focus: #3155d9;
}
body { background: #fff; color: var(--ink); font-size: 14px; letter-spacing: -.1px; }
button, input, textarea, select { font-family: var(--sans); }
::selection { color: #243b90; background: #dfe7ff; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .5; }
a { color: #3155c7; text-underline-offset: 3px; }
svg { stroke-width: 1.8; }

/* A light, compact rail keeps the complete team within easy reach. */
.sidebar { width: 222px; padding: 17px 13px 12px; background: #f7f8fb; color: #60677a; border-right: 1px solid #e9ebf1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3c8d7 transparent; }
.brand { padding: 0 9px 13px; color: #232b42; gap: 10px; font-size: 26px; letter-spacing: -1.35px; font-weight: 680; line-height: 1.15; }
.brand-mark { width: 27px; height: 27px; gap: 3px; transform: rotate(-6deg); }
.brand-mark i { background: #3155d9; border-radius: 4px; }
.brand-mark i:nth-child(2) { opacity: .4; }
.brand-mark i:nth-child(3) { opacity: .7; }
.brand small { color: #657087; font-size: 9px; letter-spacing: .8px; }
.workspace-select { gap: 9px; padding: 8px 9px; border: 1px solid #e2e6ef; background: #fff; color: #3e465d; border-radius: 10px; transition: background .15s, border-color .15s; }
.workspace-select:hover { background: #f7f8fb; border-color: #cad4f3; }
.workspace-select .box { width: 29px; height: 29px; background: #eef2ff; color: #4d63b5; border-radius: 8px; font-size: 10px; font-weight: 650; }
.workspace-select > span:not(.box) { min-width: 0; }
.workspace-select strong { color: #3c4357; font-size: 11px; font-weight: 600; line-height: 1.4; }
.workspace-select small { color: #657087; font-size: 9px; line-height: 1.3; margin-top: 3px; }
.workspace-select svg { width: 13px; flex-shrink: 0; color: #6880ac; }
.workspace-brand { display: flex; align-items: center; gap: 9px; }
.s-label { padding: 13px 10px 5px; color: #657087; font-size: 9px; letter-spacing: 1.15px; font-weight: 600; line-height: 1.4; }
.nav-button { color: #616a7e; padding: 8px 10px; gap: 10px; border-radius: 8px; font-size: 11px; line-height: 1.4; min-height: 33px; }
.nav-button > svg { width: 16px; height: 16px; }
.nav-button:hover { background: #eef1f8; color: #2e3f73; }
.nav-button.active { background: #eaf0ff; color: #3155c7; box-shadow: none; font-weight: 580; }
.nav-button .count { background: #e9edf5; color: #657087; border-radius: 5px; font-size: 9px; padding: 2px 4px; min-width: 18px; }
.nav-button.active .count { background: #dce6ff; color: #4260b7; }
.agent-nav { padding: 5px 8px; gap: 9px; margin-top: 1px; min-height: 40px; }
.agent-nav.active { background: #eaf0ff; }
.agent-nav .names { min-width: 0; overflow: hidden; }
.agent-nav strong { color: #4a5368; font-size: 11px; font-weight: 580; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-nav small, .agent-nav.active small { font-size: 9px; line-height: 1.3; color: #3155c7; margin-top: 2px; max-width: 135px; }
.agent-nav.active strong { color: #3155c7; }
.sidebar .avatar.sm { width: 28px; height: 28px; font-size: 11px; border-color: #e7e9ef; }
.sidebar-spacer { flex: 1; min-height: 12px; }
.sidebar > .collaborator-nav { flex: 1 1 325px; min-height: 122px; max-height: 390px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c2c8d8 transparent; scroll-padding-block: 5px; margin-right: -3px; padding-right: 3px; }
.sidebar:has(.collaborator-nav) > :not(.collaborator-nav) { flex-shrink: 0; }
.sidebar:has(.collaborator-nav) .sidebar-spacer { flex: 0; min-height: 8px; }
.collaborator-nav .agent-nav:focus-visible { outline-offset: -2px; }
.sidebar-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e4e8f1; }
.sidebar-tools .nav-button { min-height: 44px; padding: 5px 3px; font-size: 9px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
.sandbox-note { color: #657087; font-size: 9px; line-height: 1.55; margin: 8px 9px; }
.sandbox-note .dot { background: #8495c9; }
.account { border-color: #e7e9ef; gap: 8px; padding: 11px 8px 0; }
.account .account-avatar { background: #e8edfa; color: #657087; width: 28px; height: 28px; font-size: 10px; }
.account strong { color: #535e79; font-size: 11px; }
.account small { color: #657087; font-size: 9px; line-height: 1.35; margin-top: 2px; }
.account button { color: #657087; padding: 4px; border-radius: 7px; }
.sidebar button:focus-visible { outline-color: #3155d9; }

/* Shared chrome and controls: dark text, blue actions, fine grey rules. */
.main { background: #fff; }
.topbar { height: 68px; padding: 0 34px; gap: 14px; background: #fffffffa; border-color: #e7e9ef; }
.breadcrumb { min-width: 0; gap: 10px; font-size: 12px; color: #657087; }
.breadcrumb span { overflow-wrap: anywhere; }
.breadcrumb span:last-child { color: #4d5b77; font-weight: 550; }
.top-actions { gap: 15px; }
.mode-badge { background: #f7f8fb; color: #607094; border-color: #e7e9ef; border-radius: 7px; font-size: 10px; padding: 6px 9px; }
.mode-badge.live { background: #edf7f0; color: #316747; border-color: #e7e9ef; }
.question-top { color: #7e5c20; font-size: 11px; gap: 7px; }
.question-top b { background: #eaf0ff; color: #5072ba; width: 19px; height: 19px; font-size: 10px; }
.icon-button { color: #657087; min-width: 36px; min-height: 36px; border-radius: 9px; }
.icon-button:hover { color: #4567ba; background: #eef3ff; }
.btn { border-color: #e7e9ef; color: #657087; background: #fff; border-radius: 9px; min-height: 40px; font-size: 12px; padding: 10px 14px; font-weight: 560; line-height: 1.4; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #f7f8fb; border-color: #bacdef; color: #456bad; }
.btn.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 4px #254db216; }
.btn.primary:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.soft { background: #edf3ff; color: #4d72b8; border-color: #e7e9ef; }
.btn.small { min-height: 33px; padding: 7px 10px; font-size: 11px; border-radius: 8px; }
.btn.text { color: #657087; background: transparent; box-shadow: none; padding-left: 0; }
.btn.text:hover { color: #466fbd; background: transparent; }
.btn.danger { color: #984b42; border-color: #eed7d2; background: #fff; }
.btn.danger:hover { color: #8d4138; border-color: #dfb9b3; background: #fff4f1; }
.status-pill { background: #f7f8fb; color: #657087; font-size: 10px; line-height: 1.4; padding: 5px 8px; border-radius: 6px; }
.status-pill.wait { color: #805d1c; background: #f7f8fb; }
.status-pill.ok { color: #376f4c; background: #edf7ef; }
.status-pill.fail { color: #a35445; background: #fff0eb; }
.tag { background: #f7f8fb; border: 1px solid #eaf0f8; color: #657087; border-radius: 5px; padding: 3px 7px; font-size: 10px; line-height: 1.5; }
.eyebrow { color: #657087; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; line-height: 1.6; }
.page { padding: 31px 34px 44px; scrollbar-width: thin; scrollbar-color: #d0d8e8 transparent; }
.page-heading { margin: 11px 0 26px; align-items: center; gap: 22px; }
.page-heading h1 { color: #202433; font-family: var(--sans); font-size: clamp(28px, 2.7vw, 37px); font-weight: 620; line-height: 1.2; letter-spacing: -1.3px; }
.page-subtitle { color: #657087; font-size: 13px; line-height: 1.8; max-width: 670px; margin-top: 11px; }
.section-title { font-size: 15px; font-weight: 580; color: #657087; }
.card { background: #fff; border-color: #e7e9ef; border-radius: 14px; padding: 23px; box-shadow: none; }
.card h2 { color: #283449; font-size: 16px; font-weight: 590; line-height: 1.5; }
.card > p { color: #657087; font-size: 12px; line-height: 1.8; }
.divider, .detail-divider { background: #e9eff8; }
.small-label { color: #657087; font-size: 10px; letter-spacing: .8px; }

/* Home: one useful starting point, the team, and work worth returning to. */
.bureau-page { padding-top: 30px; }
.home-welcome { text-align: center; max-width: 920px; margin: 5px auto 29px; }
.home-welcome .eyebrow { color: #657087; font-size: 10px; letter-spacing: 1.3px; }
.home-welcome h1 { color: #202433; font-size: clamp(30px, 3.1vw, 41px); line-height: 1.2; font-weight: 620; letter-spacing: -1.5px; margin: 11px 0 10px; }
.home-welcome p { color: #657087; font-size: 13px; line-height: 1.8; max-width: 620px; margin: 0 auto; }
.home-launcher { display: flex; align-items: center; gap: 13px; width: min(690px, 100%); margin: 23px auto 0; padding: 15px 18px; min-height: 59px; border: 1px solid #d6e3f8; border-radius: 14px; background: #fff; color: #657087; text-align: left; font-size: 13px; line-height: 1.5; box-shadow: 0 4px 20px #2b65b508; transition: background .15s, border-color .15s, box-shadow .15s; }
.home-launcher:hover { background: #f7f8fb; border-color: #9bbdea; box-shadow: 0 6px 24px #2b65b511; }
.home-launcher-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; color: #3155d9; flex-shrink: 0; }
.home-launcher-mark svg { width: 18px; height: 18px; }
.home-launcher-arrow { color: #3155d9; display: grid; place-items: center; margin-left: auto; flex-shrink: 0; }
.home-launcher-arrow svg { width: 17px; height: 17px; }
.home-launcher strong { color: #414e66; font-size: 13px; font-weight: 560; }
.home-launcher span { min-width: 0; }
.home-launcher-copy { display: block; flex: 1; min-width: 0; }
.home-launcher-copy strong { display: block; color: #3f485c; }
.home-launcher-copy small { display: block; color: #697184; font-size: 11px; line-height: 1.6; margin-top: 3px; }
.home-shortcuts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.home-shortcuts .btn { font-size: 11px; min-height: 33px; background: #fff; border-color: #e8eaf0; color: #667187; }
.home-shortcuts .btn:hover { border-color: #c4cef0; color: #3155c7; background: #f7f9ff; }
.home-shortcuts .btn svg { width: 14px; height: 14px; }
.home-access-link { border: none; background: transparent; padding: 7px 3px; margin-top: 11px; font-size: 10px; color: #657087; display: inline-flex; align-items: center; gap: 5px; line-height: 1.6; }
.home-access-link svg { width: 12px; height: 12px; }
.home-access-link:hover { color: #3155c7; }
.home-directory { max-width: 1120px; margin: 0 auto 30px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.home-section-heading h2 { color: #333d51; font-size: 15px; line-height: 1.5; font-weight: 570; }
.home-section-heading p { color: #657087; font-size: 11px; line-height: 1.6; margin-top: 3px; }
.home-section-heading .btn { flex-shrink: 0; }
.home-team-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; max-width: 900px; margin: 0 auto 30px; }
.home-team-strip > button { display: flex; flex-direction: column; gap: 7px; align-items: center; min-width: 0; padding: 9px 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #657087; font-size: 11px; line-height: 1.4; }
.home-team-strip > button:hover { background: #f7f8fb; border-color: #e7e9ef; color: #657087; }
.home-team-strip .avatar { width: 55px; height: 55px; }
.home-colleague-portrait { display: block; position: relative; }
.home-team-strip .avatar.lg { border: 1px solid #e6eaf4; box-shadow: none; }
.home-pause-dot { position: absolute; right: 0; bottom: 2px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #c69338; }
.home-team-strip strong, .home-team-strip span:not(.avatar) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-team-strip small { font-size: 10px; color: #657087; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-recent, .home-priorities, .home-secondary { max-width: 1120px; margin: 0 auto; }
.home-recent { margin-bottom: 27px; }
.home-recent .section-title, .home-priorities .section-title { margin-bottom: 13px; }
.home-recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-conversation, .home-recent-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e3edfa; border-radius: 12px; background: #fff; color: #657087; text-align: left; min-width: 0; font-size: 12px; }
.recent-conversation:hover, .home-recent-row:hover { border-color: #a8c8ef; background: #f7f8fb; }
.recent-conversation > span, .recent-conversation > div, .home-recent-row > div { min-width: 0; flex: 1; }
.home-recent-row { width: 100%; padding: 12px 15px; }
.home-recent-copy { display: block; min-width: 0; flex: 1; }
.home-recent-copy > span { display: block; color: #657087; font-size: 11px; line-height: 1.6; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-recent-row time { color: #657087; font-size: 10px; flex-shrink: 0; line-height: 1.5; }
.home-recent-row > svg { width: 14px; height: 14px; color: #6880ac; flex-shrink: 0; }
.home-recent-empty { display: flex; align-items: center; gap: 12px; border: 1px dashed #e2e6ef; border-radius: 11px; padding: 17px; color: #657087; background: #fafbfe; }
.home-recent-empty > svg { color: #6880ac; width: 19px; height: 19px; flex-shrink: 0; }
.home-recent-empty p { font-size: 12px; line-height: 1.7; }
.recent-conversation strong, .home-recent-row strong { display: block; color: #414e66; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.recent-conversation small, .home-recent-row small { display: block; color: #657087; font-size: 10px; line-height: 1.6; margin-top: 4px; }
.home-secondary { margin-top: 27px; }
.bureau-hero { background: #f7f8fb; border: 1px solid #e5effb; border-radius: 15px; padding: 25px; gap: 24px; }
.bureau-hero h2 { font-family: var(--sans); color: #283449; font-size: 27px; font-weight: 580; letter-spacing: -.9px; margin: 7px 0 11px; }
.bureau-hero p { font-size: 12px; color: #657087; line-height: 1.8; }
.bureau-hero-copy { flex: 1; min-width: 0; }
.bureau-hero-copy .welcome-actions { margin-top: 18px; }
.bureau-hero-art { position: relative; width: 250px; min-height: 230px; flex-shrink: 0; }
.bureau-hero-art > img { position: absolute; height: 230px; width: 170px; bottom: 0; object-fit: contain; object-position: bottom; }
.bureau-portrait-gabriel { left: -5px; }
.bureau-portrait-lea { right: -5px; }
.hero-orbit { position: absolute; border: 1px solid #d2e5ff; border-radius: 50%; }
.hero-orbit-one { width: 230px; height: 230px; left: 10px; }
.hero-orbit-two { width: 280px; height: 280px; left: -15px; top: -25px; }
.hero-collaboration-label { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); padding: 8px 11px; background: #fffffff0; border: 1px solid #edf4ff; border-radius: 8px; color: #657087; font-size: 10px; white-space: nowrap; }
.bureau-grid { gap: 12px; }
.bureau-column { border-color: #e7e9ef; border-radius: 12px; background: #f7f8fb; padding: 14px; }
.bureau-column h2 { color: #283449; font-size: 12px; font-weight: 580; margin-bottom: 13px; }
.bureau-column h2 b { color: #283449; border-color: #e7e9ef; padding: 3px 6px; font-size: 10px; }
.bureau-task { border-color: #e7e9ef; border-radius: 10px; padding: 14px; background: #fff; box-shadow: none; }
.bureau-task h3 { color: #283449; font-size: 13px; line-height: 1.6; font-weight: 550; }
.bureau-task p { color: #657087; font-size: 11px; }
.bureau-task .btn { font-size: 11px; }
.bureau-empty { color: #657087; font-size: 11px; line-height: 1.8; min-height: 50px; }
.bureau-bottom { gap: 20px; margin-top: 24px; }
.templates-grid { gap: 10px; }
.template-tile { background: #fff; border-color: #e7e9ef; border-radius: 10px; padding: 15px; min-height: 94px; gap: 11px; }
.template-tile > svg { color: #6880ac; width: 21px; height: 21px; }
.template-tile strong { color: #414e66; font-size: 12px; font-weight: 550; }
.template-tile small { color: #657087; font-size: 11px; }
.template-tile:hover { background: #f7f8fb; border-color: #bfd8f7; }
.list-row { border-color: #e7e9ef; padding: 14px 0; gap: 12px; }
.list-row strong { color: #414e66; font-size: 12px; }
.list-row small { color: #657087; font-size: 11px; }
.list-row > span { color: #657087; }
.dashboard-help, .local-badge, .document-types, .profile-tip, .schedule-status { color: #657087; font-size: 11px; line-height: 1.8; }

/* Compact colleague cards: three across on a laptop, the existing real actions. */
.team-page { max-width: none; }
.team-intro { align-items: flex-end; margin-bottom: 21px; }
.team-intro h1 { font-family: var(--sans); color: #283449; font-size: clamp(30px, 3.1vw, 40px); line-height: 1.2; font-weight: 620; letter-spacing: -1.5px; margin: 9px 0 0; }
.team-intro p { color: #657087; font-size: 13px; line-height: 1.8; margin-top: 11px; }
.team-stats { display: flex; gap: 22px; width: fit-content; max-width: 100%; margin: 0 0 22px; padding: 11px 0; border: none; border-radius: 0; background: transparent; }
.team-stat { display: flex; gap: 8px; align-items: center; padding: 0 20px 0 0; border-right: 1px solid #e7eef9; }
.team-stat:last-child { padding-right: 0; border: none; }
.team-stat strong { color: #414e66; font-size: 19px; font-weight: 580; line-height: 1.2; letter-spacing: -.5px; }
.team-stat span { color: #657087; font-size: 10px; line-height: 1.5; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; max-width: 1360px; width: 100%; align-items: stretch; }
.agent-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e7e9ef; border-radius: 16px; overflow: hidden; box-shadow: none; transition: border-color .16s, box-shadow .16s; }
.agent-card:hover { transform: none; border-color: #bfd8f7; box-shadow: 0 7px 25px #396fb00b; }
.agent-card-cover { position: relative; min-height: 188px; height: 188px; padding: 15px; overflow: hidden; isolation: isolate; justify-content: center; align-items: flex-end; background: linear-gradient(140deg, #f0f4fb, #eef3ff); }
.agent-card-cover.lea, .agent-card-lea .agent-card-cover { background: linear-gradient(140deg, #f5f1fa, #f1edfa); }
.agent-card-nina .agent-card-cover { background: linear-gradient(140deg, #f5f1fa, #efeafa); }
.agent-card-hugo .agent-card-cover { background: linear-gradient(140deg, #f1f6f1, #ecf4ef); }
.agent-card-victor .agent-card-cover { background: linear-gradient(140deg, #f9f5ed, #f7f2e9); }
.agent-card-ines .agent-card-cover { background: linear-gradient(140deg, #f0f3fc, #eaf0fd); }
.agent-card-sarah .agent-card-cover { background: linear-gradient(140deg, #faf1f6, #f7edf3); }
.agent-card-camille .agent-card-cover { background: linear-gradient(140deg, #f0f7f7, #ebf6f5); }
.agent-card-cover::before, .agent-card-cover::after { content: none; }
.agent-role-label { display: flex; align-items: flex-start; gap: 5px; position: absolute; left: 15px; top: 14px; z-index: 3; max-width: calc(100% - 130px); color: #657087; font-size: 9px; text-transform: none; letter-spacing: 0; line-height: 1.4; font-weight: 550; }
.agent-role-label svg { width: 13px; height: 13px; flex-shrink: 0; }
.agent-role-label span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.agent-card-cover .status-pill { top: 13px; right: 13px; z-index: 3; background: #ffffffd9; color: #657087; border: 1px solid #ffffffc4; padding: 4px 6px; font-size: 8px; border-radius: 5px; backdrop-filter: blur(4px); }
.agent-card-cover .status-pill.wait { color: #657087; background: #fff6e7ed; }
.agent-portrait { position: absolute; inset: auto 8px 0; width: calc(100% - 16px); height: calc(100% - 22px); z-index: 1; pointer-events: none; }
.agent-portrait img, img.agent-portrait { display: block; object-fit: contain; object-position: center bottom; filter: none; }
.agent-portrait img { width: 100%; height: 100%; }
.agent-card-cover > .avatar { width: 110px; height: 110px; font-size: 42px; align-self: center; background: #f0f5ff; color: #657087; border: 1px solid #fff; box-shadow: none; }
.agent-specialty-icon { position: absolute; left: 15px; bottom: 14px; background: #ffffffe3; color: #657087; border: 1px solid #fff; border-radius: 9px; width: 33px; height: 33px; display: grid; place-items: center; z-index: 3; }
.agent-specialty-icon svg { width: 18px; height: 18px; }
.agent-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.agent-identity { min-width: 0; }
.agent-card-body h2 { color: #283449; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.65px; overflow-wrap: anywhere; }
.agent-card-body .role { color: #657087; font-size: 11px; font-weight: 500; margin: 4px 0 10px; line-height: 1.5; overflow-wrap: anywhere; }
.agent-card-body .description { color: #657087; font-size: 12px; line-height: 1.7; min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-card .tags { gap: 5px; margin: 10px 0 0; }
.agent-inspiration { border: none; border-top: 1px solid #eef4fd; border-radius: 0; padding: 11px 0 0; margin-top: 12px; background: transparent; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.agent-inspiration h3 { color: #283449; font-size: 9px; font-weight: 550; letter-spacing: .4px; text-transform: none; line-height: 1.4; margin: 0; grid-column: 1 / -1; }
.agent-prompt { display: flex; align-items: center; gap: 6px; justify-content: space-between; min-width: 0; padding: 7px 8px; border: 1px solid #eaf2fe; border-radius: 7px; background: #f9fcff; color: #657087; text-align: left; font-size: 10px; line-height: 1.5; min-height: 38px; }
.agent-prompt svg { width: 12px; height: 12px; flex-shrink: 0; color: #6880ac; }
.agent-prompt:hover { background: #eef6ff; border-color: #c8defb; color: #657087; }
.agent-card-actions { display: flex; gap: 7px; padding-top: 14px; margin-top: auto; }
.agent-card-actions .btn { min-height: 36px; padding: 8px 10px; font-size: 11px; }
.agent-card-actions .btn.primary { flex: 1; color: #fff; background: #3155d9; border-color: #3155d9; overflow-wrap: anywhere; }
.agent-card-actions .btn.primary:hover { color: #fff; background: #2848bc; border-color: #2848bc; }
.agent-card-actions .btn:not(.primary) { min-width: 35px; padding-left: 9px; padding-right: 9px; }
.team-feature, .principle, .team-cooperation { border: 1px solid #e7effb; border-radius: 13px; padding: 23px; margin-top: 24px; background: #f7f8fb; color: #657087; max-width: 1360px; }
.principle h3, .team-feature strong { color: #283449; font-size: 13px; font-weight: 550; }
.principle p, .team-feature p, .team-cooperation p { color: #657087; font-size: 12px; line-height: 1.8; }
.principle > svg, .team-feature > svg { color: #6880ac; }
.team-cooperation { display: grid; grid-template-columns: 1.1fr 1fr; gap: 27px; padding: 25px; }
.cooperation-copy h2 { color: #283449; font-size: 25px; line-height: 1.2; font-weight: 560; letter-spacing: -.8px; margin: 8px 0 11px; }
.cooperation-copy p { margin: 0 0 16px; }
.cooperation-route { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.cooperation-step { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #e5f0ff; border-radius: 10px; background: #fff; }
.cooperation-step > div { flex: 1; min-width: 0; }
.cooperation-step strong { color: #414e66; font-size: 12px; line-height: 1.5; display: block; }
.cooperation-step span:not(.avatar) { color: #657087; font-size: 11px; margin-top: 3px; display: block; overflow-wrap: anywhere; }
.cooperation-step > svg { color: #6880ac; width: 16px; height: 16px; flex-shrink: 0; }

/* A single clean working surface for conversations and the selected mission. */
.chat-shell { background: #fff; }
.chat-head { background: #fff; border-color: #e7e9ef; padding: 17px 31px; min-height: 81px; gap: 12px; }
.avatar { background: #eef3fc; border-color: #e7e9ef; color: #657087; font-weight: 600; }
.avatar.lea, .avatar.nina { background: #f4effa; border-color: #e7e9ef; color: #657087; }
.avatar.hugo { background: #eef5ee; border-color: #e7e9ef; color: #657087; }
.avatar.victor { background: #f9f4e9; border-color: #e7e9ef; color: #657087; }
.avatar.ines { background: #eef2fc; border-color: #e7e9ef; color: #657087; }
.avatar.sarah { background: #f9eef5; border-color: #f0dfea; color: #657087; }
.avatar.camille { background: #edf7f5; border-color: #e7e9ef; color: #657087; }
.avatar.user { color: #657087; background: #f1f5fb; border-color: #e7e9ef; }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.avatar.lg { border: 3px solid #fff; box-shadow: 0 3px 10px #386ecb0b; }
.avatar-photo { overflow: hidden; background: #f4f7fc; }
.avatar-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 19%; transform: scale(1.5); transform-origin: 50% 18%; }
.head-name { color: #283449; font-size: 16px; font-weight: 580; letter-spacing: -.3px; display: flex; flex-wrap: wrap; }
.head-role { color: #657087; font-size: 11px; margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-head > div:not(.head-actions) { min-width: 0; }
.head-actions { flex-shrink: 0; gap: 7px; }
.chat-welcome { max-width: 520px; margin: 43px auto 35px; padding: 0 17px; text-align: center; color: #657087; }
.chat-welcome > .avatar { width: 92px; height: 92px; margin-bottom: 17px; border: 1px solid #e7ebf4; box-shadow: none; }
.chat-welcome h2 { color: #283449; font-size: 23px; font-weight: 590; letter-spacing: -.6px; line-height: 1.3; overflow-wrap: anywhere; }
.chat-welcome p { color: #657087; font-size: 13px; line-height: 1.85; margin: 12px auto; max-width: 430px; }
.chat-welcome .btn { margin-top: 8px; border-color: #dce4fb; background: #f0f4ff; color: #3155c7; }
.chat-welcome .btn:hover { background: #e7eeff; border-color: #bcccfa; color: #2848bc; }
.ai-tag { color: #657087; background: #f7f8fb; border: 1px solid #e6f1ff; border-radius: 4px; font-size: 9px; padding: 3px 4px; }
.thread { background: #fff; padding: 27px 39px 17px; }
.date-separator { color: #657087; font-size: 10px; letter-spacing: .6px; margin-bottom: 25px; }
.date-separator::before, .date-separator::after { background: #edf4fd; }
.message { max-width: 850px; gap: 11px; margin-bottom: 26px; }
.message-header { margin: 2px 0 8px; gap: 9px; flex-wrap: wrap; }
.message-header strong { color: #414e66; font-size: 12px; font-weight: 550; }
.message-header small { color: #657087; font-size: 10px; }
.message-header .example { color: #657087; font-size: 9px; border: 1px solid #e7f0fd; border-radius: 4px; padding: 2px 4px; background: #f7f8fb; }
.message-copy { color: #657087; font-size: 14px; line-height: 1.85; }
.message.user .message-copy { color: #657087; background: #f7f8fb; border-color: #e7e9ef; border-radius: 13px; padding: 13px 16px; }
.message.system .system-copy { color: #657087; font-size: 11px; border-color: #e7e9ef; line-height: 1.75; }
.message-actions { margin-top: 10px; gap: 9px; flex-wrap: wrap; }
.message-actions .btn { padding: 4px 6px; min-height: 25px; font-size: 10px; opacity: 1; }
.scope-tag { color: #657087; font-size: 10px; max-width: 100%; }
.question-card { background: #fffaf0; border-color: #eddfbd; border-radius: 13px; padding: 20px; }
.question-mission-title { color: #7e5c20; font-size: 11px; }
.question-eyebrow { color: #866a30; font-size: 10px; margin: 11px 0; }
.question-card h3 { color: #6f5b35; font-size: 14px; font-weight: 560; line-height: 1.7; }
.question-card p { color: #7e5c20; font-size: 12px; }
.chip { background: #fff; border-color: #e7e9ef; color: #657087; border-radius: 8px; font-size: 11px; padding: 9px 12px; }
.chip:hover, .chip:first-child { color: #526dae; background: #eef4ff; border-color: #cddcfa; }
.inline-answer { flex-wrap: wrap; }
.inline-answer input { border-color: #e7e9ef; color: #657087; border-radius: 8px; font-size: 12px; flex: 1; min-width: 160px; min-height: 36px; }
.work-card { padding: 18px 20px; border-color: #e7e9ef; border-radius: 13px; background: #fff; box-shadow: none; }
.work-card h3 { color: #283449; font-size: 14px; }
.work-card p { color: #657087; font-size: 12px; line-height: 1.8; }
.composer-wrap { background: #fff; padding: 14px 31px 17px; }
.composer { background: #fff; border-color: #e7e9ef; border-radius: 16px; padding: 15px 16px 11px; box-shadow: 0 3px 16px #2c71c70a; }
.composer:focus-within { border-color: #8bb6ef; box-shadow: 0 0 0 3px #dcecff80; }
.composer textarea { color: #657087; font-size: 14px; line-height: 1.7; min-height: 44px; height: 44px; }
.composer textarea::placeholder { color: #657087; }
.composer textarea:focus-visible { outline: 2px solid #3155d9; outline-offset: 3px; border-radius: 4px; }
.composer-tools span { color: #657087; font-size: 10px; }
.composer-foot { color: #657087; font-size: 10px; line-height: 1.65; }
.send-button { width: 35px; height: 35px; background: #3155d9; color: #fff; border-radius: 9px; }
.send-button:hover { background: #2848bc; }
.typing { color: #657087; font-size: 11px; }
.spinner { border-color: #e7e9ef; border-top-color: #7aaff0; }
.mission-banner { background: #f7f8fb; border-color: #e7e9ef; padding: 12px 31px; gap: 15px; }
.mission-selector-label { color: #657087; font-size: 10px; }
.mission-selector-label select { color: #657087; border-color: #e7e9ef; font-size: 12px; max-width: 335px; min-width: 175px; }
.mission-banner-stage { color: #657087; font-size: 10px; margin-top: 7px; }
.details-panel { width: 275px; background: #f7f8fb; border-color: #e7e9ef; padding: 26px 22px; }
.details-panel .eyebrow { color: #657087; font-size: 10px; }
.details-panel h3 { color: #283449; font-size: 14px; }
.details-panel .summary, .context-summary p { color: #657087; font-size: 11px; line-height: 1.8; }
.team-row strong { color: #414e66; font-size: 11px; }
.team-row small { color: #657087; font-size: 10px; line-height: 1.5; }
.step-circle { color: #657087; background: #fff; border-color: #e7e9ef; width: 20px; height: 20px; font-size: 10px; }
.timeline-step:not(:last-child)::before { left: 9px; top: 23px; background: #dcebff; }
.step-circle.current { color: #3155c7; background: #eaf2ff; border-color: #c6ddff; }
.step-circle.done { color: #657087; background: #eff8f1; border-color: #e7e9ef; }
.step-copy strong { color: #414e66; font-size: 11px; }
.step-copy small { color: #657087; font-size: 10px; }
.safety-mini { background: #f7f8fb; color: #657087; font-size: 10px; }
.context-stat { color: #657087; font-size: 11px; border-color: #e7e9ef; }
.context-source, .context-fact { border-color: #e7e9ef; }
.context-source strong, .context-fact strong { color: #414e66; font-size: 11px; }
.context-source small, .context-fact small { color: #657087; font-size: 10px; }

/* Working files and forms remain neutral and consistent with conversations. */
.projects-grid, .knowledge-grid { gap: 19px; }
.project-card { border-color: #e7e9ef; border-radius: 13px; padding: 22px; box-shadow: none; }
.project-card h3 { color: #283449; font-size: 16px; font-weight: 550; line-height: 1.6; letter-spacing: -.25px; }
.project-card p { color: #657087; font-size: 12px; }
.project-card .meta { gap: 10px; flex-wrap: wrap; }
.recurrence-card { border-color: #e7e9ef; border-radius: 13px; padding: 23px; box-shadow: none; }
.recurrence-card > p { color: #657087; font-size: 12px; line-height: 1.8; }
.schedule-pill { color: #657087; background: #f7f8fb; font-size: 10px; border-radius: 6px; }
.next-step-banner { color: #657087; background: #f7f8fb; border-color: #e7e9ef; border-radius: 10px; font-size: 12px; }
.empty-state { color: #657087; border-color: #e7e9ef; border-radius: 13px; background: #f7f8fb; padding: 38px 23px; }
.empty-state h3 { color: #283449; font-size: 17px; font-weight: 550; }
.empty-state p { font-size: 12px; }
.memory-grid { gap: 15px; }
.memory-card { border-color: #e7e9ef; border-radius: 13px; padding: 20px; box-shadow: none; }
.memory-card h3 { color: #283449; font-size: 14px; }
.memory-card p { color: #657087; font-size: 12px; }
.memory-card .meta { color: #657087; font-size: 10px; flex-wrap: wrap; }
.memory-tag { color: #657087; background: #f7f8fb; font-size: 9px; padding: 4px 6px; }
.docs-toolbar { gap: 11px; margin-bottom: 20px; }
.search-field { border-color: #e7e9ef; border-radius: 10px; padding: 11px 13px; }
.search-field > svg { color: #6880ac; }
.search-field input { color: #657087; font-size: 12px; }
.search-field:focus-within { outline: 2px solid #3155d9; outline-offset: 2px; }
.filter-select { color: #657087; border-color: #e7e9ef; border-radius: 9px; font-size: 12px; padding: 10px 12px; }
.docs-list { gap: 16px; }
.library-card { border-color: #e7e9ef; border-radius: 13px; padding: 22px; gap: 11px; box-shadow: none; }
.library-card h3 { color: #283449; font-size: 15px; line-height: 1.6; }
.library-card p { color: #657087; font-size: 12px; }
.library-card small, .library-kind { color: #657087; font-size: 10px; }
.library-kind { gap: 9px; flex-wrap: wrap; }
.doc-item { border-color: #e7e9ef; padding: 13px; border-radius: 9px; }
.doc-item strong { color: #414e66; font-size: 12px; }
.doc-item small { color: #657087; font-size: 10px; }
.doc-item > svg { color: #6880ac; }
.field { margin: 18px 0; }
.field label { color: #657087; font-size: 12px; font-weight: 550; }
.field input, .field textarea, .field select { color: #657087; border-color: #e7e9ef; border-radius: 9px; font-size: 13px; padding: 10px 12px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #657087; }
.field small { color: #657087; font-size: 11px; }
.check-field { color: #657087; font-size: 12px; line-height: 1.75; }
.check-field input, .reference-choice input { accent-color: #3155d9; }
.check-field input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; }
.reference-choice { border-color: #e7e9ef; border-radius: 10px; padding: 16px; }
.reference-choice strong { color: #414e66; font-size: 13px; }
.reference-choice small { color: #657087; font-size: 11px; }
.reference-choice:has(input:checked) { background: #f5faff; border-color: #bfdcff; }
.reference-image, .reference-preview { border-color: #e7e9ef; border-radius: 9px; }
.profile-preview { background: #f7f8fb; border-color: #e7e9ef; border-radius: 11px; padding: 19px; }
.profile-preview strong { color: #414e66; font-size: 15px; }
.profile-preview small { color: #657087; font-size: 11px; }
.procedure-row { border-color: #e7e9ef; border-radius: 10px; padding: 16px; }
.procedure-row strong { color: #414e66; font-size: 12px; }
.procedure-row p { color: #657087; font-size: 11px; }
.search-result-info, .doc-version-label, .preview-notice, .view-label { color: #657087; font-size: 11px; }
.version-row { border-color: #e7e9ef; }
.version-row span { color: #657087; font-size: 11px; }
.deliverable, .wizard-preview { color: #657087; border-color: #e7e9ef; border-radius: 11px; font-size: 13px; line-height: 1.85; }
.wizard-progress span { color: #657087; border-color: #e7e9ef; font-size: 10px; line-height: 1.5; }
.wizard-progress .current { color: #3155c7; border-color: #7faff5; }
.mono { color: #657087; background: #f7f8fb; font-size: 11px; }
.notice { color: #657087; background: #f7f8fb; border-color: #e7e9ef; border-radius: 10px; font-size: 12px; line-height: 1.8; }
.notice.amber { color: #7e5c20; background: #fff8e9; border-color: #eee0c3; }
.notice.error { color: #974b3e; background: #fff4ef; border-color: #ecd7ce; }
.inline-error, .input-error { color: #a55e51; font-size: 12px; }
.connection { border-color: #e7e9ef; gap: 12px; padding: 16px 0; }
.connection strong { color: #414e66; font-size: 13px; line-height: 1.5; }
.connection small { color: #657087; font-size: 11px; }
.connection .letter-icon { color: #657087; background: #edf6ff; border-radius: 9px; width: 36px; height: 36px; }
.soft-link { color: #3155c7; font-size: 11px; }
.log-item { color: #657087; border-color: #e7e9ef; font-size: 12px; }
.log-item span { color: #657087; font-size: 10px; }

/* Every overlay uses the same light surfaces; injected module CSS is covered. */
.overlay { background: #26304b59; backdrop-filter: blur(6px); }
.modal { background: #fff; border-color: #ffffffb3; border-radius: 18px; width: 600px; box-shadow: 0 24px 90px #1b30412b; }
.modal.wide { width: 790px; }
.modal-head { padding: 26px 29px 18px; }
.modal-head h2 { font-family: var(--sans); color: #283449; font-size: 26px; font-weight: 580; letter-spacing: -.8px; line-height: 1.3; }
.modal-head p { color: #657087; font-size: 12px; }
.modal-body { padding: 0 29px 28px; }
.modal-foot { margin-top: 24px; }
.workspace-option { border-color: #e7e9ef; border-radius: 11px; padding: 18px; }
.workspace-option.selected { background: #f7f8fb; border-color: #b3d4ff; }
.workspace-option strong { color: #414e66; font-size: 14px; }
.workspace-option small { color: #657087; font-size: 12px; }
.workspace-option svg { color: #6880ac; }
.toast { background: #283b59; color: #fff; border: 1px solid #ffffff14; padding: 13px 18px; border-radius: 10px; font-size: 13px; bottom: 23px; }
.toast.error { background: #864e45; }
body .eqa-overlay, body .equipe-google-overlay, body .equipe-budget-overlay,
body .equipe-sports-overlay, body .sports-import-overlay { background: #26304b65; backdrop-filter: blur(6px); }
body .eqa-dialog, body .equipe-google-dialog, body .equipe-budget-dialog,
body .equipe-sports-dialog, body .sports-import-dialog { background: #fff; color: #657087; border: 1px solid #e3efff; border-radius: 18px; font-family: var(--sans); box-shadow: 0 24px 85px #283e5e2c; }
body .eqa-dialog h2, body .equipe-google-dialog h2, body .equipe-budget-dialog h2,
body .equipe-sports-dialog h2, body .sports-import-dialog h2 { font-family: var(--sans); color: #283449; font-size: 25px; font-weight: 580; line-height: 1.3; letter-spacing: -.7px; }
body .eqa-dialog h3, body .equipe-google-dialog h3,
body .equipe-budget-dialog h3, body .equipe-sports-dialog h3 { color: #283449; }
body .eqa-dialog header p, body .eqa-field, body .eqa-help { color: #657087; font-size: 12px; }
body .eqa-field input, body .eqa-field select,
body .equipe-google-dialog input:not([type="checkbox"]), body .equipe-google-dialog textarea,
body .equipe-google-dialog select, body .equipe-budget-dialog input,
body .equipe-sports-dialog input:not([type="checkbox"]), body .equipe-sports-dialog textarea,
body .equipe-sports-dialog select, body .sports-import-dialog input:not([type="checkbox"]),
body .sports-import-dialog select { color: #657087; border-color: #e7e9ef; border-radius: 9px; padding: 10px 12px; }
body .eqa-button, body .equipe-sports-dialog button { color: #657087; border-color: #e7e9ef; border-radius: 9px; font-size: 12px; }
body .eqa-button.primary, body .equipe-google-dialog button, body .equipe-google-dialog a,
body .equipe-budget-dialog button, body .equipe-sports-dialog .sports-primary,
body .equipe-sports-dialog [role="tab"][aria-selected="true"], body .sports-import-dialog button { background: #3155d9; border-color: #3155d9; color: #fff; border-radius: 9px; font-size: 12px; }
body .eqa-button.primary:hover, body .equipe-google-dialog button:hover,
body .equipe-budget-dialog button:hover, body .sports-import-dialog button:hover { background: #2848bc; }
body .eqa-button.text { background: transparent; color: #657087; border-color: transparent; }
body .eqa-button.danger { color: #974b3e; border-color: #e8cfc7; }
body .eqa-close { background: #f7f8fb; color: #657087; }
body .eqa-role { background: #eef6ff; color: #657087; }
body .eqa-section, body .eqa-member { border-color: #e7e9ef; }
body .eqa-member span, body .eqa-member small { color: #657087; }
body .eqa-notice, body .eqa-invitation, body .budget-note,
body .sports-import-warning, body .sports-note, body .sports-readonly,
body .sports-empty, body .sports-preview, body .sports-due { background: #f7f8fb; color: #657087; border-color: #e7e9ef; }
body .eqa-error { background: #fff3ee; border-color: #ecd7ce; color: #974b3e; }
body .eqa-scopes { border-color: #e7e9ef; }
body .eqa-scopes legend { color: #657087; }
body .equipe-google-dialog .google-thread { background: #fff; color: #657087; border: 1px solid #e0eeff; }
body .equipe-google-dialog .google-thread:hover { background: #f3f6fc; color: #404d67; border-color: #c9d5ef; }
body .equipe-google-dialog article { border-color: #e7e9ef; }
body .budget-stats article { background: #f7f8fb; border: 1px solid #e3f0ff; color: #657087; }
body .equipe-sports-dialog input[type="checkbox"] { accent-color: #3155d9; }
body .sports-card, body .sports-checks { border-color: #e7e9ef; border-radius: 11px; }
body .sports-card dt, body .sports-muted { color: #657087; }
body .sports-badge { background: #f7f8fb; color: #657087; border-radius: 6px; }
body .sports-warning { background: #f7f8fb; color: #657087; }
body .sports-success { color: #376a46; }
body .sports-error { color: #974b3e; }
body .eqa-dialog input:focus-visible, body .eqa-dialog select:focus-visible,
body .eqa-dialog button:focus-visible, body .equipe-sports-dialog button:focus-visible,
body .equipe-sports-dialog input:focus-visible, body .equipe-sports-dialog select:focus-visible,
body .equipe-sports-dialog textarea:focus-visible { outline: 3px solid #3155d9; outline-offset: 3px; }

/* The voice view remains visibly an illustrated agent, with a subtle audio halo. */
.call-stage, .call-stage.live-stage { background: radial-gradient(ellipse at 50% 20%, #485d8c, #263449 80%); border-radius: 14px; }
.call-stage.live-stage.lea, .call-stage.live-stage.nina { background: radial-gradient(ellipse at 50% 20%, #625789, #302a46 80%); }
.call-stage.live-stage.hugo { background: radial-gradient(ellipse at 50% 20%, #566a60, #2b3a34 80%); }
.call-stage.live-stage.victor { background: radial-gradient(ellipse at 50% 20%, #776648, #3d3428 80%); }
.call-stage.live-stage.ines { background: radial-gradient(ellipse at 50% 20%, #556992, #2c354a 80%); }
.call-stage.live-stage.sarah { background: radial-gradient(ellipse at 50% 20%, #805b75, #432e3e 80%); }
.call-stage.live-stage.camille { background: radial-gradient(ellipse at 50% 20%, #517b7b, #2d4542 80%); }
.call-stage .call-badge, .call-stage p, .call-stage .call-type, .call-stage .call-time { color: #d7e3ff; font-size: 11px; }
.portrait-wrap { background: #eef3fc; box-shadow: 0 0 0 8px #ffffff0b, 0 10px 30px #17264026; }
.portrait-wrap.agent-call-portrait { position: relative; isolation: isolate; display: grid; place-items: end center; border: 1px solid #ffffff57; overflow: hidden; --audio-level: 0; }
.portrait-wrap.agent-call-portrait > img { display: block; position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; object-position: bottom; pointer-events: none; }
.portrait-wrap.lea, .portrait-wrap.nina { background: #eee7f7; }
.portrait-wrap.hugo { background: #e7efe5; }
.portrait-wrap.victor { background: #f5ecd8; }
.portrait-wrap.ines { background: #e8edfb; }
.portrait-wrap.sarah { background: #f4e2ee; }
.portrait-wrap.camille { background: #e1f0ed; }
.portrait-halo { position: absolute; z-index: 1; inset: 8px; border: 2px solid #ffffff65; border-radius: 50%; background: #ffffff18; opacity: .3; pointer-events: none; }
.agent-call-portrait.talking .portrait-halo { opacity: calc(.3 + var(--audio-level, 0) * .6); transform: scale(calc(1 + var(--audio-level, 0) * .08)); box-shadow: 0 0 0 calc(2px + var(--audio-level, 0) * 7px) #ffffff18; transition: opacity .08s linear, transform .08s linear, box-shadow .08s linear; }
.call-controls .round { color: #657087; background: #f7f8fb; border-color: #e7e9ef; width: 43px; height: 43px; }
.call-controls .round[aria-pressed="true"] { color: #657087; background: #eaf3ff; border-color: #bdd9ff; }
.call-control-label { color: #657087; font-size: 10px; }
.call-transcript { border-color: #e7e9ef; border-radius: 12px; padding: 16px; }
.call-transcript-label { color: #657087; font-size: 10px; }
.call-transcript-empty { color: #657087; font-size: 12px; }
.call-fragment { color: #657087; border-color: #e7e9ef; font-size: 12px; }
.call-fragment strong { color: #414e66; font-size: 10px; }
.call-fragment.user { border-color: #e7e9ef; }
.call-consent, .call-after, .call-mission-selection { color: #657087; background: #f7f8fb; border-color: #e7e9ef; font-size: 11px; border-radius: 10px; }
.call-live-copy, .call-local-note, .call-connection-note, .call-transcript-saved { color: #657087; font-size: 11px; }
.call-question { color: #7e5c20; background: #fff8e9; border-color: #eddfbd; border-radius: 10px; }
.call-question strong, .call-question small { color: #7e5c20; font-size: 10px; }
.voice-history-marker { color: #657087; background: #f7f8fb; font-size: 9px; }

/* Hugo's prospecting workspace: the source, sender and complete messages stay
   visible in the normal reading flow through search, drafting and review. */
body .equipe-prospecting-overlay {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #26304b65;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}
body .equipe-prospecting-dialog {
  width: min(1000px, 90vw);
  max-width: 100%;
  max-height: min(90dvh, calc(100dvh - 40px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c3ccdf transparent;
  border: 1px solid #e7e9ef;
  border-radius: 18px;
  background: #fff;
  color: #283449;
  box-shadow: 0 24px 90px #1b304130;
  font: 13px/1.65 var(--sans);
}
.prospecting-progress{margin:20px 0;padding:20px;border:1px solid #dbe4dd;border-radius:14px;background:#f3f7f3}
.prospecting-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.prospecting-progress progress{width:100%;height:9px;border:0;border-radius:9px;overflow:hidden;accent-color:#2c6650}
.prospecting-progress progress::-webkit-progress-bar{background:#dfe8df;border-radius:9px}
.prospecting-progress progress::-webkit-progress-value{background:#2c6650;border-radius:9px}
.prospecting-progress p,.prospecting-progress small{display:block;line-height:1.7;margin:12px 0}
.prospecting-goal-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:15px 0}
.prospecting-goal-form label{flex:1;min-width:150px;max-width:240px}
.prospecting-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 0;font-size:12px}
body .equipe-prospecting-dialog *,
body .equipe-prospecting-dialog *::before,
body .equipe-prospecting-dialog *::after { box-sizing: border-box; }
body .equipe-prospecting-dialog > header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 23px 25px 20px;
  border-bottom: 1px solid #edf0f5;
}
body .equipe-prospecting-dialog > header > div { flex: 1; min-width: 0; }
body .equipe-prospecting-dialog > header > .btn,
body .equipe-prospecting-dialog > header > .icon-button,
body .equipe-prospecting-dialog > header > button { flex-shrink: 0; margin-left: auto; }
body .equipe-prospecting-dialog h2 {
  margin: 0;
  color: #283449;
  font: 600 25px/1.3 var(--sans);
  letter-spacing: -.75px;
  overflow-wrap: anywhere;
}
body .equipe-prospecting-dialog h3 { margin: 0 0 10px; color: #333d51; font-size: 15px; font-weight: 590; line-height: 1.5; }
body .equipe-prospecting-dialog h4 { margin: 0 0 7px; color: #414e66; font-size: 13px; font-weight: 580; line-height: 1.6; }
body .equipe-prospecting-dialog p { color: #657087; font-size: 12px; line-height: 1.8; margin: 9px 0; }
body .equipe-prospecting-dialog > header p { margin: 6px 0 0; }
body .equipe-prospecting-dialog a { color: #3155c7; text-underline-offset: 3px; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog button,
body .equipe-prospecting-dialog input,
body .equipe-prospecting-dialog select,
body .equipe-prospecting-dialog textarea { font-family: var(--sans); }
body .equipe-prospecting-dialog button:focus-visible,
body .equipe-prospecting-dialog a:focus-visible,
body .equipe-prospecting-dialog input:focus-visible,
body .equipe-prospecting-dialog select:focus-visible,
body .equipe-prospecting-dialog textarea:focus-visible { outline: 3px solid #3155d9; outline-offset: 3px; }
body .equipe-prospecting-dialog .prospecting-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; }
body .equipe-prospecting-dialog .prospecting-campaigns {
  align-self: stretch;
  min-width: 0;
  padding: 20px 15px;
  border-right: 1px solid #e9edf5;
  background: #f8f9fc;
}
body .equipe-prospecting-dialog .prospecting-campaigns h3 { font-size: 12px; margin-bottom: 12px; }
body .equipe-prospecting-dialog .prospecting-campaigns > button,
body .equipe-prospecting-dialog .prospecting-campaigns [data-campaign-id] {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px 11px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
  color: #4a5770;
  border: 1px solid #e3e8f3;
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
}
body .equipe-prospecting-dialog .prospecting-campaigns > button:hover { background: #f0f4ff; border-color: #c9d5f3; color: #3155c7; }
body .equipe-prospecting-dialog .prospecting-campaigns > button[aria-current="true"],
body .equipe-prospecting-dialog .prospecting-campaigns > button[aria-pressed="true"],
body .equipe-prospecting-dialog .prospecting-campaigns > button.is-active,
body .equipe-prospecting-dialog .prospecting-campaign-button.active { background: #eef3ff; border-color: #cbd7f6; color: #3155c7; }
body .equipe-prospecting-dialog .prospecting-campaign-button strong { display: block; color: inherit; font-size: 11px; line-height: 1.6; }
body .equipe-prospecting-dialog .prospecting-campaigns button small { display: block; margin-top: 3px; color: #657087; font-size: 10px; font-weight: 400; }
body .equipe-prospecting-dialog .prospecting-main { min-width: 0; padding: 22px 24px 25px; }
body .equipe-prospecting-dialog .prospecting-toolbar,
body .equipe-prospecting-dialog .prospecting-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .equipe-prospecting-dialog .prospecting-toolbar { justify-content: space-between; margin-bottom: 17px; }
body .equipe-prospecting-dialog .prospecting-actions { position: static; margin-top: 15px; }
body .equipe-prospecting-dialog .prospecting-actions .btn { min-height: 38px; }
body .equipe-prospecting-dialog .prospecting-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 20px; }
body .equipe-prospecting-dialog .prospecting-step,
body .equipe-prospecting-dialog .prospecting-steps > span {
  border-top: 3px solid #e7ebf3;
  padding-top: 8px;
  color: #657087;
  font-size: 11px;
  line-height: 1.6;
}
body .equipe-prospecting-dialog .prospecting-step.is-current,
body .equipe-prospecting-dialog .prospecting-step[aria-current="step"],
body .equipe-prospecting-dialog .prospecting-steps > span.current { border-color: #3155d9; color: #3155c7; font-weight: 560; }
body .equipe-prospecting-dialog .prospecting-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
body .equipe-prospecting-dialog .prospecting-form label,
body .equipe-prospecting-dialog .prospecting-form-grid label { display: block; min-width: 0; margin: 0; color: #4b5872; font-size: 12px; line-height: 1.6; }
body .equipe-prospecting-dialog .prospecting-form-grid label:has(textarea),
body .equipe-prospecting-dialog .prospecting-form-grid .prospecting-full { grid-column: 1 / -1; }
body .equipe-prospecting-dialog input:not([type="checkbox"]):not([type="radio"]),
body .equipe-prospecting-dialog select,
body .equipe-prospecting-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 10px 12px;
  color: #384760;
  border: 1px solid #dfe5ef;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
}
body .equipe-prospecting-dialog textarea { resize: vertical; min-height: 105px; }
body .equipe-prospecting-dialog input::placeholder,
body .equipe-prospecting-dialog textarea::placeholder { color: #657087; }
body .equipe-prospecting-dialog input[type="checkbox"],
body .equipe-prospecting-dialog input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #3155d9; flex-shrink: 0; }
body .equipe-prospecting-dialog label:has(input[type="checkbox"]),
body .equipe-prospecting-dialog label:has(input[type="radio"]) { display: flex; align-items: flex-start; gap: 10px; color: #4e5b72; font-size: 12px; line-height: 1.7; min-height: 34px; padding: 5px 0; cursor: pointer; }
body .equipe-prospecting-dialog .prospecting-form small,
body .equipe-prospecting-dialog .prospecting-draft small,
body .equipe-prospecting-dialog .prospecting-main > small { display: block; color: #657087; font-size: 11px; line-height: 1.7; margin-top: 5px; }
body .equipe-prospecting-dialog .prospecting-stats { display: flex; align-items: stretch; gap: 9px; flex-wrap: wrap; margin: 17px 0; }
body .equipe-prospecting-dialog .prospecting-stats > * { border: 1px solid #e4e9f2; border-radius: 9px; background: #f8faff; padding: 10px 12px; color: #4b5c7b; font-size: 11px; line-height: 1.7; }
body .equipe-prospecting-dialog .prospecting-stats strong { color: #344b77; font-size: 17px; font-weight: 590; }
body .equipe-prospecting-dialog .prospecting-prospects { display: grid; gap: 12px; margin-top: 15px; }
body .equipe-prospecting-dialog .prospecting-card { min-width: 0; padding: 17px; border: 1px solid #e4e9f2; border-radius: 12px; background: #fff; }
body .equipe-prospecting-dialog .prospecting-card > header { display: flex; align-items: flex-start; gap: 11px; justify-content: space-between; flex-wrap: wrap; padding: 0; border: none; }
body .equipe-prospecting-dialog .prospecting-card > header > div { min-width: 0; flex: 1; }
body .equipe-prospecting-dialog .prospecting-card h3 { font-size: 14px; margin: 0 0 4px; }
body .equipe-prospecting-dialog .prospecting-card strong,
body .equipe-prospecting-dialog .prospecting-card p,
body .equipe-prospecting-dialog .prospecting-card small { overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-card small { color: #657087; font-size: 11px; line-height: 1.7; }
body .equipe-prospecting-dialog .prospecting-card.is-selected { border-color: #bcccf6; background: #fcfdff; }
body .equipe-prospecting-dialog .prospecting-sources { display: grid; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; }
body .equipe-prospecting-dialog .prospecting-sources a { display: inline; color: #3155c7; font-size: 11px; line-height: 1.7; }
body .equipe-prospecting-dialog .prospecting-sources p { margin: 0; font-size: 11px; }
body .equipe-prospecting-dialog .prospecting-contact-email { color: #3f5170; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; background: #f0f4fb; color: #52668b; padding: 4px 7px; font-size: 10px; line-height: 1.5; }
body .equipe-prospecting-dialog .prospecting-status.is-sent { color: #356b49; background: #edf7ef; }
body .equipe-prospecting-dialog .prospecting-status.is-blocked,
body .equipe-prospecting-dialog .prospecting-status.is-failed { color: #974b3e; background: #fff1ed; }
body .equipe-prospecting-dialog .prospecting-status.is-uncertain { color: #7e5c20; background: #fff5e0; }
body .equipe-prospecting-dialog .prospecting-notice,
body .equipe-prospecting-dialog .prospecting-sender { margin: 15px 0; padding: 13px 15px; border: 1px solid #e1e9f8; border-radius: 10px; background: #f5f8ff; color: #4f6386; font-size: 12px; line-height: 1.8; }
body .equipe-prospecting-dialog .prospecting-sender { background: #f8faff; }
body .equipe-prospecting-dialog .prospecting-sender strong { color: #354d7a; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-sender code { font-family: var(--sans); color: #354d7a; font-size: 12px; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-error { margin: 14px 0; padding: 12px 14px; border: 1px solid #efd7cf; border-radius: 9px; background: #fff4f0; color: #974b3e; font-size: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-error:empty { display: none; }
body .equipe-prospecting-dialog .prospecting-draft { margin-top: 17px; padding: 17px; border: 1px solid #e4e9f2; border-radius: 12px; background: #fafbfe; }
body .equipe-prospecting-dialog .prospecting-draft textarea { min-height: 175px; background: #fff; }
body .equipe-prospecting-dialog .prospecting-draft label { display: block; color: #465672; font-size: 12px; line-height: 1.7; margin: 11px 0; }
body .equipe-prospecting-dialog .prospecting-review { margin-top: 17px; }
body .equipe-prospecting-dialog .prospecting-review > article,
body .equipe-prospecting-dialog .prospecting-review .prospecting-review-message { padding: 17px; border: 1px solid #e2e9f6; border-radius: 11px; background: #fff; margin: 12px 0; }
body .equipe-prospecting-dialog .prospecting-review pre,
body .equipe-prospecting-dialog .prospecting-review .prospecting-message-body {
  display: block;
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #384760;
  background: #f8f9fc;
  border: 1px solid #ebeff6;
  border-radius: 9px;
  padding: 14px 15px;
  margin: 12px 0 0;
  font: 12px/1.85 var(--sans);
}
body .equipe-prospecting-dialog .prospecting-review dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 10px 0; font-size: 12px; line-height: 1.8; }
body .equipe-prospecting-dialog .prospecting-review dt { color: #657087; }
body .equipe-prospecting-dialog .prospecting-review dd { color: #3f5170; margin: 0; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog fieldset { border: 1px solid #e3e9f3; border-radius: 10px; margin: 15px 0; padding: 13px 15px; min-width: 0; }
body .equipe-prospecting-dialog legend { color: #4e5f7c; font-size: 12px; padding: 0 5px; }
body .equipe-prospecting-dialog .prospecting-receipts { display: grid; gap: 8px; margin-top: 15px; }
body .equipe-prospecting-dialog .prospecting-receipt { border: 1px solid #e3e9f3; border-radius: 10px; padding: 12px 14px; background: #fafbfe; color: #4e5f7c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-history { margin-top: 21px; border-top: 1px solid #edf0f6; padding-top: 16px; }
body .equipe-prospecting-dialog .prospecting-history article { margin: 10px 0; padding: 10px 0 10px 13px; border-left: 2px solid #dce5f8; color: #556783; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
body .equipe-prospecting-dialog .prospecting-history time { display: block; color: #657087; font-size: 10px; line-height: 1.7; margin-bottom: 4px; }
body .equipe-prospecting-dialog [aria-busy="true"] { cursor: progress; }
@media (max-width: 850px) {
  body .equipe-prospecting-overlay { padding: 15px; }
  body .equipe-prospecting-dialog { width: min(1000px, 94vw); max-height: min(90dvh, calc(100dvh - 30px)); }
  body .equipe-prospecting-dialog .prospecting-layout { grid-template-columns: 165px minmax(0, 1fr); }
  body .equipe-prospecting-dialog .prospecting-campaigns { padding: 17px 12px; }
  body .equipe-prospecting-dialog .prospecting-main { padding: 20px; }
}
@media (max-width: 620px) {
  body .equipe-prospecting-overlay { padding: 10px; }
  body .equipe-prospecting-dialog { width: 100%; max-height: min(90dvh, calc(100dvh - 20px)); border-radius: 15px; }
  body .equipe-prospecting-dialog > header { padding: 19px 17px 17px; gap: 11px; }
  body .equipe-prospecting-dialog h2 { font-size: 23px; }
  body .equipe-prospecting-dialog .prospecting-layout { grid-template-columns: 1fr; }
  body .equipe-prospecting-dialog .prospecting-campaigns { border-right: none; border-bottom: 1px solid #e9edf5; padding: 15px 17px; }
  body .equipe-prospecting-dialog .prospecting-campaigns > button { margin: 5px 0; }
  body .equipe-prospecting-dialog .prospecting-main { padding: 19px 17px 22px; }
  body .equipe-prospecting-dialog .prospecting-form-grid { grid-template-columns: 1fr; gap: 13px; }
  body .equipe-prospecting-dialog .prospecting-steps { gap: 7px; margin-bottom: 17px; }
  body .equipe-prospecting-dialog .prospecting-step,
  body .equipe-prospecting-dialog .prospecting-steps > span { font-size: 10px; }
  body .equipe-prospecting-dialog .prospecting-toolbar { align-items: flex-start; gap: 11px; }
  body .equipe-prospecting-dialog .prospecting-actions { gap: 7px; }
  body .equipe-prospecting-dialog .prospecting-actions .btn { min-height: 40px; }
  body .equipe-prospecting-dialog input:not([type="checkbox"]):not([type="radio"]),
  body .equipe-prospecting-dialog select,
  body .equipe-prospecting-dialog textarea { font-size: 16px; }
  body .equipe-prospecting-dialog input[type="checkbox"],
  body .equipe-prospecting-dialog input[type="radio"] { width: 19px; height: 19px; margin-top: 3px; }
  body .equipe-prospecting-dialog label:has(input[type="checkbox"]),
  body .equipe-prospecting-dialog label:has(input[type="radio"]) { min-height: 40px; }
  body .equipe-prospecting-dialog .prospecting-card,
  body .equipe-prospecting-dialog .prospecting-draft,
  body .equipe-prospecting-dialog .prospecting-review > article { padding: 15px; }
  body .equipe-prospecting-dialog .prospecting-review dl { grid-template-columns: 1fr; gap: 2px; }
  body .equipe-prospecting-dialog .prospecting-review dd { margin-bottom: 7px; }
  body .equipe-prospecting-dialog .prospecting-review pre,
  body .equipe-prospecting-dialog .prospecting-review .prospecting-message-body { font-size: 12px; padding: 12px; }
}

/* Breakpoints are based on available work space, with safe text wrapping. */
.page-heading > div, .agent-identity, .head-name, .head-role, .connection-name { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1600px) {
  .sidebar { width: 232px; }
  .page { padding: 35px 43px 49px; }
  .team-grid { max-width: 1510px; gap: 22px; }
  .agent-card-cover { height: 212px; min-height: 212px; }
  .details-panel { width: 292px; }
  .thread { padding-left: 55px; padding-right: 55px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 214px; }
  .page { padding: 28px; }
  .topbar { padding: 0 27px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; max-width: 980px; }
  .agent-card-cover { height: 210px; min-height: 210px; }
  .details-panel { display: none; }
  .mobile-detail { display: inline-flex; }
  .chat-head { padding: 17px 27px; }
  .thread { padding: 26px 29px 16px; }
  .composer-wrap { padding: 13px 27px 16px; }
  .mission-banner { padding: 12px 27px; }
  .home-recent .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .sidebar { width: 203px; padding-left: 11px; padding-right: 11px; }
  .brand { font-size: 25px; padding-left: 8px; }
  .workspace-select { gap: 7px; }
  .workspace-select strong { font-size: 10px; }
  .agent-nav small { max-width: 122px; }
  .page { padding: 26px 24px 36px; }
  .page-heading h1 { font-size: 31px; }
  .topbar { padding: 0 23px; }
  .top-actions { gap: 8px; }
  .question-top span { display: none; }
  .team-intro { align-items: flex-start; }
  .agent-card-body { padding: 17px; }
  .agent-card-actions { gap: 5px; }
  .agent-card-actions .btn { font-size: 10px; padding-left: 8px; padding-right: 8px; }
  .home-team-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 540px; row-gap: 8px; }
  .team-cooperation { grid-template-columns: 1fr; gap: 21px; }
  .bureau-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bureau-bottom { grid-template-columns: 1fr; }
  .head-actions { gap: 4px; }
  .mission-banner { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 850px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .team-grid { max-width: none; }
  .team-intro h1 { font-size: 34px; }
  .team-stats { gap: 14px; }
  .team-stat { padding-right: 14px; }
  .agent-card-cover { height: 190px; min-height: 190px; }
  .agent-prompt { font-size: 10px; padding: 7px; }
  .agent-inspiration { grid-template-columns: 1fr; }
  .agent-card-actions { flex-wrap: wrap; }
  .agent-card-actions .btn.primary { min-width: 100%; }
  .chat-head { padding: 15px 22px; }
  .head-name { font-size: 15px; }
  .head-role { font-size: 11px; }
  .composer-wrap { padding: 12px 22px 15px; }
  .mission-banner { padding: 12px 22px; }
  .home-welcome h1 { font-size: 33px; }
  .home-recent .recent-grid { grid-template-columns: 1fr; }
  .projects-grid, .knowledge-grid { grid-template-columns: 1fr; }
  .bureau-hero { flex-direction: column; align-items: flex-start; }
  .bureau-hero-art { align-self: center; }
}
@media (max-width: 740px) {
  .team-grid { grid-template-columns: 1fr; max-width: 550px; }
  .agent-card-cover { height: 210px; min-height: 210px; }
  .agent-inspiration { grid-template-columns: 1fr 1fr; }
  .agent-card-actions { flex-wrap: nowrap; }
  .agent-card-actions .btn.primary { min-width: 0; }
}
@media (max-width: 620px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: -270px; width: 252px; padding: 22px 16px 14px; transition: left .2s; }
  .sidebar.open { left: 0; }
  .sidebar > .collaborator-nav { flex: none; max-height: 45dvh; min-height: 164px; }
  .sidebar-backdrop.visible { background: #26304b52; backdrop-filter: blur(2px); }
  .sidebar .brand { font-size: 27px; padding-bottom: 19px; }
  .sidebar .workspace-select strong { font-size: 12px; }
  .sidebar .workspace-select small { font-size: 10px; }
  .sidebar .nav-button { font-size: 12px; min-height: 37px; }
  .sidebar .agent-nav { min-height: 44px; }
  .sidebar .agent-nav strong { font-size: 12px; }
  .sidebar .agent-nav small { font-size: 10px; max-width: 150px; }
  .topbar { height: 63px; padding: 0 12px; gap: 8px; }
  .mobile-menu { display: inline-flex; }
  .breadcrumb { font-size: 11px; }
  .top-actions { gap: 4px; }
  .mode-badge { font-size: 9px; padding: 6px 7px; }
  .question-top { gap: 4px; padding: 6px 3px; }
  .question-top b { width: 18px; height: 18px; font-size: 10px; }
  .question-top svg { width: 17px; height: 17px; }
  .page { padding: 23px 18px 34px; }
  .page-heading { gap: 17px; margin-bottom: 22px; }
  .page-heading h1 { font-size: 30px; letter-spacing: -1px; }
  .page-subtitle { font-size: 12px; }
  .home-welcome { margin: 8px auto 24px; }
  .home-welcome h1 { font-size: 31px; letter-spacing: -1px; }
  .home-welcome p { font-size: 12px; }
  .home-launcher { padding: 13px 14px; min-height: 58px; border-radius: 12px; margin-top: 19px; font-size: 12px; }
  .home-team-strip { gap: 5px; margin-bottom: 25px; }
  .home-team-strip .avatar { width: 47px; height: 47px; }
  .home-launcher-copy small { font-size: 10px; }
  .home-section-heading { align-items: flex-start; gap: 10px; }
  .home-section-heading h2 { font-size: 14px; }
  .home-section-heading .btn { font-size: 10px; padding: 5px 0; min-height: 25px; }
  .home-recent-row { gap: 10px; padding: 12px; flex-wrap: wrap; }
  .home-recent-row time { margin-left: 42px; flex-basis: calc(100% - 66px); font-size: 9px; }
  .home-recent-row > svg { align-self: center; }
  .home-team-strip > button { font-size: 10px; padding: 8px 4px; }
  .home-team-strip small { font-size: 9px; }
  .team-intro h1 { font-size: 34px; }
  .team-stats { margin-bottom: 22px; gap: 10px; }
  .team-stat { padding-right: 10px; gap: 5px; }
  .team-stat strong { font-size: 18px; }
  .team-stat span { font-size: 9px; }
  .team-grid { gap: 21px; }
  .agent-card-cover { height: 218px; min-height: 218px; }
  .agent-role-label { font-size: 10px; max-width: calc(100% - 140px); }
  .agent-card-cover .status-pill { font-size: 9px; }
  .agent-card-body { padding: 20px; }
  .agent-card-body h2 { font-size: 24px; }
  .agent-card-body .role { font-size: 12px; }
  .agent-card-body .description { font-size: 12px; }
  .agent-inspiration h3 { font-size: 10px; }
  .agent-prompt { font-size: 11px; padding: 8px; }
  .agent-card-actions { gap: 7px; }
  .agent-card-actions .btn { font-size: 11px; min-height: 39px; }
  .team-cooperation, .principle { padding: 21px; }
  .cooperation-copy h2 { font-size: 25px; }
  .bureau-grid, .memory-grid, .bureau-bottom, .docs-list,
  .profile-layout, .two-fields { grid-template-columns: 1fr; }
  .bureau-column { padding: 15px; }
  .bureau-empty { min-height: 0; }
  .bureau-task { padding: 16px; }
  .bureau-task p { font-size: 12px; }
  .bureau-task .btn { width: auto; }
  .card, .project-card, .recurrence-card { padding: 20px; }
  .memory-card, .library-card { padding: 19px; }
  .chat-head { padding: 14px 15px; gap: 9px; min-height: 77px; }
  .head-name { font-size: 15px; }
  .head-role { font-size: 10px; }
  .head-actions { gap: 3px; }
  .head-actions .btn { padding: 8px 9px; font-size: 11px; min-height: 34px; }
  .head-actions .btn > span:not(.avatar) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .head-actions .icon-button { min-width: 30px; min-height: 34px; }
  .thread { padding: 23px 16px 10px; }
  .chat-welcome { margin: 31px auto 27px; padding: 0 9px; }
  .chat-welcome > .avatar { width: 84px; height: 84px; }
  .chat-welcome h2 { font-size: 22px; }
  .chat-welcome p { font-size: 12px; }
  .message { gap: 9px; margin-bottom: 23px; }
  .message.user { margin-left: 0; }
  .message.system { margin-left: 37px; }
  .message-copy { font-size: 13px; }
  .message-header small { font-size: 9px; }
  .question-card, .work-card { margin-left: 0; padding: 17px; }
  .question-card h3 { font-size: 14px; }
  .question-card p { font-size: 12px; }
  .chip { font-size: 11px; padding: 9px 11px; }
  .composer-wrap { padding: 10px 12px 12px; }
  .composer { padding: 13px 13px 10px; border-radius: 13px; }
  .composer textarea { font-size: 16px; min-height: 43px; height: 43px; resize: none; }
  .composer-foot, .composer-tools span { font-size: 9px; }
  .mission-banner { padding: 12px 16px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .mission-banner > div { width: 100%; }
  .mission-selector-label { display: block; }
  .mission-selector-label select { display: block; max-width: 100%; width: 100%; margin-top: 6px; min-width: 0; }
  .mission-banner-actions { flex-wrap: wrap; }
  .overlay { padding: 10px; }
  .modal { max-height: 94dvh; border-radius: 16px; }
  .modal-head { padding: 22px 20px 16px; }
  .modal-head h2 { font-size: 24px; }
  .modal-body { padding: 0 20px 23px; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .docs-toolbar { gap: 9px; }
  .search-field { min-width: 100%; }
  .search-field input, .filter-select { font-size: 16px; }
  .connection, .list-row { gap: 10px; flex-wrap: wrap; }
  .connection .connection-name, .list-row .row-main { min-width: 140px; }
  .call-stage.live-stage { min-height: 275px; }
  body .eqa-dialog, body .equipe-google-dialog, body .equipe-budget-dialog,
  body .equipe-sports-dialog, body .sports-import-dialog { border-radius: 16px; }
  body .eqa-field input, body .eqa-field select,
  body .equipe-google-dialog input:not([type="checkbox"]), body .equipe-google-dialog textarea,
  body .equipe-google-dialog select, body .equipe-budget-dialog input,
  body .equipe-sports-dialog input:not([type="checkbox"]), body .equipe-sports-dialog textarea,
  body .equipe-sports-dialog select, body .sports-import-dialog input:not([type="checkbox"]),
  body .sports-import-dialog select { font-size: 16px; }
}
@media (max-width: 380px) {
  .page { padding-left: 15px; padding-right: 15px; }
  .team-stat { flex-direction: column; gap: 3px; align-items: flex-start; }
  .agent-card-actions { flex-wrap: wrap; }
  .agent-card-actions .btn.primary { min-width: 100%; }
  .agent-role-label { font-size: 9px; }
  .topbar { padding-left: 8px; padding-right: 8px; }
  .breadcrumb { font-size: 10px; }
}
@media (max-height: 750px) and (min-width: 621px) {
  .sidebar { padding-top: 14px; }
  .sidebar > .collaborator-nav { min-height: 122px; max-height: 245px; }
  .sidebar .sandbox-note { margin-top: 6px; margin-bottom: 6px; }
}
@media (max-height: 650px) {
  .sidebar > .collaborator-nav { flex: none; min-height: 164px; max-height: 246px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .agent-call-portrait.talking .portrait-halo { transform: none; box-shadow: none; opacity: .45; }
}
