:root {
  color-scheme: light;
  --ink: #111116;
  --ink-soft: #24242d;
  --muted: #6d6d7a;
  --faint: #9898a6;
  --line: #e4e4ec;
  --line-strong: #d2d2de;
  --paper: #f7f7fa;
  --canvas: #f7f7fa;
  --surface: #ffffff;
  --soft: #f1f1f6;
  --surface-soft: #f1f1f6;
  --brand: #6c3bff;
  --violet: #6c3bff;
  --brand-dark: #4b23c8;
  --violet-dark: #4b23c8;
  --brand-soft: #f0ecff;
  --violet-soft: #f0ecff;
  --magenta: #c82dd1;
  --coral: #ff4f74;
  --amber: #b46a00;
  --amber-soft: #fff4de;
  --red: #c83e4d;
  --red-soft: #fdecee;
  --danger: #c83e4d;
  --danger-soft: #fdecee;
  --blue: #356ae6;
  --blue-soft: #ebf1ff;
  --positive: #158466;
  --positive-soft: #e8f6f1;
  --gradient: linear-gradient(135deg, #6c3bff 0%, #c82dd1 46%, #ff4f74 72%, #ffb126 100%);
  --shadow: 0 12px 36px rgba(17, 17, 22, .06);
  --shadow-large: 0 28px 80px rgba(17, 17, 22, .14);
  --radius: 16px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: var(--font); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.is-hidden { display: none !important; }
.muted { color: var(--muted); }
.app-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.brand-mark, .agent-avatar, .agent-nav-mark { position: relative; overflow: visible; flex: 0 0 auto; background: transparent url('/brand/ganymedus-face-gradient.png') center / contain no-repeat; color: transparent; display: inline-grid; place-items: center; font-size: 0; filter: drop-shadow(0 5px 10px rgba(108,59,255,.2)); }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; }
.brand-mark::before, .agent-avatar::before, .agent-nav-mark::before { content: none; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--canvas, #f7f7fa); }
.auth-story { padding: 42px clamp(42px, 7vw, 110px); background: #111116; color: white; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; }
.auth-story::before { content: ""; position: absolute; inset: -25% -15% 15% 20%; background: radial-gradient(circle at 30% 20%, rgba(108,59,255,.48), transparent 36%), radial-gradient(circle at 75% 45%, rgba(200,45,209,.32), transparent 34%), radial-gradient(circle at 65% 100%, rgba(255,79,116,.22), transparent 42%); filter: blur(22px); z-index: -1; }
.auth-story::after { content: ""; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); position: absolute; right: -190px; bottom: -180px; box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.012); }
.auth-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 19px; font-weight: 750; position: relative; z-index: 1; }
.auth-story .brand-mark { background: transparent url('/brand/ganymedus-face-gradient.png') center / contain no-repeat; }
.auth-copy { margin: auto 0; max-width: 660px; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .13em; font-weight: 800; color: #c9bbff; margin: 0 0 18px; }
.auth-copy h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; font-weight: 780; letter-spacing: -.05em; margin: 0 0 24px; }
.auth-copy > p:last-child { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.72); max-width: 590px; }
.auth-loop { display: flex; gap: 14px; align-items: center; color: rgba(255,255,255,.75); font-size: 12px; position: relative; z-index: 1; }
.auth-loop span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; }
.auth-loop i { opacity: .45; font-style: normal; }
.auth-panel { display: grid; place-items: center; padding: 36px; }
.auth-card { width: min(440px, 100%); background: white; border: 1px solid var(--line); border-radius: 22px; padding: 10px 34px 34px; box-shadow: var(--shadow-large); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 0 -10px 28px; }
.auth-tab { border: 0; background: none; padding: 17px 8px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tab.is-active { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.google-auth-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 700; transition: background .15s, box-shadow .15s; }
.google-auth-button:hover { background: #ececf3; box-shadow: 0 4px 14px rgba(17,17,22,.07); }
.google-g { width: 20px; height: 20px; display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #4285f4; font-family: Arial, sans-serif; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { white-space: nowrap; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
.form-stack h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.025em; }
.form-stack p { margin: 0; color: var(--muted); font-size: 14px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: #4f4f5b; }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.checkbox-label input { width: auto; margin: 0; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: white; color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: #8d6bff; box-shadow: 0 0 0 3px rgba(108,59,255,.16); }
textarea { resize: vertical; line-height: 1.55; }
.button { min-height: 42px; border: 0; background: var(--soft); padding: 10px 16px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease; }
.button:hover { background: #e9e9f1; }
.button.secondary { background: var(--surface-soft); color: var(--ink-soft); box-shadow: none; }
.button.secondary:hover { background: #e9e9f1; }
.button.primary { background: var(--gradient); color: white; box-shadow: 0 8px 22px rgba(108,59,255,.19); }
.button.primary:hover { background: var(--gradient); filter: saturate(1.1) brightness(1.03); box-shadow: 0 11px 28px rgba(108,59,255,.25); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(108,59,255,.2); outline-offset: 2px; }
.button.ghost { background: transparent; color: var(--muted); box-shadow: none; }
.button.ghost:hover { background: var(--soft); }
.button.danger { color: var(--red); background: var(--red-soft); }
.button.wide { width: 100%; min-height: 46px; padding: 12px; }
.button.small { padding: 7px 10px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: wait; }
.form-error { min-height: 18px; color: var(--red) !important; font-size: 12px !important; }

.onboarding-shell { min-height: 100vh; background: var(--paper); }
.onboarding-head { height: 74px; padding: 0 clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; }
.step-label { font-size: 12px; color: var(--muted); }
.onboarding-head-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.onboarding-workspace-action { max-width: min(360px, 42vw); min-height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-grid { width: min(1150px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr); gap: 90px; }
.onboarding-main h1 { font-size: 42px; letter-spacing: -.045em; margin: 0 0 14px; }
.onboarding-main .lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0 0 28px; }
.dictation-box { background: white; border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 36px rgba(17,17,22,.06); }
.dictation-box textarea { border: 0; border-radius: 0; min-height: 220px; padding: 20px; font-size: 16px; box-shadow: none; }
.dictation-actions { border-top: 1px solid var(--line); padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.speech-language-label { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); font-weight: 650; }
.speech-language-label select { width: auto; padding: 6px 26px 6px 8px; font-size: 10px; }
.dictation-actions > .muted { margin-left: 12px; }
.voice-button { min-height: 38px; border: 0; background: var(--brand-soft); color: var(--brand-dark); border-radius: 99px; padding: 8px 13px; display: flex; align-items: center; gap: 7px; font-weight: 750; cursor: pointer; }
.voice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.voice-button.is-listening .voice-dot { animation: pulse 1s infinite; background: var(--red); }
.voice-button.is-icon-only { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; border-radius: 11px; }
.voice-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.voice-button-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.voice-button.is-icon-only.is-listening { background: var(--red-soft); color: var(--red); }
.voice-button.is-icon-only.is-listening .voice-icon { animation: microphone-pulse 1s infinite; }
@keyframes microphone-pulse { 50% { filter: drop-shadow(0 0 4px rgba(200,62,77,.42)); transform: scale(1.06); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(177,67,67,.15); } }
.file-drop-zone { position: relative; }
.file-drop-zone::after { content: "Drop files to attach"; position: absolute; z-index: 8; inset: 4px; display: grid; place-items: center; border-radius: 12px; background: rgba(240,236,255,.96); color: var(--violet-dark); font-size: 12px; font-weight: 780; letter-spacing: -.01em; opacity: 0; pointer-events: none; transition: opacity .14s ease; }
.file-drop-zone.is-file-dragover::after { opacity: 1; }
.file-drop-zone.is-file-dragover { box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.resume-setup-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 14px 15px; border: 1px solid #d9d0f7; border-radius: 14px; background: var(--brand-soft); }
.resume-setup-card div { display: grid; gap: 4px; }
.resume-setup-card strong { color: var(--brand-dark); font-size: 12px; }
.resume-setup-card span { color: var(--muted); font-size: 10px; }
.onboarding-aside { border-left: 1px solid var(--line); padding-left: 42px; align-self: center; }
.small-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.feature-checks { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 24px; }
.feature-checks li { display: flex; gap: 14px; }
.feature-checks li > span { width: 25px; height: 25px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; font-weight: 800; }
.feature-checks strong { font-size: 14px; }
.feature-checks p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.product-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; background: #f1f1f6; border-right: 1px solid var(--line); padding: 18px 13px 12px; display: flex; flex-direction: column; z-index: 10; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; padding: 0 9px 18px; }
.sidebar-brand .brand-mark { width: 29px; height: 29px; border-radius: 8px; font-size: 14px; }
.workspace-switch { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 10px; background: rgba(255,255,255,.7); margin-bottom: 17px; cursor: pointer; text-align: left; }
.workspace-switch:hover { background: white; box-shadow: 0 5px 16px rgba(17,17,22,.06); }
.workspace-switch > span:last-child { margin-left: auto; color: var(--muted); }
.workspace-avatar { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
.workspace-switch div { min-width: 0; display: grid; }
.workspace-switch strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch small { font-size: 10px; color: var(--muted); }
.nav-list { display: grid; gap: 2px; }
.nav-item { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 23px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: #5e5e6b; text-align: left; cursor: pointer; font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.75); color: var(--ink); }
.nav-item[hidden] { display: none; }
.nav-item.is-active { background: white; color: var(--brand-dark); box-shadow: 0 5px 16px rgba(17,17,22,.06); font-weight: 750; }
.agent-nav-item { display: none; }
.agent-nav-mark { width: 28px; height: 28px; border-radius: 10px; }
.agent-nav-item.has-agent-question .agent-nav-mark::after, .management-dock-rail.has-agent-question .agent-avatar::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255,177,38,.18); z-index: 2; }
.agent-nav-item.is-new-question .agent-nav-mark, .management-dock-rail.is-new-question .agent-avatar, .management-dock-head .agent-avatar.is-new-question { animation: agent-question-arrival .8s ease-out 2; }
@keyframes agent-question-arrival { 0% { transform: scale(1); box-shadow: 0 7px 20px rgba(108,59,255,.2); } 50% { transform: scale(1.055); box-shadow: 0 0 0 7px rgba(108,59,255,.12), 0 9px 28px rgba(255,79,116,.25); } 100% { transform: scale(1); box-shadow: 0 7px 20px rgba(108,59,255,.2); } }
.nav-icon { font-size: 16px; text-align: center; }
.nav-item b { min-width: 19px; border-radius: 99px; padding: 2px 5px; background: #e7e7ee; font-size: 10px; text-align: center; color: var(--muted); }
.nav-item b:empty { display: none; }
.sidebar-secondary { margin-top: auto; padding-top: 10px; min-height: 0; }
.sidebar-secondary-toggle { width: 100%; min-height: 44px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.sidebar-secondary-toggle:hover, .sidebar-secondary.is-expanded .sidebar-secondary-toggle { background: rgba(255,255,255,.72); color: var(--ink); }
.sidebar-secondary-toggle span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-secondary-toggle small { grid-column: 1; font-size: 9px; color: var(--faint); line-height: 1.2; }
.sidebar-secondary-toggle b { grid-column: 2; grid-row: 1 / span 2; color: var(--faint); font-size: 15px; transition: transform .18s ease; }
.sidebar-secondary.is-expanded .sidebar-secondary-toggle b { transform: rotate(180deg); }
.secondary-nav-list { display: grid; gap: 2px; max-height: min(440px, calc(100vh - 350px)); margin-top: 5px; overflow-y: auto; scrollbar-width: thin; }
.secondary-nav-list[hidden] { display: none; }
.sidebar-section { margin-top: 24px; padding: 0 10px; min-height: 0; overflow: auto; }
.sidebar-section > p { text-transform: uppercase; letter-spacing: .09em; color: #8c8c99; font-weight: 800; font-size: 9px; margin: 0 0 9px; }
.context-link, .context-add { width: 100%; border: 0; background: transparent; padding: 6px 0; text-align: left; color: #666672; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.context-link i { width: 7px; height: 7px; border-radius: 50%; }
.context-add { color: #8c8c99; margin-top: 4px; }
.sidebar-bottom { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.profile-button { width: 100%; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px; border-radius: 9px; cursor: pointer; text-align: left; }
.profile-button:hover { background: white; }
.profile-button > span:first-child { width: 31px; height: 31px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.profile-button div { display: grid; min-width: 0; }
.profile-button strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-button small { font-size: 10px; color: var(--muted); }
.profile-button > span:last-child { color: var(--faint); font-size: 10px; }
.main-shell { grid-column: 2; min-width: 0; margin-right: 52px; background: var(--paper); transition: margin-right .2s ease; }
.management-dock-open .main-shell { margin-right: 400px; }
.topbar { height: 74px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); position: sticky; top: 0; z-index: 8; backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 780; letter-spacing: -.035em; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-more-trigger { display: none; width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 12px; background: var(--soft); align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; box-shadow: 0 5px 16px rgba(17,17,22,.05); }
.mobile-more-trigger span { width: 16px; height: 2px; border-radius: 99px; background: var(--ink); }
.ai-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.ai-status i { width: 7px; height: 7px; border-radius: 50%; background: #56a37f; box-shadow: 0 0 0 3px #e8f4ee; }
.icon-button { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 4px; background: var(--soft); font-size: 9px; }
.page-content { max-width: 1110px; margin: 0 auto; padding: 28px 34px 70px; }
.section-tabs { display: flex; gap: 5px; margin: 0 0 24px; padding: 4px; width: fit-content; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.section-tabs button { border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 7px 12px; font-size: 11px; cursor: pointer; }
.section-tabs button.is-active { background: white; color: var(--brand); box-shadow: 0 4px 14px rgba(17,17,22,.07); font-weight: 750; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 0 0 13px; }
.section-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.heading-actions, .module-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.module-actions .button { min-height: 44px; padding: 10px 16px; }
.module-actions .icon-menu-button { width: 44px; height: 44px; border-radius: 10px; }
.module-actions.is-empty { justify-content: center; }
.module-actions.is-card { justify-content: flex-start; margin-top: auto; padding-top: 8px; }
.text-button { border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 12px; font-weight: 750; padding: 4px 0; }
.focus-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 18px; margin-bottom: 30px; }
.today-next-action { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 20px; border-radius: 18px; background: #111116; color: white; box-shadow: 0 16px 42px rgba(17,17,22,.12); }
.today-next-action > .agent-avatar { width: 44px; height: 44px; border-radius: 14px; }
.today-next-copy { min-width: 0; }
.today-next-copy > span { display: block; margin-bottom: 5px; color: #cdbfff; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.today-next-copy h2 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.015em; }
.today-next-copy p { margin: 5px 0 0; color: rgba(255,255,255,.64); font-size: 10px; line-height: 1.5; }
.today-next-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: rgba(255,255,255,.48); font-size: 9px; }
.today-next-meta b { padding: 4px 7px; border-radius: 99px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.82); font-weight: 700; }
.today-next-button { display: flex; justify-content: flex-end; }
.today-next-action .button.primary { white-space: nowrap; }
.priority-queue { margin-bottom: 30px; }
.priority-queue-head { align-items: flex-start; padding: 17px 20px 15px; }
.priority-queue-head > div { min-width: 0; }
.priority-queue-head h3 { font-size: 15px; }
.priority-queue-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.priority-queue-head > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-weight: 700; }
.priority-queue-list { display: grid; }
.priority-item-row { position: relative; min-width: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr); background: var(--surface); }
.priority-item-row:last-child { border-bottom: 0; }
.priority-item-row.is-card-clickable { cursor: pointer; }
.priority-item-row.is-next { padding-left: 22px; background: linear-gradient(90deg, rgba(108,59,255,.07), rgba(200,45,209,.022) 58%, transparent); }
.priority-item-row.is-next::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gradient); }
.priority-item-row.is-chat-selected { background: var(--violet-soft); }
.priority-item-row.is-overdue { padding-left: 22px; background: linear-gradient(90deg, var(--danger-soft) 0%, var(--violet-soft) 72%); }
.priority-item-row.is-overdue::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--danger); }
.priority-item-row.is-overdue.is-chat-selected { background: linear-gradient(90deg, var(--danger-soft) 0%, var(--violet-soft) 72%); }
.priority-item-copy { min-width: 0; }
.priority-item-labels { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 720; }
.priority-item-context { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.4; overflow-wrap: anywhere; }
.priority-item-rank { color: var(--violet-dark); font-size: 9px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.priority-item-rank::after { content: "·"; margin-left: 8px; color: var(--faint); }
.priority-item-deadline { margin-left: auto; color: var(--muted); font-weight: 680; text-transform: none; white-space: nowrap; }
.priority-item-deadline.is-late { color: var(--danger); font-weight: 800; }
.priority-item-main { width: 100%; min-width: 0; margin-top: 4px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.priority-item-title { display: block; color: var(--ink); font-size: 14px; font-weight: 740; line-height: 1.45; letter-spacing: -.012em; }
.priority-item-main p { max-width: 72ch; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.48; }
.priority-item-main:hover .priority-item-title, .priority-item-row.is-chat-selected .priority-item-title { color: var(--ink); }
.priority-item-main:focus-visible { outline: 1px solid var(--violet); outline-offset: 6px; border-radius: 6px; box-shadow: 0 0 0 4px rgba(108,59,255,.12); }
.priority-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.priority-action-label { color: var(--muted); font-size: 10px; font-weight: 720; white-space: nowrap; }
.action-card-proposal { display: grid; gap: 2px; margin-top: 7px; }
.action-card-proposal > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.action-card-proposal > strong { color: var(--ink); font-size: 12px; font-weight: 620; line-height: 1.5; }
.action-card-heading { min-width: 0; display: flex; align-items: center; gap: 8px; }
.action-card-heading .priority-item-main { width: auto; min-width: 0; flex: 0 1 auto; }
.action-card-reason { flex: 0 0 auto; margin-top: 4px; }
.action-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.action-card-footer.has-no-reason { justify-content: flex-end; }
.action-card-queue .priority-item-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 16px; align-items: start; }
.action-card-queue .priority-item-labels { grid-column: 1; grid-row: 1; }
.action-card-queue .action-card-heading { grid-column: 1; grid-row: 2; }
.action-card-queue .action-card-proposal { grid-column: 1; grid-row: 3; }
.action-card-queue .action-card-footer { display: contents; }
.action-card-queue .priority-item-actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end; }
.action-card-drawer { padding: 16px; border: 0; border-radius: 14px; background: var(--violet-soft); }
.action-card-drawer .priority-item-main { cursor: default; }
.action-card-drawer:last-child { border-bottom: 0; }
.action-card-drawer.is-next::before, .action-card-drawer.is-overdue::before { display: none; }
.drawer-action-card-list { display: grid; gap: 12px; }
.task-actions-section { padding-top: 0; }
.priority-action { min-height: 40px; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--violet-dark); font: inherit; font-size: 10px; font-weight: 780; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.priority-action:hover { background: var(--violet-soft); transform: translateY(-1px); }
.priority-action:active { transform: translateY(1px); }
.priority-action.is-primary { background: var(--violet-soft); color: var(--violet-dark); }
.priority-action.is-complete { background: var(--positive-soft); color: var(--positive); }
.priority-action.is-complete:hover { background: var(--positive-soft); color: var(--positive); }
.priority-action.is-deadline { min-height: 44px; border-radius: 11px; background: rgba(255,255,255,.82); color: var(--violet-dark); box-shadow: 0 4px 14px rgba(17,17,22,.07); }
.priority-action.is-deadline:hover { background: var(--surface); color: var(--violet-dark); box-shadow: 0 6px 18px rgba(17,17,22,.1); }
.priority-action.is-ghost { background: transparent; color: var(--muted); }
.priority-action:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.priority-action:disabled { opacity: .45; cursor: wait; transform: none; }
.priority-queue-controls { min-height: 58px; padding: 10px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; }
.priority-queue-controls > span { margin-left: auto; color: var(--faint); font-size: 9px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(17,17,22,.035); }
.panel-head { padding: 15px 17px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { margin: 0; font-size: 13px; }
.panel-head span { font-size: 10px; color: var(--muted); }
.empty-state { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; }
.empty-state h3 { color: var(--ink); font-size: 14px; margin: 0 0 6px; }
.empty-state p { font-size: 12px; margin: 0 auto 14px; max-width: 340px; line-height: 1.5; }
.task-list { display: grid; }
.task-row { display: grid; grid-template-columns: 23px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 13px 15px; border-bottom: 1px solid #edf0ee; transition: background .12s; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #fafcfb; }
.task-row.is-chat-selected { background: var(--violet-soft); }
.task-row.is-chat-selected .task-title { color: var(--violet-dark); }
.task-check { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid #aab6b1; background: transparent; margin-top: 2px; display: grid; place-items: center; font-size: 10px; color: transparent; cursor: pointer; }
.task-row[data-status="submitted"] .task-check { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.task-row[data-status="blocked"] .task-check { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.task-row[data-status="closed"] { opacity: .62; }
.task-row[data-status="closed"] .task-check { background: var(--positive); border-color: var(--positive); color: white; }
.task-main { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 8px; appearance: none; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.task-main:hover .task-title { color: var(--brand-dark); }
.task-main:focus-visible { outline: 3px solid rgba(108,59,255,.18); outline-offset: 4px; }
.task-title { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 10px; flex-wrap: wrap; }
.task-viewer-status { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.2; }
.task-viewer-status.is-wait_for_review,
.task-viewer-status.is-wait_for_acceptance { background: var(--violet-soft); color: var(--violet-dark); }
.task-viewer-status.is-review_result,
.task-viewer-status.is-revise_result,
.task-viewer-status.is-accept_assignment { background: var(--amber-soft); color: var(--amber); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; background: var(--soft); border-radius: 99px; color: #66736e; font-size: 9px; font-weight: 750; }
.tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.task-due { font-size: 10px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.task-due.is-late { color: var(--red); font-weight: 750; }
.task-side { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.task-details-button { width: 32px; height: 32px; margin-top: -5px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; letter-spacing: 1px; }
.task-details-button:hover { background: var(--soft); color: var(--ink); }
.priority-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); display: inline-block; }
.decision-list { padding: 6px 14px; }
.decision-item { padding: 11px 2px; border-bottom: 1px solid #edf0ee; display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: start; }
.decision-item:last-child { border: 0; }
.decision-icon { width: 23px; height: 23px; border-radius: 7px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; font-size: 11px; }
.decision-item strong { display: block; font-size: 11px; margin-bottom: 3px; }
.decision-item p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.4; }
.decision-item.agent-question-decision .decision-icon { background: var(--violet-soft, #f0ecff); color: var(--violet, #6c3bff); }
.decision-item.agent-question-decision.is-new-question { border-radius: 12px; animation: chat-question-arrival 1s ease-out 1; }
.decision-item.agent-question-decision.is-question { width: 100%; grid-template-columns: auto minmax(0, 1fr); border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; transition: background .15s ease, transform .15s ease; }
.decision-item.agent-question-decision.is-question:hover { background: var(--violet-soft); }
.decision-item.agent-question-decision.is-question:active { transform: translateY(1px); }
.decision-item.agent-question-decision.is-question:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.decision-question-copy { min-width: 0; display: block; }
.decision-question-copy > span { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
.decision-main-button { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.decision-main-button:hover strong { color: var(--brand); }
.decision-main-button:focus-visible { border-radius: 10px; }
.decision-item.is-recommendation .decision-main-button strong { font-size: 13px; line-height: 1.35; }
.decision-item.is-recommendation .decision-main-button p { font-size: 11px; line-height: 1.5; }
.decision-item.is-recommendation { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.decision-suggestion-label { display: block; margin-bottom: 8px; color: var(--violet-dark); font-size: 10px; line-height: 1.3; font-weight: 800; letter-spacing: .01em; }
.decision-proposal { display: block; margin: 4px 0 5px; color: var(--brand-dark); font-size: 11px; line-height: 1.4; }
.decision-proposal b { font-weight: 800; }
.decision-item.is-recommendation .decision-explanation { margin: 8px 0 5px; color: var(--ink); }
.decision-item.is-recommendation.is-preparing .decision-main-button { cursor: default; }
.decision-item.is-recommendation.is-preparing .decision-main-button:hover strong { color: inherit; }
.decision-preparing-status { display: flex; align-items: center; gap: 4px; margin: 10px 0 5px; color: var(--muted); font-size: 11px; font-weight: 720; }
.decision-preparing-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--gradient); animation: chat-thinking 1.1s infinite ease-in-out; }
.decision-preparing-status i:nth-child(2) { animation-delay: .14s; }
.decision-preparing-status i:nth-child(3) { animation-delay: .28s; margin-right: 4px; }
.decision-queue-note { display: block; margin-top: 6px; color: var(--faint); font-size: 9px; line-height: 1.35; }
.decision-direct-actions { display: flex; gap: 5px; align-self: center; }
.decision-action-button { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 11px; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); cursor: pointer; font-size: 18px; font-weight: 750; transition: transform .15s ease, background .15s ease, color .15s ease; }
.decision-item.is-recommendation .decision-direct-actions { width: 100%; align-self: auto; justify-content: center; gap: 8px; }
.decision-item.is-recommendation .decision-action-button { width: auto; min-width: 108px; height: 42px; padding: 0 16px; display: inline-flex; gap: 8px; font-size: 11px; }
.decision-item.is-recommendation .decision-action-button span { font-size: 16px; line-height: 1; }
.decision-action-button:hover { transform: translateY(-1px); }
.decision-action-button:active { transform: translateY(1px); }
.decision-action-button.approve { background: var(--violet-soft); color: var(--violet-dark); }
.decision-action-button.approve:hover { background: #e4dcff; }
.decision-action-button.reject:hover { background: var(--red-soft); color: var(--red); }
.decision-action-button:disabled { opacity: .45; cursor: wait; transform: none; }
.decision-item.is-recommendation.is-resolving .decision-main-button { opacity: .58; cursor: default; }
.decision-resolution-progress { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 720; }
.decision-resolution-progress i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 90deg, var(--violet), var(--coral), transparent 75%); position: relative; animation: decision-progress-spin .8s linear infinite; }
.decision-resolution-progress i::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; background: var(--surface); }
@keyframes decision-progress-spin { to { transform: rotate(360deg); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px rgba(17,17,22,.035); }
.metric-card span { font-size: 10px; color: var(--muted); }
.metric-card strong { display: block; font-size: 24px; letter-spacing: -.04em; margin: 8px 0 2px; }
.metric-card small { font-size: 9px; color: var(--faint); }
.today-pulse-heading { margin-top: 0; }
.metric-grid.is-secondary { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); margin-bottom: 30px; }
.metric-grid.is-secondary .metric-card { padding: 14px 15px; border: 0; background: var(--soft); box-shadow: none; }
.metric-grid.is-secondary .metric-card strong { font-size: 20px; margin: 6px 0 1px; }
.goal-list { display: grid; gap: 11px; }
.goal-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 19px; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.goal-card:hover { border-color: #c9bdf4; box-shadow: 0 12px 30px rgba(17,17,22,.06); transform: translateY(-1px); }
.goal-card-selectable { position: relative; padding: 0; overflow: hidden; }
.goal-card-main { display: block; width: 100%; padding: 19px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.goal-card-main:focus-visible { outline: 2px solid var(--violet); outline-offset: -4px; box-shadow: inset 0 0 0 5px rgba(108,59,255,.12); }
.goal-card-selectable.is-chat-selected { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 0 3px rgba(108,59,255,.14); transform: none; }
.goal-card-selectable.is-chat-selected:hover { border-color: var(--violet); transform: none; }
.goal-card-selectable.is-inactive { background: var(--surface-soft); }
.goal-card-selectable.is-inactive.is-chat-selected { background: var(--violet-soft); }
.goal-card-selectable.is-inactive:not(.is-chat-selected) { opacity: .76; }
.goal-planning-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 6px 10px; border: 0; border-radius: 999px; background: var(--violet-soft); color: var(--violet-dark); font: inherit; font-size: 9px; font-weight: 780; white-space: nowrap; }
button.goal-planning-pill { cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
button.goal-planning-pill::after { content: "↻"; margin-left: 6px; font-size: 10px; line-height: 1; opacity: .68; }
button.goal-planning-pill:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(108,59,255,.14); }
button.goal-planning-pill:active { transform: translateY(1px); }
button.goal-planning-pill:disabled { cursor: wait; opacity: .72; }
button.goal-planning-pill:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(108,59,255,.14); }
.goal-planning-pill.is-paused { background: var(--surface-soft); color: var(--muted); }
.goal-card-planning-control { position: absolute; z-index: 2; top: 19px; right: 19px; }
.goal-card-main .goal-top { padding-right: 82px; }
.goal-direction-description { margin: 14px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.goal-top { display: flex; justify-content: space-between; gap: 16px; }
.goal-top h3 { margin: 0; font-size: 13px; }
.goal-top p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.goal-percent { font-size: 17px; font-weight: 800; color: var(--brand); }
.progress-track { height: 5px; background: #edf1ef; border-radius: 99px; margin: 15px 0 9px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--gradient); border-radius: inherit; }
.goal-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filter-tabs { display: flex; gap: 5px; }
.filter-tab { border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 11px; cursor: pointer; }
.filter-tab.is-active { background: white; border-color: var(--line); color: var(--ink); font-weight: 750; }
.recurring-scope-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.recurring-scope-bar h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.recurring-scope-bar p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.recurring-scope-tabs { flex: 0 0 auto; padding: 3px; border-radius: 10px; background: var(--surface-soft); }
.recurring-scope-tabs .filter-tab { min-height: 36px; padding: 8px 14px; border-radius: 8px; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.agent-grid > .empty-state { grid-column: 1 / -1; }
.agent-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.agent-card-select { flex: 1; width: 100%; padding: 20px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.agent-card-select:hover { background: var(--surface-soft); }
.agent-card-select:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px rgba(108,59,255,.18); }
.agent-card-select > p { margin: 16px 0 8px; font-size: 13px; line-height: 1.55; }
.agent-card-select > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.agent-card-select .person-contexts .muted { font-size: 11px; }
.agent-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.row-button { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.row-button:hover { background: var(--surface-soft); }
.agent-run-summary { display:grid; gap:4px; margin-top:12px; color:var(--muted); font-size:12px; line-height:1.45; }
.agent-run-summary strong { color:var(--ink); font-weight:700; }
.row-button:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px rgba(108,59,255,.18); }
.person-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.person-card:hover { border-color: #c9bdf4; }
.compact-person-card { min-height: 0; padding: 14px 15px 12px; cursor: pointer; transition: border-color .15s,box-shadow .15s,transform .15s; }
.compact-person-card:hover { border-color: #c1b2f4; box-shadow: 0 10px 28px rgba(108,59,255,.08); transform: translateY(-1px); }
.compact-person-card.is-chat-selected { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 0 3px rgba(108,59,255,.14); transform: none; }
.compact-person-card.is-chat-selected:hover { border-color: var(--violet); transform: none; }
.compact-person-card:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(108,59,255,.14); }
.compact-responsibilities { margin-top: 12px; min-height: 20px; }
.compact-responsibilities .muted { font-size: 9px; }
.person-capacity-summary { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding: 11px 12px 14px; overflow: hidden; border-radius: 12px; background: var(--surface-soft); }
.person-capacity-summary > div { display: grid; gap: 2px; min-width: 0; }
.person-capacity-summary span, .person-capacity-summary small { color: var(--muted); font-size: 9px; }
.person-capacity-summary strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.person-capacity-summary > i { position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--violet) var(--capacity), var(--line) var(--capacity)); }
.person-capacity-summary.is-overloaded { background: var(--danger-soft); }
.person-capacity-summary.is-overloaded > i { background: var(--danger); }
.person-availability { margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--violet-soft); color: var(--violet-dark); font-size: 11px; font-weight: 700; }
.person-compact-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.person-compact-footer > div { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.person-compact-footer strong { color: var(--ink); font-size: 10px; }
.person-compact-footer b { color: var(--brand); font-size: 9px; }
.attention-pill { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; background: var(--amber-soft); color: #90652c; font-size: 8px; font-weight: 750; }
.person-head { display: flex; gap: 10px; align-items: center; }
.person-head-copy { min-width: 0; flex: 1; }
.person-menu-button, .icon-menu-button { width: 29px; height: 29px; flex: 0 0 auto; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; }
.person-menu-button:hover, .icon-menu-button:hover { background: var(--soft); color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.avatar.is-small { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; flex: 0 0 auto; }
.meeting-participant-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px; }
.meeting-participant-picker legend { margin-bottom: 8px; font-weight: 700; }
.meeting-participant-picker .checkbox-label { min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--surface-soft); }
.meeting-assignment-mode { align-self: end; min-height: 44px; display: flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-dark); font-size: 12px; font-weight: 700; }
.person-head h3 { margin: 0; font-size: 13px; }
.person-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.person-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 14px; }
.person-stat { padding: 9px; background: var(--soft); border-radius: 8px; }
.person-stat strong { display: block; font-size: 14px; }
.person-stat span { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.person-contexts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; min-height: 19px; }
.person-capacity-detail > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.capacity-split { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.capacity-split > div { display: grid; gap: 3px; padding: 10px; border-radius: 10px; background: var(--surface-soft); }
.capacity-split span { color: var(--muted); font-size: 9px; }
.capacity-split strong { color: var(--ink); font-size: 13px; }
.capacity-days { height: 110px; display: grid; grid-template-columns: repeat(14, minmax(8px,1fr)); align-items: end; gap: 5px; margin-top: 16px; padding-top: 8px; }
.capacity-day { height: 90px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
.capacity-day i { display: block; min-height: 2px; border-radius: 5px 5px 2px 2px; background: var(--violet); opacity: .78; }
.capacity-day.is-overloaded i { background: var(--danger); opacity: 1; }
.capacity-day span { color: var(--faint); font-size: 8px; text-align: center; }
.capacity-privacy-note { margin: 10px 0 0; color: var(--faint); font-size: 9px; line-height: 1.45; }
.capacity-matrix-panel { overflow: hidden; }
.capacity-matrix { display: grid; }
.capacity-matrix-head, .capacity-matrix-row { display: grid; grid-template-columns: minmax(180px,1.3fr) minmax(90px,.7fr) minmax(100px,.8fr) minmax(70px,.5fr) minmax(260px,1.8fr); align-items: center; gap: 16px; padding: 12px 20px; }
.capacity-matrix-head { color: var(--faint); background: var(--surface-soft); font-size: 10px; font-weight: 750; }
.capacity-matrix-row { width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.capacity-matrix-row:hover { background: var(--violet-soft); }
.capacity-matrix-row:focus-visible { position: relative; outline: 1px solid var(--violet); box-shadow: inset 0 0 0 3px rgba(108,59,255,.18); }
.capacity-matrix-row > span:not(.capacity-mini-days), .capacity-person { min-width: 0; display: grid; gap: 2px; }
.capacity-matrix-row b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.capacity-matrix-row small { color: var(--muted); font-size: 9px; }
.capacity-mini-days { height: 30px; display: grid; grid-template-columns: repeat(14,minmax(6px,1fr)); align-items: end; gap: 3px; }
.capacity-mini-days i { height: max(3px,var(--load)); max-height: 30px; border-radius: 3px 3px 1px 1px; background: var(--violet); opacity: .8; }
.capacity-mini-days i.is-over { background: var(--danger); }
.capacity-matrix-empty { padding: 24px 20px; color: var(--muted); }
.person-capacity-actions { margin-top: 16px; }
.person-capacity-agenda { margin-top: 24px; }
.person-capacity-agenda-head h3 { margin: 0; font-size: 14px; }
.person-capacity-agenda-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.capacity-agenda-days { display: grid; gap: 10px; margin-top: 14px; }
.capacity-agenda-day { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.capacity-agenda-day > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: var(--surface-soft); }
.capacity-agenda-day > header span { display: grid; gap: 2px; }
.capacity-agenda-day > header strong { font-size: 11px; }
.capacity-agenda-day > header small { color: var(--muted); font-size: 9px; }
.capacity-agenda-day > header b { color: var(--violet-dark); font-size: 12px; }
.capacity-agenda-day.is-overloaded > header { background: var(--danger-soft); }
.capacity-agenda-day.is-overloaded > header b { color: var(--danger); }
.capacity-agenda-items { display: grid; padding: 4px 12px 10px; }
.capacity-agenda-item { width: 100%; min-height: 40px; display: flex; align-items: center; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; }
.capacity-agenda-item > span { min-width: 0; display: grid; gap: 2px; }
.capacity-agenda-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.capacity-agenda-item small { color: var(--muted); font-size: 9px; }
button.capacity-agenda-item { cursor: pointer; }
button.capacity-agenda-item:hover strong { color: var(--violet-dark); }
button.capacity-agenda-item:focus-visible { border-radius: 8px; outline: 2px solid var(--violet); outline-offset: 2px; }
.capacity-agenda-empty { margin: 9px 0 3px; color: var(--faint); font-size: 9px; }
.capacity-agenda-balance { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; color: var(--muted); font-size: 9px; }
.capacity-agenda-balance strong { color: var(--positive); }
.capacity-agenda-balance.is-over strong { color: var(--danger); }
.team-plan-panel { overflow: hidden; }
.team-plan-scroll { overflow-x: auto; }
.team-plan-grid { min-width: 1240px; }
.team-plan-head, .team-plan-row { display: grid; grid-template-columns: minmax(180px,1.15fr) repeat(7,minmax(145px,1fr)); }
.team-plan-head { background: var(--surface-soft); color: var(--faint); font-size: 10px; font-weight: 750; }
.team-plan-head > span { padding: 11px 10px; }
.team-plan-head > span:first-child { padding-left: 20px; }
.team-plan-row { border-top: 1px solid var(--line); }
.team-plan-person { min-height: 118px; display: grid; align-content: start; gap: 3px; padding: 14px 12px 14px 20px; border: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.team-plan-person strong { font-size: 12px; }
.team-plan-person small { color: var(--muted); font-size: 9px; }
.team-plan-person:hover, .team-plan-person:focus-visible { background: var(--violet-soft); }
.team-plan-person:focus-visible, .team-plan-item:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.team-plan-day { min-width: 0; min-height: 118px; display: grid; align-content: start; gap: 7px; padding: 10px; border-left: 1px solid var(--line); background: var(--surface); }
.team-plan-day.is-overloaded { background: var(--danger-soft); }
.team-plan-day-open { width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.team-plan-day-open:hover { color: var(--violet-dark); }
.team-plan-day-open:focus-visible, .team-plan-more:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.team-plan-load { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.team-plan-load strong { font-size: 12px; }
.team-plan-load span, .team-plan-day > small, .team-plan-breakdown { color: var(--muted); font-size: 8px; }
.team-plan-breakdown { display: block; line-height: 1.35; }
.team-plan-day.is-overloaded .team-plan-load strong, .team-plan-day.is-overloaded > small { color: var(--danger); }
.team-plan-items { min-width: 0; display: grid; gap: 4px; }
.team-plan-item { width: 100%; min-width: 0; min-height: 28px; display: block; padding: 5px 7px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--ink); font: inherit; text-align: left; }
button.team-plan-item { cursor: pointer; }
button.team-plan-item:hover { background: var(--violet-soft); color: var(--violet-dark); }
.team-plan-item > span { min-width: 0; display: grid; gap: 1px; }
.team-plan-item strong { display: -webkit-box; overflow: hidden; font-size: 8px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.team-plan-item small { color: var(--muted); font-size: 7px; }
.team-plan-item.is-busy { color: var(--muted); }
.team-plan-item.is-outcome-work { position: relative; background: var(--violet-soft); color: var(--violet-dark); }
.team-plan-outcome-group { min-width: 0; display: grid; gap: 3px; }
.team-plan-item.is-outcome-parent, .capacity-agenda-item.is-outcome-parent { position: relative; isolation: isolate; background: var(--violet-soft); color: var(--violet-dark); }
.team-plan-item.is-outcome-parent::after, .capacity-agenda-item.is-outcome-parent::after, .team-plan-item.is-outcome-work::after { content: ""; position: absolute; inset: 3px; z-index: 0; border: 1px dashed rgba(108,59,255,.38); border-radius: 6px; pointer-events: none; }
.team-plan-outcome-children { min-width: 0; display: grid; gap: 3px; margin-left: 7px; padding-left: 6px; border-left: 2px solid rgba(108,59,255,.18); }
.team-plan-item.is-outcome-child { background: var(--surface-soft); color: var(--ink); }
.team-plan-empty { padding: 5px 2px; color: var(--faint); font-size: 8px; }
.team-plan-more { width: max-content; padding: 2px 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 8px; font-weight: 700; text-align: left; cursor: pointer; }
.team-plan-more:hover { color: var(--violet-dark); }
.team-plan-mobile { display: none; }
.capacity-day-detail { display: grid; gap: 16px; }
.capacity-day-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.capacity-day-summary > div { display: grid; gap: 3px; padding: 12px; border-radius: 10px; background: var(--surface-soft); }
.capacity-day-summary span { color: var(--muted); font-size: 9px; }
.capacity-day-summary strong { font-size: 14px; }
.capacity-day-detail.is-overloaded .capacity-day-summary > div:last-child { background: var(--danger-soft); color: var(--danger); }
.performance-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.performance-lenses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.performance-lenses > div { border-radius: 9px; padding: 10px; background: var(--soft); display: grid; gap: 3px; }
.performance-lenses span { color: var(--muted); font-size: 9px; }
.performance-lenses strong { color: var(--ink); font-size: 18px; }
.performance-lenses strong.good { color: var(--positive); }
.performance-lenses strong.warn { color: var(--red); }
.performance-lenses small { color: var(--faint); font-size: 8px; }
.person-model-section { padding-top: 11px; margin-top: 10px; border-top: 1px solid var(--line); }
.person-model-section > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.person-model-section > div:first-child > strong { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.person-model-section .person-contexts { margin-top: 8px; }
.person-model-section .muted, .person-model-section .model-empty { font-size: 9px; }
.chat-managed-area { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.chat-managed-area:hover .chat-empty { color: var(--brand); }
.chat-managed-area:hover .tag { background: var(--brand-soft); color: var(--brand-dark); }
.chat-empty { display: block; padding: 8px 9px; border: 1px dashed #cedbd6; border-radius: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; transition: color .15s,border-color .15s,background .15s; }
.chat-empty:hover { border-color: #c1b2f4; background: var(--brand-soft); }
.person-kpi-list { margin-top: 7px; display: grid; gap: 5px; }
.person-kpi-list > button { width: 100%; border: 0; border-radius: 8px; background: var(--soft); padding: 8px; display: flex; justify-content: space-between; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.person-kpi-list > button:hover { background: var(--brand-soft); }
.person-kpi-list span { min-width: 0; display: grid; gap: 2px; }
.person-kpi-list strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-kpi-list small { color: var(--muted); font-size: 8px; text-transform: capitalize; }
.person-kpi-list b { flex: 0 0 auto; font-size: 10px; color: var(--brand); }
.person-goal-list { margin-top: 7px; display: grid; gap: 7px; }
.person-goal-list > div, .person-goal-list > button { display: grid; gap: 2px; }
.person-goal-list > button { width: 100%; padding: 6px 7px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.person-goal-list > button:hover { background: var(--brand-soft); }
.person-goal-list strong { font-size: 10px; }
.person-goal-list span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.manual-tool-list { display: grid; gap: 8px; }
.manual-tool-list .button { width: 100%; justify-content: flex-start; }
.account-preferences { margin-top: 14px; }
.preference-toggle { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; }
.preference-toggle > span { flex: 1; display: grid; gap: 3px; }
.preference-toggle strong { font-size: 11px; }
.preference-toggle small { color: var(--muted); font-size: 9px; line-height: 1.4; font-weight: 400; }
.preference-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.preference-toggle i { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 99px; background: #d7dfdc; transition: background .18s ease; }
.preference-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(20,45,38,.2); transition: transform .18s ease; }
.preference-toggle input:checked + i { background: var(--brand); }
.preference-toggle input:checked + i::after { transform: translateX(16px); }
.preference-toggle input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.preference-toggle input:disabled + i { opacity: .55; }
.preference-select { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.preference-select > span { flex: 1; min-width: 0; display: grid; gap: 3px; }
.preference-select strong { font-size: 11px; }
.preference-select small { color: var(--muted); font-size: 9px; line-height: 1.4; font-weight: 400; }
.preference-select select { flex: 0 0 auto; width: 132px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font: inherit; font-size: 10px; font-weight: 700; }
.preference-select select:focus-visible { outline: 3px solid rgba(108,59,255,.18); box-shadow: inset 0 0 0 1px var(--brand); }
.preference-select select:disabled { opacity: .55; }
.preference-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.preference-action > span { min-width: 0; display: grid; gap: 3px; }
.preference-action strong { font-size: 11px; }
.preference-action small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.permission-context-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.permission-context-list .checkbox-label { min-height: 44px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 11px; }
.permission-context-list .checkbox-label:focus-within { box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.workspace-module-settings { margin-top: 14px; }
.workspace-module-settings > p { margin: 2px 0 8px; font-size: 9px; line-height: 1.45; }
.module-setting-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.module-setting-row > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.module-setting-row strong { font-size: 10px; }
.module-setting-row small { color: var(--muted); font-size: 8px; line-height: 1.35; font-weight: 400; }
.module-setting-row select { width: 82px; padding: 6px 8px; font-size: 9px; }
.person-detail-view { display: grid; gap: 14px; }
.adaptive-checkins-card { padding: 16px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); }
.adaptive-checkins-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.adaptive-checkins-head > div { display: grid; gap: 4px; min-width: 0; }
.adaptive-checkins-head strong { color: var(--brand-dark); font-size: 13px; }
.adaptive-checkins-head > div > span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.adaptive-checkins-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.adaptive-checkins-grid > div,.adaptive-channel-select { min-width: 0; padding: 10px 11px; border-radius: 10px; background: rgba(255,255,255,.72); display: grid; gap: 4px; }
.adaptive-checkins-grid small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.adaptive-checkins-grid strong { font-size: 11px; line-height: 1.35; }
.adaptive-channel-select select { width: 100%; min-height: 28px; padding: 0 28px 0 0; border: 0; background-color: transparent; color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; }
.adaptive-channel-select select:focus-visible { outline: 3px solid rgba(108,59,255,.18); outline-offset: 3px; border-radius: 6px; }
.adaptive-channel-select select:disabled { opacity: .55; }
.adaptive-channel-select { grid-column: 1 / -1; }
.person-detail-scores { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.person-detail-scores > div { padding: 11px; border-radius: 9px; background: var(--soft); display: grid; gap: 4px; }
.person-detail-scores span { color: var(--muted); font-size: 9px; }
.person-detail-scores strong { color: var(--brand); font-size: 18px; }
.person-detail-view > section { padding-top: 13px; border-top: 1px solid var(--line); }
.person-detail-view > section > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.person-detail-view h3 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.person-detail-view section > article { padding: 8px 0; }
.person-detail-view section > article strong { font-size: 9px; color: var(--brand); }
.person-detail-view section > article p { margin: 3px 0 0; font-size: 10px; line-height: 1.45; }
.person-detail-view section > .muted { margin: 8px 0 0; font-size: 9px; }
.person-detail-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border: 0; border-radius: 8px; background: var(--soft); color: inherit; text-align: left; cursor: pointer; }
.person-detail-row + .person-detail-row { margin-top: 5px; }
.person-detail-row:hover { border-color: #c1b2f4; background: var(--brand-soft); }
.person-detail-row span { display: grid; gap: 2px; }
.person-detail-row strong { font-size: 10px; }
.person-detail-row small { color: var(--muted); font-size: 8px; }
.person-detail-row b { flex: 0 0 auto; color: var(--brand); font-size: 10px; }
.goal-contributors { margin-top: 9px; color: var(--muted); font-size: 9px; }
.goal-health { display: flex; align-items: center; gap: 8px; }
.health-pill { border-radius: 99px; padding: 4px 7px; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.health-on_track { background: var(--positive-soft); color: var(--positive); }
.health-at_risk { background: #fff1d9; color: #8b5a13; }
.health-off_track { background: #fbe4e2; color: #9b3f38; }
.health-insufficient_information { background: #eef1f0; color: var(--muted); }
.goal-forecast { margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: var(--surface); display: grid; gap: 3px; }
.goal-forecast strong { font-size: 9px; }
.goal-forecast span, .goal-forecast small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.work-family-list .work-tree { display: grid; gap: 12px; }
.work-family-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.work-family-card > .task-row { padding: 18px 20px; border-bottom: 0; }
.work-family-card > .task-row .task-title { font-size: 15px; font-weight: 780; }
.work-tree-node.has-children > .task-row .task-title { font-weight: 800; }
.work-tree-details { border-top: 1px solid var(--line); }
.work-tree-details > summary { min-height: 36px; margin: 0; padding: 9px 20px 9px 52px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.work-tree-details > summary::-webkit-details-marker { display: none; }
.work-tree-details > summary::before { content: "▾"; margin-right: 6px; color: var(--brand); }
.work-tree-details:not([open]) > summary::before { content: "▸"; }
.work-tree-children { margin: 4px 16px 12px 48px; border-left: 2px solid rgba(108,59,255,.16); }
.work-tree-children .task-row { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.work-tree-children .work-tree-child-node:last-child > .task-row { border-bottom: 0; }
.work-tree-children .task-title { font-size: 13px; }
.work-tree-children .task-meta { margin-top: 4px; }
.task-outcome-progress { color: var(--violet-dark); font-weight: 760; }
.task-child-progress, .task-sync { color: var(--muted); font-weight: 720; }
.task-external-link { width: 28px; height: 28px; margin-top: -3px; border-radius: 9px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-dark); text-decoration: none; }
.recently-completed { margin-top: 20px; }
.automatic-changes-panel { margin-top: 20px; }
.automatic-change-list { display: grid; }
.automatic-change-row { min-width: 0; padding: 14px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.automatic-change-row:last-child { border-bottom: 0; }
.automatic-change-row > div { min-width: 0; display: grid; gap: 3px; }
.automatic-change-row b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.automatic-change-row span { color: var(--violet-dark); font-size: 10px; font-weight: 750; }
.automatic-change-row small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.automatic-change-row .button { margin-left: auto; }
.report-thread-heading { display: flex; justify-content: space-between; gap: 16px; }
.report-thread-heading > div > p { color: var(--muted); font-size: 10px; }
.report-thread-heading > span { flex: 0 0 auto; color: var(--faint); font-size: 9px; }
.report-messages { display: grid; gap: 9px; margin-top: 14px; }
.report-message { max-width: 92%; padding: 11px 12px; border-radius: 13px; background: var(--surface-soft); }
.report-message.is-agent { background: var(--violet-soft); }
.report-message.is-employee { margin-left: auto; background: var(--ink-soft); color: white; }
.report-message.is-optimistic { animation: report-message-arrival .18s ease-out; }
.report-message.is-pending { color: var(--muted); opacity: .78; animation: report-thinking 1.1s ease-in-out infinite alternate; }
.report-message.is-queued, .agent-message.is-queued { opacity: .78; }
.report-message.is-failed, .agent-message.is-failed { opacity: 1; }
.chat-delivery-state { display: block; margin-top: 6px; color: var(--faint); font-size: 9px; font-weight: 700; }
.agent-message.user .chat-delivery-state { color: var(--muted); text-align: right; }
.report-message.is-employee .chat-delivery-state { color: rgba(255,255,255,.72); text-align: right; }
.queue-message-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 7px; }
.queue-message-actions button { min-height: 28px; padding: 5px 9px; border: 0; border-radius: 8px; background: rgba(255,255,255,.16); color: inherit; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.agent-message.user .queue-message-actions button { background: var(--surface-soft); color: var(--muted); }
.agent-message.user .queue-message-actions button:hover { background: var(--violet-soft); color: var(--violet-dark); }
.queue-message-actions button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@keyframes report-message-arrival { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes report-thinking { from { opacity: .5; } to { opacity: .86; } }
.report-message header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.report-message header strong, .report-message header span { font-size: 8px; text-transform: capitalize; }
.report-message header span { color: var(--faint); }
.report-message.is-employee header span { color: rgba(255,255,255,.6); }
.report-message p { font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.report-empty { margin-top: 12px; padding: 13px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 10px; line-height: 1.5; }
.work-report-composer { display: grid; gap: 10px; margin-top: 14px; }
.report-composer-shell { padding: 7px; border: 1px solid var(--line-strong); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(17,17,22,.05); transition: border-color .15s ease, box-shadow .15s ease; }
.report-composer-shell:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18), 0 10px 28px rgba(17,17,22,.06); }
.report-composer-shell > textarea { width: 100%; min-height: 64px; max-height: 160px; padding: 9px 10px; border: 0; border-radius: 11px; outline: 0; resize: vertical; background: transparent; box-shadow: none; font-size: 13px; line-height: 1.5; }
.report-composer-shell > textarea:focus { border: 0; outline: 0; box-shadow: none; }
.report-composer-shell .composer-attachments { padding: 0 7px 7px; }
.report-composer-actions { display: flex; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.report-composer-actions .composer-tools { display: flex; align-items: center; gap: 6px; }
.report-composer-actions > span { min-width: 0; flex: 1; color: var(--muted); font-size: 9px; text-align: center; }
.report-composer-actions label { display: flex; align-items: center; gap: 7px; margin-right: auto; color: var(--muted); font-size: 10px; }
.report-composer-actions select { min-height: 40px; padding: 0 30px 0 10px; border: 0; border-radius: 10px; background: var(--surface-soft); }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--surface-soft); cursor: pointer; }
.report-composer-actions .button { min-height: 42px; }
.report-composer-actions .voice-button.is-icon-only { flex: 0 0 42px; }
.manual-result-fallback { padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); }
.manual-result-fallback summary { cursor: pointer; color: var(--muted); font-size: 10px; }
.manual-result-fallback label { display: grid; gap: 5px; margin-top: 10px; font-size: 10px; }
.criteria-review, .report-evidence { display: grid; gap: 7px; margin-top: 14px; }
.criteria-review h4, .report-evidence h4 { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.criteria-review > div { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 3px 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); }
.criteria-review > div strong { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.criteria-review > div span { font-size: 10px; font-weight: 700; }
.criteria-review > div small { grid-column: 2; color: var(--muted); font-size: 9px; }
.criteria-review > div[data-status="met"] strong { color: var(--positive); }
.criteria-review > div[data-status="not_met"] strong { color: var(--red); }
.report-evidence { grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-evidence h4 { grid-column: 1 / -1; }
.report-evidence a, .report-evidence span { padding: 8px 10px; border-radius: 9px; background: var(--surface-soft); color: var(--brand-dark); font-size: 9px; text-decoration: none; }
.parent-progress > div:first-child { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.parent-progress strong { font-size: 18px; }
.parent-progress span { color: var(--muted); font-size: 9px; }
.external-work-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 11px; background: var(--violet-soft); color: var(--ink); text-decoration: none; font-size: 10px; }
.external-work-card strong { color: var(--violet-dark); text-transform: capitalize; }
.dependency-list { display: grid; gap: 6px; }
.dependency-list button { width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: var(--surface-soft); text-align: left; font-size: 10px; cursor: pointer; }
.dependency-list > div { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: var(--surface-soft); font-size: 11px; }
.dependency-list > div span { color: var(--muted); }
.reason-popover { position: relative; width: fit-content; margin: 0; }
.reason-popover summary { min-height: 32px; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
.reason-popover summary::-webkit-details-marker { display: none; }
.reason-popover summary:hover { background: rgba(108,59,255,.08); color: var(--violet-dark); }
.reason-popover summary:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.reason-popover-content { display: none; position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: max-content; max-width: min(320px, calc(100vw - 64px)); padding: 9px 11px; border-radius: 10px; background: var(--ink-soft); box-shadow: 0 12px 28px rgba(17,17,22,.16); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.45; }
.reason-popover[open] .reason-popover-content,
.reason-popover:hover .reason-popover-content,
.reason-popover:focus-within .reason-popover-content { display: block; }
.proposal-icon-actions { gap: 6px; }
.proposal-icon-action { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 11px; background: rgba(255,255,255,.82); color: var(--ink-soft); box-shadow: 0 4px 14px rgba(17,17,22,.07); cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.proposal-icon-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proposal-icon-action.is-accept { background: rgba(108,59,255,.12); color: var(--violet-dark); }
.proposal-icon-action.is-postpone:hover { background: var(--surface); color: var(--violet-dark); box-shadow: 0 6px 18px rgba(17,17,22,.1); transform: translateY(-1px); }
.proposal-icon-action.is-accept:hover { background: rgba(108,59,255,.18); transform: translateY(-1px); }
.proposal-icon-action.is-dismiss { background: rgba(255,255,255,.58); color: var(--muted); box-shadow: none; }
.proposal-icon-action.is-compact-text { color: var(--violet-dark); font: inherit; font-size: 10px; font-weight: 780; }
.proposal-icon-action.is-dismiss:hover { background: var(--surface-soft); color: var(--ink); transform: translateY(-1px); }
.proposal-icon-action:active { transform: translateY(1px) !important; }
.proposal-icon-action:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.proposal-icon-action:disabled { opacity: .45; cursor: wait; transform: none; }
.breakdown-preview { display: grid; gap: 8px; }
.breakdown-preview article { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.breakdown-preview article > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-dark); font-weight: 800; }
.breakdown-preview strong, .breakdown-preview p, .breakdown-preview small { display: block; }
.breakdown-preview p { margin: 5px 0; color: var(--muted); font-size: 10px; }
.breakdown-preview small { color: var(--violet-dark); font-size: 9px; }
.breakdown-preview ul { margin: 7px 0 0; padding-left: 16px; font-size: 9px; }
.schedule-preview { display: grid; gap: 8px; margin-top: 14px; }
.schedule-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-soft); }
.schedule-row > div { min-width: 0; display: grid; gap: 4px; }
.schedule-row > div:last-child { flex: 0 0 auto; text-align: right; }
.schedule-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-row span { color: var(--muted); font-size: 10px; }
.schedule-empty { display: grid; place-items: center; gap: 5px; min-height: 120px; padding: 24px; border-radius: 14px; background: var(--surface-soft); text-align: center; }
.schedule-empty strong { font-size: 13px; }
.schedule-empty span { max-width: 420px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.goal-page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.child-work-list { display: grid; gap: 5px; margin-top: 12px; }
.child-work-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 11px; background: var(--surface-soft); color: var(--ink); text-align: left; cursor: pointer; }
.child-work-row:hover { background: var(--violet-soft); }
.child-work-row > span:last-child { min-width: 0; display: grid; gap: 3px; }
.child-work-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.child-work-row small { color: var(--muted); font-size: 9px; }
.child-status { width: 9px; height: 9px; border-radius: 999px; background: var(--faint); }
.child-status-closed { background: var(--positive); }
.child-status-in_progress, .child-status-accepted { background: var(--violet); }
.child-status-blocked { background: var(--red); }
@media (max-width: 700px) {
  .schedule-row { align-items: start; }
  .schedule-row { padding: 12px; }
  .goal-page-actions { justify-content: flex-start; }
}
.connected-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.organization-hub-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; padding: 20px; border: 1px solid #ded7f4; border-radius: 16px; background: linear-gradient(135deg,#f7f4ff,#fff); }
.organization-hub-card h2 { margin: 4px 0 6px; font-size: 17px; }
.organization-hub-card p { margin: 0; max-width: 760px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.hub-workspaces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.hub-workspaces span { padding: 5px 8px; border-radius: 99px; background: white; border: 1px solid var(--line); color: var(--brand-dark); font-size: 8px; text-transform: capitalize; }
.connected-team-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.connected-team-card h3 { margin: 0; font-size: 12px; }
.connected-team-card p { margin: 4px 0 0; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.workspace-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 800; }
.team-invitations { margin-bottom: 26px; }
.team-invite-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border-top: 1px solid var(--line); }
.team-invite-row strong, .team-invite-row span { display: block; }
.team-invite-row strong { margin-bottom: 4px; font-size: 12px; }
.team-invite-row span { color: var(--muted); font-size: 9px; }
.pending-team-invites { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 11px; padding: 11px 13px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 9px; }
.pending-team-invites strong { color: var(--ink); }
.organization-people-grid { align-items: start; }
.organization-workspace-list { display: grid; gap: 6px; margin-top: 8px; }
.organization-workspace-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; background: var(--soft); }
.organization-workspace-list span { color: var(--ink); font-size: 9px; }
.organization-workspace-list b { color: var(--muted); font-size: 8px; font-weight: 600; text-align: right; }
.teams-section { margin-top: 30px; }
.workspace-commitments { display: grid; gap: 11px; }
.workspace-commitment-card { padding: 17px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.commitment-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.commitment-head > div > span { color: var(--muted); font-size: 9px; }
.commitment-head h3 { margin: 5px 0 0; font-size: 14px; }
.workspace-commitment-card > p { margin: 12px 0; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.commitment-criteria { padding: 9px 11px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 9px; line-height: 1.5; }
.commitment-criteria strong { margin-right: 7px; color: var(--ink); }
.commitment-progress { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 14px; }
.commitment-progress > i { height: 5px; overflow: hidden; border-radius: 99px; background: #edf1ef; }
.commitment-progress b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.commitment-progress span { color: var(--muted); font-size: 9px; font-weight: 750; }
.commitment-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.latest-team-report { margin-top: 14px; padding: 11px 12px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; background: var(--brand-soft); }
.latest-team-report strong { font-size: 9px; text-transform: capitalize; }
.latest-team-report p { margin: 5px 0; font-size: 10px; line-height: 1.5; }
.latest-team-report span, .latest-team-report a { display: block; color: var(--muted); font-size: 9px; }
.commitment-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.status-accepted, .status-in_progress, .status-submitted { background: var(--blue-soft); color: var(--blue); }
.recurrence-row { display: grid; width: 100%; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.recurrence-row:hover { background: var(--surface-soft); }
.recurrence-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.recurrence-row:last-child { border: 0; }
.recurrence-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.recurrence-main strong { display: block; font-size: 14px; }
.recurrence-main span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.recurrence-next { text-align: right; color: var(--muted); font-size: 11px; line-height: 1.4; }
.score-table { width: 100%; border-collapse: collapse; background: white; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.score-table th, .score-table td { text-align: left; padding: 12px 13px; border-bottom: 1px solid var(--line); font-size: 11px; }
.score-table th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; background: var(--soft); }
.score-table tr:last-child td { border: 0; }
.score-value { font-weight: 800; }
.score-value.good { color: var(--positive); }
.score-value.warn { color: var(--amber); }
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.integration-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.integration-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.integration-card h3 { font-size: 13px; margin: 12px 0 5px; }
.integration-card p { color: var(--muted); font-size: 10px; line-height: 1.5; min-height: 31px; }
.connection-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.connection-line > span:first-child { display: grid; gap: 2px; }
.connection-line small { color: var(--muted); font-size: 8px; font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 7px; background: var(--soft); color: var(--muted); font-size: 8px; font-weight: 750; text-transform: capitalize; white-space: nowrap; }
.status-connected, .status-confirmed, .status-completed, .status-approved { background: var(--positive-soft); color: var(--positive); }
.status-configuration_required, .status-needs_approval, .status-review, .status-pending { background: var(--amber-soft); color: var(--amber); }
.status-error, .status-failed, .status-rejected, .status-blocked { background: #f7e8e8; color: var(--red); }
.meeting-action { display: grid; gap: 9px; }
.meeting-action .form-grid { margin-left: 24px; }
.meeting-action p { margin: 0 0 0 24px; font-size: 9px; line-height: 1.45; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(17,17,22,.22); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 20; backdrop-filter: blur(3px); }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; width: min(520px, 100%); height: 100vh; background: white; box-shadow: var(--shadow); transform: translateX(102%); transition: transform .22s ease; z-index: 21; overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: start; gap: 12px; }
.drawer-head > div { flex: 1; }
.drawer-head h2 { font-size: 19px; line-height: 1.3; margin: 7px 0 6px; letter-spacing: -.02em; }
.drawer-head p { margin: 0; color: var(--muted); font-size: 11px; }
.drawer-close { border: 0; background: var(--soft); border-radius: 8px; width: 31px; height: 31px; cursor: pointer; }
.drawer-body { padding: 20px 22px 80px; }
.drawer-section { padding: 0 0 19px; margin-bottom: 19px; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border: 0; }
.drawer-section h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.drawer-section p { font-size: 12px; line-height: 1.6; margin: 0; white-space: pre-wrap; }
.outcome-ownership-card { padding: 16px; border-bottom: 0; border-radius: 16px; background: var(--violet-soft); }
.outcome-ownership-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.outcome-ownership-head small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.status-outcome-ownership { background: #ded5ff; color: var(--violet-dark); }
.outcome-result { display: grid; gap: 4px; margin-top: 16px; }
.outcome-result span, .outcome-budget-grid span { color: var(--muted); font-size: 9px; }
.outcome-result > div:first-of-type { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.outcome-result strong { font-size: 16px; line-height: 1.3; }
.outcome-result b { color: var(--violet-dark); font-size: 14px; }
.outcome-result small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.outcome-progress-track { margin-top: 4px; background: rgba(255,255,255,.82); }
.outcome-progress-track i { background: var(--violet); }
.outcome-budget-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.outcome-budget-grid > div { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.72); }
.outcome-budget-grid strong { font-size: 11px; }
.outcome-ownership-card > p { margin-top: 12px; color: var(--muted); font-size: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { padding: 10px 11px; background: var(--soft); border-radius: 9px; }
.detail-item span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.detail-item strong { font-size: 11px; }
.result-form { display: grid; gap: 12px; }
.result-form textarea { min-height: 100px; }
.manager-completion-form { display: grid; gap: 12px; margin-top: 14px; }
.manager-completion-form details { padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.manager-completion-form summary { cursor: pointer; color: var(--brand-dark); font-size: 11px; font-weight: 750; }
.manager-completion-form details[open] summary { margin-bottom: 12px; }
.manager-completion-form label { display: grid; gap: 6px; margin-top: 10px; font-size: 10px; font-weight: 700; }
.manager-completion-form textarea { min-height: 72px; }
.manager-completion-form .button { justify-self: start; }
.ai-review { border: 1px solid #ded7f4; background: #f8f6ff; border-radius: 14px; padding: 14px; }
.ai-review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.ai-review-head strong { font-size: 12px; }
.review-score { font-size: 16px; color: var(--brand); font-weight: 850; }
.ai-review p { font-size: 11px; line-height: 1.55; }
.review-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 11px 0; }
.review-metrics div { background: white; border-radius: 7px; padding: 8px; text-align: center; }
.review-metrics strong { display: block; font-size: 13px; }
.review-metrics span { font-size: 8px; color: var(--muted); }
.question-list { margin: 10px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.goal-editable-text { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: text; }
.goal-editable-text:hover { background: var(--violet-soft); box-shadow: 0 0 0 6px var(--violet-soft); }
.goal-editable-title { font-weight: inherit; line-height: inherit; letter-spacing: inherit; }
.goal-editable-context { font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.goal-drawer-head h2 { margin-top: 0; }
.goal-planning-level-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.goal-planning-share { color: var(--muted); font-size: 11px; line-height: 1.45; }
.goal-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goal-contribution-list { display: grid; }
.goal-contribution-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.goal-contribution-row:first-child { padding-top: 0; }
.goal-contribution-row:last-child { border-bottom: 0; }
.goal-contribution-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-contribution-row > strong { font-size: 11px; }
.goal-contribution-row > i { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.goal-contribution-row > i > b { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.goal-contribution-note { margin-top: 8px !important; color: var(--faint); font-size: 9px !important; }
.goal-inline-edit { display: grid; gap: 10px; }
.goal-inline-title input { font-size: 19px; font-weight: 780; line-height: 1.3; letter-spacing: -.02em; }
.goal-inline-edit textarea { min-height: 132px; }
.goal-autosave-status { justify-self: end; color: var(--faint); font-size: 10px; line-height: 1.3; }
.goal-autosave-status:empty { display: none; }
.goal-autosave-status.is-saving { color: var(--muted); }
.goal-autosave-status.is-saved { color: var(--positive); }
.goal-autosave-status.is-error { color: var(--danger); }
.goal-new-priority { display: grid; justify-items: start; gap: 7px; }
.goal-new-priority > span { color: #4f4f5b; font-size: 12px; font-weight: 700; }
.goal-archive-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.goal-archive-section > div { min-width: 0; }
.goal-archive-section h3 { color: var(--danger); }
.goal-archive-section .button { flex: 0 0 auto; }

.modal-layer { position: fixed; inset: 0; z-index: 30; background: rgba(17,17,22,.38); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(5px); }
.modal { width: min(620px, 100%); max-height: min(800px, calc(100vh - 40px)); overflow: auto; background: white; border-radius: 17px; box-shadow: var(--shadow); }
.modal.small-modal { width: min(440px, 100%); }
.modal-head { padding: 19px 21px 14px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 4px; font-size: 17px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 10px; }
.modal-close { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 19px 21px 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.preview-summary { padding: 13px 14px; border: 1px solid #ded7f4; background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; font-size: 11px; line-height: 1.5; margin-bottom: 15px; }
.strategic-allocation-preview { margin: 12px 0 15px; border-radius: 12px; background: var(--surface-soft); overflow: hidden; }
.strategic-allocation-head,.strategic-allocation-row { display: grid; grid-template-columns: minmax(150px,1fr) auto auto 54px; gap: 12px; align-items: center; padding: 11px 14px; }
.strategic-allocation-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.strategic-allocation-head strong { color: var(--ink); font-size: 11px; }
.strategic-allocation-row { border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.strategic-allocation-row > span:first-child { color: var(--ink); font-weight: 700; }
.strategic-allocation-row > strong { color: var(--success); text-align: right; }
.strategic-allocation-row > strong.is-behind { color: var(--warning); }
.strategic-allocation-row small { grid-column: 2 / -1; color: var(--warning); text-align: right; }
.strategic-allocation-row.is-inactive { opacity: .62; }
.strategic-allocation-row.is-operational > span:first-child { color: var(--muted); font-weight: 600; }
@media (max-width: 700px) {
  .strategic-allocation-head,.strategic-allocation-row { grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; }
  .strategic-allocation-row > span:nth-child(3),.strategic-allocation-row > strong { text-align: right; }
  .strategic-allocation-row small { grid-column: 1 / -1; text-align: left; }
}
.preview-groups { display: grid; gap: 13px; }
.preview-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.preview-group h3 { margin: 0; padding: 9px 11px; background: var(--soft); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.preview-item { padding: 10px 11px; border-top: 1px solid var(--line); font-size: 11px; }
.preview-item:first-of-type { border-top: 0; }
.preview-item strong { display: block; margin-bottom: 3px; }
.preview-item span { color: var(--muted); }
.settings-modal { width: min(860px, 100%); border-radius: 22px; }
.settings-modal .modal-head { position: sticky; top: 0; z-index: 2; padding: 22px 26px 17px; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.settings-modal .modal-head h2 { font-size: 21px; letter-spacing: -.025em; }
.settings-modal .modal-head p { font-size: 11px; }
.settings-modal .modal-close { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); }
.settings-modal .modal-body { padding: 22px 26px 30px; }
.settings-modal .settings-account-note { display: grid; gap: 4px; border: 0; padding: 14px 16px; margin-bottom: 18px; background: var(--brand-soft); }
.settings-modal .settings-account-note strong { color: var(--brand-dark); font-size: 11px; }
.settings-modal .settings-account-note span { color: #5f5680; font-size: 10px; line-height: 1.5; }
.settings-modal .preview-group { border: 0; border-radius: 14px; background: var(--soft); padding: 16px; overflow: visible; }
.settings-modal .preview-group + .preview-group { margin-top: 14px; }
.settings-modal .preview-group h3 { padding: 0; background: transparent; color: var(--ink); font-size: 10px; letter-spacing: .08em; }
.settings-modal .account-preferences { margin-top: 0; }
.settings-modal .preference-toggle { margin-top: 10px; padding: 12px 13px; border-radius: 11px; background: white; }
.settings-modal .preference-toggle strong { font-size: 12px; }
.settings-modal .preference-toggle small { font-size: 10px; }
.settings-modal .preference-toggle i { width: 42px; height: 24px; }
.settings-modal .preference-toggle i::after { width: 18px; height: 18px; }
.settings-modal .preference-toggle input:checked + i::after { transform: translateX(18px); }
.settings-modal .preference-select { margin-top: 8px; padding: 12px 13px; border-radius: 11px; background: white; }
.settings-modal .preference-select strong { font-size: 12px; }
.settings-modal .preference-select small { font-size: 10px; }
.settings-modal .preference-action { margin-top: 8px; padding: 12px 13px; border-radius: 11px; background: white; }
.settings-modal .preference-action strong { font-size: 12px; }
.settings-modal .preference-action small { font-size: 10px; }
.settings-modal .workspace-module-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.settings-modal .workspace-module-settings > h3,
.settings-modal .workspace-module-settings > p { grid-column: 1 / -1; }
.settings-modal .workspace-module-settings > p { margin: -2px 0 5px; font-size: 10px; font-weight: 400; }
.settings-modal .module-setting-row { min-width: 0; min-height: 76px; padding: 11px 12px; border: 0; border-radius: 11px; background: white; }
.settings-modal .module-setting-row strong { font-size: 11px; }
.settings-modal .module-setting-row small { font-size: 9px; line-height: 1.4; }
.settings-modal .module-setting-row select { flex: 0 0 auto; width: 88px; min-height: 38px; border: 0; border-radius: 10px; background-color: var(--soft); font-size: 10px; font-weight: 700; }
.settings-modal .preview-item { margin-top: 8px; padding: 11px 12px; border: 0; border-radius: 10px; background: white; }
.settings-modal .preview-item + .preview-item { margin-top: 6px; }
.settings-modal form:not(:first-child) { padding: 16px; border-radius: 14px; background: var(--soft); }
.settings-modal .section-heading { margin-top: 26px !important; margin-bottom: 10px; }
.settings-modal .section-heading h2 { font-size: 14px; }
.settings-modal .section-heading p { margin: 3px 0 0; font-size: 10px; }
.workspace-modal { width: min(720px, 100%); border-radius: 22px; }
.workspace-modal .modal-head { padding: 24px 26px 18px; }
.workspace-modal .modal-head h2 { font-size: 22px; letter-spacing: -.03em; }
.workspace-modal .modal-head p { font-size: 11px; }
.workspace-modal .modal-close { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); }
.workspace-modal-body { padding: 24px 26px 28px; }
.workspace-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.workspace-choice { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 14px; background: var(--soft); color: var(--ink); text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.workspace-choice:hover { transform: translateY(-1px); background: white; box-shadow: 0 12px 30px rgba(17,17,22,.08); }
.workspace-choice:focus-visible { outline: 1px solid var(--brand); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.workspace-choice.is-current { background: var(--brand-soft); }
.workspace-choice-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: white; color: var(--brand-dark); font-size: 12px; font-weight: 800; box-shadow: 0 6px 16px rgba(17,17,22,.05); }
.workspace-choice-copy { min-width: 0; display: grid; gap: 4px; }
.workspace-choice-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.workspace-choice-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.workspace-choice-state { color: var(--faint); font-size: 13px; font-weight: 750; }
.workspace-choice.is-current .workspace-choice-state { padding: 5px 8px; border-radius: 999px; background: white; color: var(--brand-dark); font-size: 9px; }
.workspace-create-section { margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--soft); }
.workspace-create-section > div h3 { margin: 0; font-size: 14px; }
.workspace-create-section > div p { margin: 4px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.workspace-create-section form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
.workspace-create-section form > label { min-width: 0; }
.workspace-create-section .form-error { grid-column: 1 / -1; margin: 0; }
.workspace-create-section .form-actions { margin: 0; }
.management-agent-page { min-height: 620px; height: calc(100vh - 130px); overflow: hidden; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 38px rgba(17,17,22,.07); }
.management-agent-standalone { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.management-agent-standalone .onboarding-head { flex: 0 0 auto; }
.management-agent-standalone .management-agent-page { flex: 1; height: auto; min-height: 0; border-radius: 0; border-right: 0; border-bottom: 0; border-left: 0; box-shadow: none; }
.agent-onboarding-body { min-height: 0; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr); flex: 1; }
.company-model-pane { overflow-y: auto; padding: 18px 20px 24px; background: #fbfcfb; border-right: 1px solid var(--line); }
.model-progress { display: grid; gap: 8px; margin-bottom: 14px; }
.model-progress > div { display: flex; align-items: baseline; gap: 7px; }
.model-progress strong { color: var(--brand); font-size: 18px; }
.model-progress span { color: var(--muted); font-size: 10px; }
.model-progress i { height: 5px; border-radius: 99px; background: #e2e9e6; overflow: hidden; }
.model-progress b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.company-model-pane details { border-bottom: 1px solid var(--line); padding: 11px 0; }
.company-model-pane summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.company-model-pane summary::-webkit-details-marker { display: none; }
.company-model-pane summary::after { content: "⌄"; margin-left: auto; color: var(--muted); }
.company-model-pane details:not([open]) summary::after { transform: rotate(-90deg); }
.company-model-pane summary span, .model-gaps h3 span { min-width: 20px; border-radius: 99px; background: #e8edeb; color: var(--muted); padding: 2px 6px; font-size: 9px; text-align: center; }
.people-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.people-chips span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: 11px; font-weight: 700; }
.person-responsibilities { padding: 11px 0 2px; }
.person-responsibilities > strong { display: block; margin-bottom: 6px; font-size: 12px; }
.person-responsibilities > div { display: grid; grid-template-columns: 75px 1fr; gap: 8px; padding: 5px 0; }
.person-responsibilities b { color: var(--brand); font-size: 9px; }
.person-responsibilities span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.compact-model-row { display: grid; gap: 3px; padding: 9px 0; }
.compact-model-row + .compact-model-row { border-top: 1px solid var(--line); }
.compact-model-row strong { font-size: 11px; }
.compact-model-row span, .model-empty { color: var(--muted); font-size: 10px; }
.model-gaps { margin-top: 16px; padding: 12px; border-radius: 10px; background: #fff8eb; border: 1px solid #efe0c2; }
.model-gaps h3 { display: flex; gap: 7px; align-items: center; margin: 0 0 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.model-gaps ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.model-gaps li { font-size: 9px; color: #725f3a; display: flex; justify-content: space-between; gap: 10px; }
.model-gaps li span { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-gaps li.is-complete { color: var(--brand); display: block; }
.management-chat-pane { min-height: 0; display: flex; flex-direction: column; background: white; }
.chat-heading { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.agent-avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px; }
.chat-heading > div:last-child { display: grid; gap: 2px; }
.chat-heading strong { font-size: 12px; }
.chat-heading span { color: var(--muted); font-size: 9px; }
.agent-messages { flex: 1; min-height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.agent-message { max-width: 86%; }
.agent-message.user { align-self: flex-end; }
.agent-message > span { display: block; color: var(--muted); font-size: 8px; margin: 0 5px 4px; }
.agent-message.user > span { text-align: right; }
.agent-message p { margin: 0; border-radius: 14px 14px 14px 4px; background: var(--brand-soft); padding: 11px 13px; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.agent-message.user p { border-radius: 14px 14px 4px 14px; background: var(--brand); color: white; box-shadow: 0 8px 22px rgba(108,59,255,.16); }
.ai-debug-shortcut { display: block; margin: 6px 5px 0; padding: 5px 8px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.ai-debug-shortcut:hover { background: var(--violet-soft); color: var(--violet-dark); }
.ai-debug-shortcut:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.ai-debug-modal { width: min(1180px, 100%); height: min(820px, calc(100vh - 40px)); overflow: hidden; display: flex; flex-direction: column; }
.ai-debug-inspector { min-height: 0; flex: 1; display: grid; grid-template-columns: 280px minmax(0,1fr); }
.ai-debug-timeline { overflow: auto; padding: 12px; background: var(--surface-soft); border-right: 1px solid var(--line); }
.ai-debug-timeline button { width: 100%; min-height: 48px; margin-bottom: 6px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.ai-debug-timeline button:hover, .ai-debug-timeline button.is-active { background: var(--violet-soft); color: var(--violet-dark); }
.ai-debug-timeline button:focus-visible, .ai-debug-tabs button:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.ai-debug-timeline span, .ai-debug-timeline small { display: block; }
.ai-debug-timeline span { font-weight: 730; }
.ai-debug-timeline small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ai-debug-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 18px; }
.ai-debug-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ai-debug-stage-head strong, .ai-debug-stage-head small { display: block; }
.ai-debug-stage-head small { margin-top: 3px; color: var(--muted); }
.ai-debug-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-debug-tabs button { min-height: 36px; padding: 7px 10px; border: 0; border-radius: 9px; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.ai-debug-tabs button.is-active { background: var(--violet-soft); color: var(--violet-dark); }
.ai-debug-json { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 14px; border-radius: 12px; background: var(--ink-soft); color: #f4f1ff; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-message.assistant.is-new-question p { animation: chat-question-arrival 1s ease-out 1; }
@keyframes chat-question-arrival { 0% { box-shadow: none; } 45% { box-shadow: 0 0 0 4px rgba(108,59,255,.09), 0 8px 24px rgba(200,45,209,.12); } 100% { box-shadow: none; } }
.agent-message.is-thinking p { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.agent-message.is-thinking p i { width: 5px; height: 5px; border-radius: 50%; background: var(--gradient); animation: chat-thinking 1.1s infinite ease-in-out; }
.agent-message.is-thinking p i:nth-child(2) { animation-delay: .14s; }
.agent-message.is-thinking p i:nth-child(3) { animation-delay: .28s; margin-right: 4px; }
.management-update-failure { display: flex; align-items: center; gap: 8px; margin: 7px 4px 0; }
.management-update-failure small { color: var(--muted); font-size: 9px; }
.management-update-failure button { min-height: 32px; padding: 7px 11px; border: 0; border-radius: 10px; background: var(--brand-soft); color: var(--violet-dark); font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.management-update-failure button:hover { background: #e7e0ff; }
.management-update-failure button:focus-visible { outline: 3px solid rgba(108,59,255,.18); outline-offset: 2px; }
.management-update-failure button:disabled { cursor: wait; opacity: .55; }
@keyframes chat-thinking { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-3px); opacity: 1; } }
.agent-proposal { border: 1px solid #ded7f4; border-radius: 14px; background: #f8f6ff; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-proposal > div:first-child { display: grid; gap: 3px; }
.agent-proposal span { color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: 8px; font-weight: 800; }
.agent-proposal strong { font-size: 11px; text-transform: capitalize; }
.agent-proposal p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.proposal-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.proposal-field-list { display: grid; gap: 8px; margin-top: 8px; }
.proposal-field-list > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface, #fff); }
.proposal-field-list > div > span { font-size: 10px; }
.proposal-field-list > div > strong { font-size: 12px; text-transform: none; }
.proposal-field-list > div > small { color: var(--muted); font-size: 10px; }
.agent-composer { border-top: 1px solid var(--line); padding: 12px 14px; }
.agent-composer textarea { min-height: 58px; max-height: 150px; resize: vertical; }
.agent-composer > div { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.agent-composer > div .muted { flex: 1; font-size: 9px; }
.agent-onboarding-footer { border-top: 1px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.agent-onboarding-footer span { flex: 1; text-align: right; color: var(--muted); font-size: 9px; }
.management-dock { position: fixed; inset: 0 0 0 auto; z-index: 16; width: 400px; display: flex; flex-direction: column; background: white; border-left: 1px solid var(--line); box-shadow: -14px 0 40px rgba(17,17,22,.08); transition: width .2s ease, transform .2s ease; }
.management-dock.is-collapsed { width: 52px; box-shadow: none; }
.management-dock-head { min-height: 74px; padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.management-dock-head > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.management-dock-head > div > div { min-width: 0; display: grid; gap: 2px; }
.management-dock-head strong { font-size: 12px; white-space: nowrap; }
.management-dock-head small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.management-dock-head > button { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 20px; cursor: pointer; }
.management-dock-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.management-dock-messages .agent-message { max-width: 92%; }
.management-dock-messages .agent-message > span { font-size: 7px; }
.management-dock-messages .agent-message p { font-size: 12px; line-height: 1.55; }
.agent-message-context { display: block; margin: 0 0 5px; color: inherit; font-size: 9px; line-height: 1.35; opacity: .72; }
.management-dock-messages .agent-proposal { align-items: stretch; flex-direction: column; }
.management-dock-composer { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--line); background: white; }
.management-dock-composer textarea { min-height: 66px; max-height: 160px; resize: vertical; font-size: 13px; line-height: 1.5; }
.management-composer-field { border: 1px solid var(--line-strong); border-radius: 12px; background: white; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.management-composer-field:focus-within { border-color: #8d6bff; box-shadow: 0 0 0 3px rgba(108,59,255,.16); }
.management-composer-field textarea { display: block; border: 0; border-radius: 0; box-shadow: none; }
.management-composer-field textarea:focus { border: 0; box-shadow: none; }
.management-composer-context { width: calc(100% - 16px); min-height: 32px; margin: 8px 8px 0; padding: 5px 6px 5px 10px; display: flex; align-items: center; gap: 8px; border-radius: 9px; background: var(--violet-soft); color: var(--violet-dark); }
.management-composer-context strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.4; font-weight: 750; }
.management-composer-context button { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--violet-dark); font: inherit; font-size: 16px; cursor: pointer; }
.management-composer-context button:hover { background: rgba(108,59,255,.1); }
.management-composer-context button:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.management-composer-field.has-context textarea { min-height: 54px; padding-top: 6px; }
.management-dock-composer > .management-composer-actions { margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.management-dock-composer > .management-composer-actions > span { flex: 1; color: var(--muted); font-size: 8px; text-align: center; }
.reasoning-effort-control { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.reasoning-effort-control select { min-height: 32px; padding: 0 24px 0 9px; border: 0; border-radius: 9px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 10px; cursor: pointer; }
.reasoning-effort-control select:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.reasoning-effort-control select:disabled { opacity: .55; cursor: wait; }
.reasoning-effort-control.is-compact > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .reasoning-effort-control select { min-height: 44px; }
}
.management-dock-composer .voice-button, .management-dock-composer .button { padding: 7px 10px; font-size: 11px; }
.management-dock-composer .voice-button.is-icon-only { width: 31px; height: 31px; min-height: 31px; padding: 0; border-radius: 9px; }
.management-dock-composer .composer-tools { display: flex; align-items: center; gap: 5px; margin: 0; }
.attachment-button { width: 31px; height: 31px; border: 0; background: var(--brand-soft); color: var(--brand); border-radius: 9px; cursor: pointer; font-size: 15px; }
.attachment-button:hover { background: var(--brand-soft); }
.management-dock-composer .composer-attachments { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 7px; }
.management-dock-composer .composer-attachments button { border: 0; background: var(--brand-soft); color: var(--brand-dark); border-radius: 99px; padding: 5px 8px; font-size: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.management-dock-composer .composer-attachments b { margin-left: 4px; }
.management-dock-composer .management-context-line { max-width: 100%; margin: 0 0 7px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); }
.management-dock-composer .management-context-line strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.management-dock-composer .management-context-line button { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--brand-dark); font: inherit; cursor: pointer; }
.management-dock-composer .management-context-line button:hover { background: rgba(108,59,255,.1); }
.message-attachments { display: grid; gap: 8px; margin: 10px 0 0; max-width: 320px; }
.message-attachment { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(17,17,22,.05); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.message-attachment:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(17,17,22,.09); }
.message-attachment img, .message-attachment-icon { width: 42px; height: 42px; border-radius: 9px; }
.message-attachment img { display: block; object-fit: cover; background: var(--surface-soft); }
.message-attachment-icon { display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-dark); font-size: 10px; font-weight: 800; }
.message-attachment-copy { min-width: 0; display: grid; gap: 2px; padding: 0; border: 0; background: transparent; color: inherit; }
.message-attachment-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.3; }
.message-attachment-copy small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.message-attachment.is-unavailable { opacity: .65; }
.agent-message.user .message-attachment, .report-message.is-employee .message-attachment, .external-report-message.is-employee .message-attachment { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.14); color: white; box-shadow: none; }
.agent-message.user .message-attachment-icon, .report-message.is-employee .message-attachment-icon, .external-report-message.is-employee .message-attachment-icon { background: rgba(255,255,255,.18); color: white; }
.agent-message.user .message-attachment-copy small, .report-message.is-employee .message-attachment-copy small, .external-report-message.is-employee .message-attachment-copy small { color: rgba(255,255,255,.72); }

.knowledge-panel { overflow: hidden; }
.knowledge-toolbar { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.knowledge-toolbar input { flex: 1; max-width: 430px; }
.knowledge-toolbar span { color: var(--muted); font-size: 9px; }
.knowledge-list { display: grid; }
.knowledge-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.knowledge-row:last-child { border-bottom: 0; }
.document-select { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: start; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.document-select:hover .document-main strong { color: var(--violet-dark); }
.document-select:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.document-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 8px; font-weight: 800; }
.document-main { min-width: 0; }
.document-main > span:first-child { display: flex; align-items: baseline; gap: 7px; }
.document-main strong { font-size: 11px; }
.document-main span { color: var(--muted); font-size: 8px; }
.document-main .document-summary { display: block; margin: 5px 0 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.document-actions, .connection-actions { display: flex; gap: 5px; align-items: center; }
.connection-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.button.primary.connection-primary-action { min-height: 42px; padding: 0 14px; border-radius: 11px; background: var(--violet-dark); box-shadow: 0 6px 16px rgba(75,35,200,.16); font-size: 12px; white-space: nowrap; }
.button.primary.connection-primary-action:hover { background: #4120aa; filter: none; box-shadow: 0 8px 20px rgba(75,35,200,.2); }
.connection-maintenance-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-left: auto; }
.connection-icon-button { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.connection-icon-button::before { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-soft); transition: background .15s ease, box-shadow .15s ease; }
.connection-icon-button:hover { color: var(--ink-soft); transform: translateY(-1px); }
.connection-icon-button:hover::before { background: #e9e9f1; box-shadow: 0 5px 14px rgba(17,17,22,.06); }
.connection-icon-button:active { transform: translateY(1px); }
.connection-icon-button.is-destructive:hover { color: var(--red); }
.connection-icon-button.is-destructive:hover::before { background: var(--red-soft); }
.connection-icon-button:disabled { opacity: .45; cursor: wait; transform: none; box-shadow: none; }
.connection-action-icon { position: relative; z-index: 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.google-integration-card > p { min-height: 0; margin-bottom: 12px; }
.integration-card.is-clickable { position: relative; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.integration-card.is-clickable:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(17,17,22,.09); }
.integration-card.is-clickable:focus-visible { outline: 1px solid var(--violet); outline-offset: 3px; box-shadow: 0 0 0 3px rgba(108,59,255,.18), var(--shadow); }
.integration-connection-summary { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.integration-connection-line { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.integration-connection-line > span:first-child { min-width: 0; display: grid; gap: 3px; }
.integration-connection-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.integration-connection-line small { color: var(--muted); font-size: 10px; }
.integration-open-cue { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.integration-open-cue span { min-width: 0; }
.integration-open-cue b { color: var(--faint); font-size: 18px; font-weight: 500; }
.integration-open-cue.is-error { color: var(--danger); }
.integration-open-cue.is-warning { color: var(--amber); }
.google-service-list { display: grid; border-top: 1px solid var(--line); }
.google-service-list.is-unconnected { margin-top: 2px; }
.google-service-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.google-service-copy { min-width: 0; display: grid; gap: 3px; }
.google-service-copy strong { font-size: 11px; font-weight: 740; }
.google-service-copy small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.google-service-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.google-service-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 720; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.google-service-button .connection-action-icon { width: 15px; height: 15px; }
.google-service-button:hover { background: #e9e9f1; color: var(--ink); transform: translateY(-1px); }
.google-service-button:active { transform: translateY(1px); }
.google-service-button:focus-visible { outline: 1px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.google-service-button:disabled { opacity: .45; cursor: wait; transform: none; }
.google-service-button.is-enable { min-width: 64px; background: var(--violet-soft); color: var(--violet-dark); }
.google-service-button.is-enable:hover { background: #e6deff; color: var(--violet-dark); }
.google-service-button.is-destructive:hover { background: var(--danger-soft); color: var(--danger); }
.integration-attention-section { display: grid; gap: 14px; padding: 16px; border: 0; border-radius: 12px; background: var(--danger-soft); }
.integration-attention-section h3 { color: var(--danger); }
.integration-attention-section p { margin: 5px 0 0; }
.integration-attention-section .button { justify-self: start; }
.button.secondary.integration-review-action { background: var(--ink-soft); color: var(--surface); box-shadow: 0 6px 18px rgba(17,17,22,.12); }
.button.secondary.integration-review-action:hover { background: var(--ink); box-shadow: 0 8px 22px rgba(17,17,22,.16); transform: translateY(-1px); }
.button.secondary.integration-review-action:active { transform: translateY(1px); }
.identity-review-list { display: grid; gap: 16px; }
.identity-review-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.identity-review-row:last-child { padding-bottom: 0; border-bottom: 0; }
.identity-review-person { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity-review-person > div { min-width: 0; display: grid; gap: 3px; }
.identity-review-person strong, .identity-review-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-review-person span { color: var(--muted); font-size: 11px; }
.identity-review-person-actions { min-width: auto !important; display: flex !important; align-items: center; justify-content: flex-end; gap: 4px !important; }
.identity-review-person-actions .reason-popover-content { left: auto; right: 0; white-space: normal; }
.identity-review-why summary { color: var(--violet-dark); }
.identity-review-decision { grid-column: 1 / -1; display: grid; gap: 6px; }
.identity-review-field-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.identity-review-choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.identity-review-choice { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font: inherit; font-size: 11px; font-weight: 740; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.identity-review-choice:hover { background: #e9e9f1; color: var(--ink); transform: translateY(-1px); }
.identity-review-choice:active { transform: translateY(1px); }
.identity-review-choice:focus-visible { outline: 1px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.identity-review-choice.is-selected { background: var(--violet-soft); color: var(--violet-dark); }
.identity-review-person-choice { display: flex; align-items: flex-start; }
.identity-review-change-person { min-height: 32px; padding: 4px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--violet-dark); font: inherit; font-size: 10px; font-weight: 740; cursor: pointer; }
.identity-review-change-person:hover { background: var(--violet-soft); }
.identity-review-change-person:focus-visible { outline: 1px solid var(--violet); box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.identity-review-person-choice label { width: min(100%, 460px); }
.identity-review-row label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.identity-review-row [hidden] { display: none !important; }
.identity-review-row select { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-soft); color: var(--ink); padding: 0 12px; font: inherit; }
.identity-review-row select:focus-visible { outline: 1px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(108,59,255,.18); }
.identity-review-row .form-error { grid-column: 1 / -1; margin: 0; }
.identity-review-save-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: var(--muted); font-size: 11px; }
.identity-review-save-status:empty { display: none; }
.identity-review-row.is-saving { opacity: .72; }
.identity-review-actions { position: sticky; bottom: -80px; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -22px -80px; padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -12px 28px rgba(17,17,22,.06); backdrop-filter: blur(12px); }
.identity-review-actions p { margin: 0; color: var(--muted); font-size: 11px; }
.integration-service-details { display: grid; }
.integration-service-detail { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; border-top: 1px solid var(--line); }
.integration-service-detail:first-child { padding-top: 0; border-top: 0; }
.integration-service-detail > div { min-width: 0; display: grid; gap: 4px; }
.integration-service-detail strong { font-size: 13px; }
.integration-service-detail span:not(.status-pill) { color: var(--muted); font-size: 11px; line-height: 1.45; text-transform: capitalize; }
.integration-service-controls { padding: 0 0 14px; }
.integration-service-note { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.email-approval-preview { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.email-approval-preview > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.email-approval-preview > strong,
.email-approval-preview > pre { min-width: 0; margin: 0; color: var(--ink); font: inherit; overflow-wrap: anywhere; white-space: pre-wrap; }
.email-approval-preview > pre { line-height: 1.6; }
.integration-disconnect-section { display: grid; gap: 14px; }
.integration-disconnect-section h3 { color: var(--danger); }
.integration-disconnect-section p { margin: 5px 0 0; }
.integration-disconnect-section .button { justify-self: start; }
.disconnect-impact-list { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.document-access-note { min-height: 32px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.configuration-note { display: inline-block; color: #9b6b2d; background: #fff5df; border-radius: 8px; padding: 7px 8px; font-size: 8px; }
.knowledge-picker-list { margin-top: 10px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.knowledge-picker-toolbar { display: flex; gap: 7px; }
.knowledge-picker-toolbar input { flex: 1; }
.knowledge-picker-list label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.knowledge-picker-list label:last-child { border-bottom: 0; }
.knowledge-picker-list input { width: auto; }
.knowledge-picker-list span { display: grid; gap: 2px; }
.knowledge-picker-list strong { font-size: 10px; }
.knowledge-picker-list small { color: var(--muted); font-size: 8px; }

@media (max-width: 700px) {
  .knowledge-toolbar { align-items: stretch; flex-direction: column; }
  .knowledge-toolbar input { max-width: none; }
  .knowledge-row { grid-template-columns: 1fr; }
  .document-actions { padding-left: 50px; flex-wrap: wrap; }
  .connection-action-bar { align-items: center; flex-direction: row; flex-wrap: wrap; }
  .button.primary.connection-primary-action { min-height: 44px; width: auto; }
  .connection-maintenance-actions { width: auto; margin-left: auto; }
  .google-service-row { align-items: flex-start; flex-direction: column; }
  .google-service-actions { width: 100%; justify-content: flex-start; }
  .google-service-button { min-height: 44px; }
  .identity-review-row { grid-template-columns: 1fr; }
  .identity-review-person, .identity-review-row .form-error { grid-column: 1; }
  .identity-review-person-actions .reason-popover-content { max-width: min(280px, calc(100vw - 48px)); }
  .identity-review-choice-group { display: grid; grid-template-columns: 1fr 1fr; }
  .identity-review-choice:first-child { grid-column: 1 / -1; }
}
.management-dock-rail { width: 100%; height: 100%; padding: 13px 8px; border: 0; background: white; color: var(--brand); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.management-dock-rail .agent-avatar { flex: 0 0 auto; width: 34px; height: 34px; }
.management-dock-rail strong { font-size: 10px; writing-mode: vertical-rl; letter-spacing: .08em; text-transform: uppercase; }
.management-dock-rail i { margin-top: auto; font-size: 20px; font-style: normal; }
.management-dock-empty { flex: 1; padding: 26px 20px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 7px; color: var(--muted); }
.management-dock-empty strong { color: var(--ink); font-size: 13px; }
.management-dock-empty span { font-size: 11px; line-height: 1.5; }
.nav-item.is-agent-open:not(.is-active) { color: var(--brand); background: rgba(255,255,255,.6); }
.mobile-more-menu { display: grid; gap: 8px; }
.mobile-more-item { width: 100%; min-height: 64px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 14px; background: var(--soft); text-align: left; cursor: pointer; }
.mobile-more-item:hover { background: var(--brand-soft); }
.mobile-more-item > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); font-size: 16px; }
.mobile-more-item > div { min-width: 0; display: grid; gap: 3px; }
.mobile-more-item strong { font-size: 13px; }
.mobile-more-item small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.mobile-more-item b { color: var(--faint); font-size: 18px; }
.member-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-line > div:first-child { display: grid; gap: 3px; }
.danger-text { color: var(--red); }
.loading-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; padding: 16px 0; }
.spinner { width: 15px; height: 15px; border: 2px solid #ded9ef; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; }
.toast { max-width: 370px; background: var(--ink-soft); color: white; border-radius: 12px; padding: 12px 15px; box-shadow: var(--shadow-large); font-size: 12px; animation: toast-in .2s ease; }
.toast.has-action { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.toast-action { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: white; cursor: pointer; font: inherit; font-weight: 750; }
.toast-action:hover { background: rgba(255,255,255,.22); }
.toast-action:disabled { opacity: .55; cursor: wait; }
.toast.error { background: #7c3030; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.external-shell { min-height: 100vh; background: var(--soft); padding-bottom: 60px; }
.external-head { height: 68px; background: white; border-bottom: 1px solid var(--line); padding: 0 max(22px, calc((100% - 680px) / 2)); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.external-card { width: min(680px, calc(100% - 32px)); margin: 38px auto 0; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px rgba(17,17,22,.08); padding: 26px; }
.external-title { padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.external-title h1 { margin: 12px 0 7px; font-size: 25px; letter-spacing: -.035em; }
.external-title p { margin: 0; color: var(--muted); font-size: 11px; }
.external-section { padding: 19px 0; border-bottom: 1px solid var(--line); }
.external-section h2, .external-result h2 { margin: 0 0 9px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.external-section p { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.external-context { margin: 16px 0; padding: 11px; background: var(--soft); border-radius: 9px; display: grid; gap: 4px; }
.external-context span { color: var(--muted); font-size: 9px; }
.external-context strong { font-size: 11px; }
.external-actions { display: flex; gap: 8px; padding: 17px 0 4px; }
.external-result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.external-report-thread { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.external-report-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.external-report-head h2 { margin: 0; font-size: 15px; }
.external-report-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.external-report-head > span { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: var(--violet-soft); color: var(--violet-dark); font-size: 10px; font-weight: 750; }
.external-report-messages { display: grid; gap: 10px; margin-top: 16px; }
.external-report-message { max-width: 88%; padding: 12px 14px; border-radius: 14px; background: var(--violet-soft); }
.external-report-message.is-employee { justify-self: end; background: var(--violet); color: white; }
.external-report-message header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: 9px; }
.external-report-message header span { color: var(--faint); text-transform: capitalize; }
.external-report-message.is-employee header span { color: rgba(255,255,255,.68); }
.external-report-message p { margin: 0; white-space: pre-wrap; font-size: 12px; line-height: 1.55; }
.external-evidence { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.external-evidence h3 { width: 100%; margin: 0; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.external-evidence a, .external-evidence span, .external-attachments span { padding: 7px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--violet-dark); text-decoration: none; font-size: 10px; }
.external-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.external-attachments .is-ready { background: var(--success-soft); color: var(--success); }
.external-composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.external-file-button { cursor: pointer; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 42vh; padding: 28px; }
  .auth-copy { margin: 60px 0; }
  .auth-copy h1 { font-size: 40px; }
  .auth-loop { display: none; }
  .auth-panel { padding: 24px; }
  .onboarding-grid { grid-template-columns: 1fr; gap: 40px; padding: 44px 0; }
  .onboarding-aside { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading > div:first-child { flex: 1 1 240px; }
  .section-heading > .module-actions { flex: 1 1 100%; justify-content: flex-start; }
  .filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .filter-bar > .filter-tabs { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .filter-bar > .filter-tabs .filter-tab { flex: 0 0 auto; }
  .filter-bar > .module-actions { width: 100%; justify-content: flex-start; }
  .people-grid, .integration-grid, .connected-team-grid { grid-template-columns: repeat(2,1fr); }
  .agent-onboarding-body { grid-template-columns: 1fr; overflow-y: auto; }
  .company-model-pane { max-height: 42vh; border-right: 0; border-bottom: 1px solid var(--line); overflow-y: auto; }
  .management-chat-pane { min-height: 480px; }
  .management-agent-page { height: auto; min-height: calc(100vh - 110px); }
  .main-shell, .management-dock-open .main-shell { margin-right: 0; }
  .management-dock { width: min(400px, calc(100vw - 54px)); box-shadow: -14px 0 38px rgba(17,17,22,.16); }
  .management-dock.is-collapsed { width: 46px; }
}

@media (max-width: 700px) {
  .product-shell { display: block; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; top: auto; right: 0; width: auto; height: calc(70px + env(safe-area-inset-bottom)); display: block; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(20px); z-index: 18; }
  .sidebar-brand, .workspace-switch, .sidebar-section, .sidebar-secondary, .sidebar-bottom { display: none; }
  .nav-list { height: 56px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: visible; }
  .nav-list .nav-item { min-width: 0; }
  .nav-item { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 4px; border-radius: 10px; font-size: 10px; text-align: center; }
  .agent-nav-item { display: flex; }
  .agent-nav-item { position: relative; color: var(--brand-dark); overflow: visible; }
  .agent-nav-item .agent-nav-mark { width: 52px; height: 52px; margin-top: -28px; border: 0; border-radius: 17px; box-shadow: 0 10px 30px rgba(108,59,255,.32), 0 5px 15px rgba(255,79,116,.18); }
  .agent-nav-item > span:last-child { margin-top: -1px; font-weight: 800; }
  .agent-nav-item.is-agent-open .agent-nav-mark { transform: translateY(-2px); box-shadow: 0 13px 35px rgba(108,59,255,.4), 0 5px 17px rgba(255,79,116,.22); }
  .nav-item b { display: none; }
  .nav-icon { font-size: 16px; }
  .main-shell { width: 100%; }
  .topbar { height: 68px; padding: 0 14px; justify-content: flex-start; gap: 12px; }
  .mobile-more-trigger { display: flex; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .ai-status { display: none; }
  .page-content { padding: 20px 16px 50px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading > div:first-child { flex: 1 1 240px; }
  .section-heading > .module-actions { flex: 1 1 100%; justify-content: flex-start; }
  .filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .filter-bar > .filter-tabs { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .filter-bar > .filter-tabs .filter-tab { flex: 0 0 auto; }
  .filter-bar > .module-actions { width: 100%; justify-content: flex-start; }
  .recurring-scope-bar { align-items: stretch; flex-direction: column; }
  .recurring-scope-tabs { align-self: flex-start; }
  .recurrence-row { grid-template-columns: 34px minmax(0,1fr); align-items: start; }
  .recurrence-next { grid-column: 2; text-align: left; }
  .preference-action { align-items: stretch; flex-direction: column; }
  .preference-action .button { width: 100%; }
  .task-row { grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; padding: 13px 12px; }
  .task-side { flex-direction: column; align-items: flex-end; gap: 2px; }
  .task-external-link { display: none; }
  .work-family-list .work-tree { gap: 10px; }
  .work-family-card > .task-row { padding: 15px 12px; }
  .work-family-card > .task-row .task-title { font-size: 14px; }
  .work-tree-details > summary { min-height: 44px; padding: 13px 12px 13px 40px; }
  .work-tree-children { margin: 2px 8px 10px 24px; }
  .work-tree-children .task-row { padding: 13px 8px 13px 12px; }
  .task-details-button { width: 44px; height: 36px; margin: -2px -8px -7px 0; }
  .today-next-action { grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 12px; padding: 16px; border-radius: 16px; }
  .today-next-action > .agent-avatar { width: 40px; height: 40px; border-radius: 12px; }
  .today-next-copy h2 { font-size: 15px; }
  .today-next-copy p { font-size: 11px; }
  .today-next-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .today-next-button { grid-column: 1 / -1; }
  .today-next-button .button { width: 100%; min-height: 44px; }
  .priority-queue { margin-bottom: 22px; }
  .priority-queue-head { padding: 15px 14px 13px; }
  .priority-queue-head p { max-width: 270px; }
  .priority-item-row, .priority-item-row.is-next, .priority-item-row.is-overdue { grid-template-columns: minmax(0,1fr); padding: 13px 14px; }
  .priority-item-row.is-next, .priority-item-row.is-overdue { padding-left: 18px; }
  .priority-item-labels { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
  .priority-item-deadline { grid-column: 1; margin-left: 0; }
  .priority-item-title { font-size: 13px; }
  .priority-item-actions { justify-content: flex-start; }
  .action-card-footer { display: grid; justify-items: start; }
  .action-card-footer .priority-item-actions { width: 100%; }
  .action-card-queue .priority-item-copy { display: block; }
  .action-card-heading { flex-wrap: wrap; gap: 4px; }
  .action-card-queue .action-card-reason { margin-top: 4px; }
  .action-card-queue .action-card-footer { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .action-card-queue .priority-item-actions { width: auto; justify-content: flex-start; }
  .priority-action { min-height: 44px; }
  .priority-queue-controls { justify-content: flex-start; flex-wrap: wrap; padding: 10px 12px; }
  .priority-queue-controls > span { width: 100%; margin-left: 0; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid.is-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .people-grid, .integration-grid, .connected-team-grid { grid-template-columns: 1fr; }
  .capacity-split { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capacity-days { gap: 3px; }
  .capacity-matrix { overflow-x: auto; }
  .capacity-matrix-head, .capacity-matrix-row { min-width: 760px; }
  .person-capacity-actions .button { width: 100%; min-height: 48px; }
  .capacity-agenda-item { min-height: 44px; }
  .capacity-agenda-balance { align-items: flex-start; flex-direction: column; gap: 2px; }
  .team-plan-scroll { display: none; }
  .team-plan-mobile { display: grid; }
  .team-plan-mobile-person + .team-plan-mobile-person { border-top: 1px solid var(--line); }
  .team-plan-mobile-head { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
  .team-plan-mobile-head > span { display: grid; gap: 2px; }
  .team-plan-mobile-head strong { font-size: 12px; }
  .team-plan-mobile-head small { color: var(--muted); font-size: 9px; }
  .team-plan-mobile-head b { color: var(--faint); font-size: 18px; }
  .team-plan-mobile-head:focus-visible { outline: 2px solid var(--violet); outline-offset: -3px; }
  .team-plan-mobile-day { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-soft); }
  .team-plan-mobile-day.is-overloaded { background: var(--danger-soft); }
  .team-plan-mobile-day-open { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .team-plan-mobile-day-open > span { display: grid; gap: 2px; }
  .team-plan-mobile-day-open strong { font-size: 11px; }
  .team-plan-mobile-day-open small { color: var(--muted); font-size: 9px; }
  .team-plan-mobile-day-open b { font-size: 12px; }
  .team-plan-mobile-day.is-overloaded .team-plan-mobile-day-open b { color: var(--danger); }
  .team-plan-mobile-day-open:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
  .team-plan-mobile-day .team-plan-items { margin-top: 8px; }
  .team-plan-item { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; }
  .team-plan-item strong { font-size: 10px; }
  .team-plan-item small { font-size: 9px; }
  .team-plan-more { min-height: 44px; padding: 8px 2px; }
  .capacity-day-summary { grid-template-columns: 1fr; }
  .team-invite-row { align-items: flex-start; flex-direction: column; }
  .organization-hub-card { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .auth-story { min-height: auto; }
  .auth-copy { margin: 50px 0 20px; }
  .auth-copy > p:last-child { font-size: 15px; }
  .auth-card { padding: 8px 22px 25px; }
  .onboarding-head { padding: 0 18px; }
  .onboarding-head-actions { gap: 8px; }
  .onboarding-head-actions .step-label { display: none; }
  .onboarding-workspace-action { max-width: 58vw; padding-inline: 12px; }
  .onboarding-grid { width: calc(100% - 32px); }
  .onboarding-main h1 { font-size: 34px; }
  .onboarding-actions { align-items: stretch; flex-direction: column-reverse; gap: 8px; }
  .agent-onboarding-footer { flex-wrap: wrap; }
  .agent-onboarding-footer span { order: 3; flex-basis: 100%; text-align: center; }
  .agent-proposal { align-items: stretch; flex-direction: column; }
  .dictation-actions { flex-wrap: wrap; gap: 9px; }
  .speech-language-label { margin-left: 0; }
  .dictation-actions > .muted { width: 100%; margin-left: 0; }
  .management-dock { inset: 0; width: 100vw; height: 100dvh; z-index: 50; border-left: 0; box-shadow: none; transform: translateX(0); }
  .management-dock.is-collapsed { display: none; width: 100vw; transform: translateX(105%); pointer-events: none; }
  .management-dock-rail { display: none; }
  .management-dock-head { min-height: calc(64px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .management-dock-head > button { font-size: 0; }
  .management-dock-head > button::before { content: "←"; font-size: 18px; }
  .management-dock-messages { padding: 18px 14px; }
  .management-dock-messages .agent-message { max-width: 90%; }
  .management-dock-messages .agent-message p { font-size: 13px; }
  .agent-message.user .queue-message-actions button { min-height: 44px; padding: 8px 12px; }
  .management-dock-composer { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .management-dock-composer textarea { min-height: 72px; font-size: 16px; }
  .management-composer-context { min-height: 44px; padding: 5px 4px 5px 10px; }
  .management-composer-context button { width: 44px; height: 44px; }
  .modal-layer { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: min(90dvh, 800px); border-radius: 22px 22px 0 0; }
  .ai-debug-modal { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ai-debug-inspector { grid-template-columns: 1fr; grid-template-rows: minmax(120px, 32dvh) minmax(0,1fr); }
  .ai-debug-timeline { border-right: 0; border-bottom: 1px solid var(--line); }
  .ai-debug-detail { padding: 14px; }
  .settings-modal .modal-head { padding: 18px 18px 14px; }
  .settings-modal .modal-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .settings-modal .workspace-module-settings { grid-template-columns: 1fr; }
  .settings-modal .module-setting-row { min-height: 72px; }
  .settings-modal .form-grid { grid-template-columns: 1fr; }
  .permission-context-list { grid-template-columns: 1fr; }
  .workspace-modal .modal-head { padding: 18px 18px 14px; }
  .workspace-modal-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .workspace-choice-grid { grid-template-columns: 1fr; }
  .workspace-create-section { padding: 16px; }
  .workspace-create-section form { grid-template-columns: 1fr; }
  .workspace-create-section .form-actions .button { width: 100%; min-height: 48px; justify-content: center; }
  .drawer { width: 100%; height: 100dvh; }
  .drawer-body { padding: 16px 16px calc(90px + env(safe-area-inset-bottom)); }
  .outcome-budget-grid { grid-template-columns: 1fr; }
  .goal-archive-section { align-items: stretch; flex-direction: column; }
  .goal-archive-section .button { width: 100%; min-height: 44px; }
  .report-message { max-width: 96%; }
  .report-composer-shell > textarea { min-height: 72px; font-size: 16px; }
  .report-composer-actions > span { font-size: 8px; }
  .report-evidence { grid-template-columns: 1fr; }
  .report-evidence h4 { grid-column: auto; }
  .external-head > span:last-child { display: none; }
  .external-card { width: 100%; margin-top: 0; border: 0; border-radius: 0; box-shadow: none; padding: 20px 16px calc(36px + env(safe-area-inset-bottom)); }
  .external-report-message { max-width: 94%; }
  .external-composer-actions { align-items: stretch; flex-direction: column; }
  .external-composer-actions .button { width: 100%; min-height: 48px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .report-message.is-optimistic, .report-message.is-pending,
  .agent-nav-item.is-new-question .agent-nav-mark,
  .management-dock-rail.is-new-question .agent-avatar,
  .management-dock-head .agent-avatar.is-new-question,
  .decision-item.agent-question-decision.is-new-question,
  .voice-button.is-icon-only.is-listening .voice-icon { animation: none; }
  .decision-resolution-progress i,
  .decision-preparing-status i { animation: none; }
}
