@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #162235;
  --muted: #748095;
  --muted-light: #9aa5b6;
  --paper: #f7f9fc;
  --card: #ffffff;
  --line: #e7ebf2;
  --sidebar: #111b2a;
  --sidebar-muted: #7f8ca2;
  --purple: #765cf4;
  --purple-soft: #f0edff;
  --green: #26aa7a;
  --orange: #ee9851;
  --blue: #4b94df;
  --shadow: 0 10px 32px rgba(29, 44, 73, 0.06);
  font-family: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(118, 92, 244, 0.24); outline-offset: 2px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; padding: 27px 16px 20px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 13px 41px; }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; }
.brand-mark span { display: block; border-radius: 4px; background: #a493ff; }
.brand-mark span:nth-child(1) { height: 14px; opacity: .6; }
.brand-mark span:nth-child(2) { height: 23px; opacity: .82; }
.brand-mark span:nth-child(3) { height: 30px; background: #fff; }
.brand-name { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .17em; }
.brand-subtitle { margin: 3px 0 0; color: #97a4b8; font-size: 11px; letter-spacing: .08em; }
.sidebar-label { margin: 0 13px 13px; color: #637087; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.sidebar-label-spaced { margin-top: 37px; }
.main-nav { display: grid; gap: 6px; }
.nav-item, .recent-chat { color: var(--sidebar-muted); background: transparent; height: 43px; border-radius: 9px; display: flex; align-items: center; padding: 0 13px; gap: 12px; text-align: left; transition: .2s ease; }
.nav-item { font-size: 13px; font-weight: 600; }
.nav-item:hover, .recent-chat:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: rgba(118, 92, 244, .17); box-shadow: inset 3px 0 var(--purple); }
.nav-icon { position: relative; display: inline-flex; justify-content: center; align-items: center; width: 17px; height: 17px; color: currentColor; }
.icon-grid::before { content: ''; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 3px; box-shadow: inset 0 4px 0 transparent; }
.icon-grid::after { content: ''; position: absolute; width: 5px; height: 1px; background: currentColor; box-shadow: 0 4px currentColor; left: 6px; top: 5px; }
.icon-spark { color: #a99bff; font-size: 18px; line-height: 1; }
.icon-book::before { content: ''; width: 12px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px 4px 4px 2px; }
.icon-book::after { content: ''; position: absolute; width: 1px; height: 11px; background: currentColor; left: 8px; top: 3px; opacity: .8; }
.icon-mail::before { content: ''; width: 14px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-mail::after { content: ''; position: absolute; width: 8px; height: 8px; top: 1px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.nav-count { margin-left: auto; border-radius: 10px; min-width: 22px; padding: 2px 6px; text-align: center; font-size: 10px; color: #d1caff; background: rgba(118, 92, 244, .32); }
.nav-badge { margin-left: auto; padding: 2px 5px; color: #9c8cff; border: 1px solid rgba(156,140,255,.28); border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 7px; letter-spacing: .08em; }
.nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px rgba(118,92,244,.12); }
.recent-chats { display: grid; gap: 3px; }
.recent-chat { height: 51px; gap: 10px; padding: 0 12px; }
.recent-chat.is-selected { background: rgba(255,255,255,.06); }
.recent-chat-dot { width: 6px; height: 6px; flex: 0 0 auto; background: var(--purple); border-radius: 50%; }
.recent-chat-dot.muted { background: #536177; }
.recent-chat-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.recent-chat-copy strong { max-width: 150px; color: #c3cad6; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-chat-copy small { color: #5f6d83; font-size: 10px; }
.sidebar-footer { margin-top: auto; padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.connection-status { display: flex; align-items: center; gap: 7px; margin: 0 5px 16px; color: #91a0b4; font-size: 10px; }
.status-pulse, .tiny-pulse { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #43d09a; box-shadow: 0 0 0 4px rgba(67,208,154,.11); }
.profile-row { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #8a75fc, #4a35bf); font-size: 12px; font-weight: 800; }
.profile-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.profile-copy strong { color: #e3e7ed; font-size: 11px; font-weight: 600; }
.profile-copy span { color: #6f7d92; font-size: 10px; }
.more-button { color: #8692a6; background: transparent; letter-spacing: 2px; padding: 4px; margin-left: auto; }

.main-content { min-width: 0; flex: 1; background: var(--paper); }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 62px); border-bottom: 1px solid var(--line); background: rgba(247,249,252,.86); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #a0aabc; font-size: 12px; }
.breadcrumb strong { color: #41506a; font-weight: 600; }
.breadcrumb-slash { color: #d1d6de; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.date-chip { display: flex; align-items: center; gap: 8px; color: #69778c; background: transparent; font-size: 11px; }
.calendar-icon { position: relative; width: 14px; height: 14px; border: 1.5px solid #8592a5; border-radius: 3px; }
.calendar-icon::before { content: ''; position: absolute; left: -1px; right: -1px; top: 3px; height: 1px; background: #8592a5; }
.calendar-icon::after { content: ''; position: absolute; left: 3px; top: -3px; width: 1px; height: 4px; background: #8592a5; box-shadow: 6px 0 #8592a5; }
.icon-button, .help-button { position: relative; display: grid; place-items: center; width: 30px; height: 30px; color: #8793a5; background: transparent; border-radius: 50%; }
.icon-button:hover, .help-button:hover { background: #edf0f5; }
.bell-icon { width: 13px; height: 13px; border: 1.5px solid #8793a5; border-radius: 8px 8px 4px 4px; border-bottom: 0; position: relative; }
.bell-icon::before { content: ''; position: absolute; left: -3px; bottom: -3px; width: 17px; height: 1.5px; background: #8793a5; border-radius: 4px; }
.bell-icon::after { content: ''; position: absolute; left: 4px; bottom: -6px; width: 3px; height: 3px; background: #8793a5; border-radius: 50%; }
.notification-dot { position: absolute; width: 5px; height: 5px; right: 3px; top: 3px; border-radius: 50%; background: var(--purple); border: 1px solid var(--paper); }
.help-button { border: 1px solid #dce1e9; font-size: 12px; font-weight: 700; }
.view-container { max-width: 1450px; margin: 0 auto; padding: 42px clamp(24px, 4vw, 62px) 62px; }
.view-panel { display: none; animation: view-in .28s ease both; }
.view-panel.is-visible { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: #9ba5b5; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .11em; }
.eyebrow-line { width: 22px; height: 1px; background: var(--purple); }
h1 { margin: 0; color: #172235; font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.wave { display: inline-block; margin-left: 4px; color: var(--purple); font-size: .58em; vertical-align: .26em; }
.welcome-copy { margin: 12px 0 0; color: #7c889b; font-size: 13px; line-height: 1.8; }
.assistant-status { display: flex; align-items: center; gap: 8px; color: #3b4b62; font-size: 11px; font-weight: 700; padding: 9px 13px; border: 1px solid #e5e9f0; border-radius: 7px; background: rgba(255,255,255,.57); }
.assistant-status small { padding-left: 3px; color: #a5afbe; font-weight: 400; }
.insight-strip { display: grid; grid-template-columns: minmax(330px, 2.2fr) repeat(3, minmax(120px, 1fr)); gap: 10px; margin-top: 36px; }
.insight-card, .insight-mini { min-height: 81px; border-radius: 8px; }
.insight-primary { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #e0dbff; background: linear-gradient(105deg, #f1efff, #faf9ff); }
.insight-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--purple); box-shadow: 0 7px 14px rgba(118,92,244,.22); font-size: 16px; }
.insight-primary > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.insight-label { color: #917ff2; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.insight-primary strong { color: #47546b; font-size: 12px; font-weight: 600; line-height: 1.4; }
.text-arrow { margin-left: auto; flex: 0 0 auto; color: var(--purple); background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-arrow span { margin-left: 4px; font-size: 15px; }
.insight-mini { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #e9edf3; background: rgba(255,255,255,.7); color: #78859a; font-size: 11px; line-height: 1.45; }
.mini-number { color: #293952; font-size: 25px; font-weight: 700; letter-spacing: -.05em; }
.insight-mini small { color: #abb3c0; font-size: 10px; }
.today-layout { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(295px, .75fr); gap: 17px; margin-top: 17px; }
.card-surface { border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: var(--shadow); }
.assistant-card { min-height: 548px; display: flex; flex-direction: column; padding: 27px 28px 20px; }
.card-heading { display: flex; align-items: center; gap: 11px; }
.card-heading h2 { margin: 0; color: #2b3a53; font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.card-heading p { margin: 4px 0 0; color: #9aa5b6; font-size: 10px; }
.assistant-heading { padding-bottom: 22px; border-bottom: 1px solid #f0f2f6; }
.heading-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 8px; font-size: 15px; }
.purple-icon { color: #fff; background: linear-gradient(145deg, #917cff, #6546e9); }
.blue-icon { color: #fff; background: linear-gradient(145deg, #74b5f0, #3d83ca); }
.model-pill { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 9px; color: #8c98aa; border: 1px solid #edf0f4; border-radius: 5px; font-family: 'DM Mono', monospace; font-size: 9px; }
.tiny-pulse { width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(67,208,154,.1); }
.chat-window { flex: 1; min-height: 270px; padding: 22px 5px 10px; overflow-y: auto; }
.message { display: flex; gap: 11px; max-width: 690px; animation: message-in .25s ease both; }
.message + .message { margin-top: 22px; }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.message-user { margin-left: auto; flex-direction: row-reverse; }
.message-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 7px; color: #fff; background: var(--purple); font-size: 13px; }
.message-user .message-avatar { color: #59677d; background: #e9edf4; font-size: 10px; font-weight: 800; }
.message-body { min-width: 0; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 1px 0 7px; color: #a2adbd; font-size: 9px; }
.message-meta strong { color: #637188; font-size: 10px; font-weight: 700; }
.message-user .message-meta { justify-content: end; }
.message-bubble { color: #69778d; font-size: 12px; line-height: 1.8; }
.message-bubble p { margin: 0 0 7px; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-bubble em { color: #5f4ade; font-style: normal; background: var(--purple-soft); padding: 2px 4px; border-radius: 3px; }
.message-user .message-bubble { padding: 9px 12px; color: #fff; background: #6e56e8; border-radius: 9px 2px 9px 9px; line-height: 1.6; }
.message-user .message-bubble p { margin: 0; }
.answer-list { display: grid; gap: 8px; margin-top: 12px; }
.answer-item { display: flex; align-items: start; gap: 8px; padding: 9px 10px; color: #59677d; border: 1px solid #edf0f5; border-radius: 6px; background: #fcfcfe; font-size: 11px; line-height: 1.45; }
.answer-item span { color: var(--purple); font-size: 12px; }
.answer-item strong { display: block; color: #3d4d65; font-weight: 700; }
.answer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.answer-action { color: var(--purple); border: 1px solid #ded9ff; border-radius: 5px; padding: 6px 9px; background: #faf9ff; font-size: 10px; font-weight: 700; }
.answer-action:hover { background: var(--purple-soft); }
.thinking .message-bubble { display: flex; align-items: center; gap: 4px; color: #a5afbd; }
.thinking-dot { width: 5px; height: 5px; background: #a7b0bf; border-radius: 50%; animation: dot 1s infinite ease-in-out; }
.thinking-dot:nth-child(2) { animation-delay: .14s; }.thinking-dot:nth-child(3) { animation-delay: .28s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 0 16px; }
.suggestion-chip { padding: 7px 10px; color: #8793a5; border: 1px solid #e7ebf2; border-radius: 5px; background: #fff; font-size: 10px; transition: .2s ease; }
.suggestion-chip span { color: var(--purple); margin-right: 4px; }
.suggestion-chip:hover { color: var(--purple); border-color: #d9d2ff; background: #fbfaff; }
.composer { padding: 12px 13px 10px; border: 1px solid #e1e6ef; border-radius: 8px; background: #fbfcfe; transition: .2s ease; }
.composer:focus-within { border-color: #c7befd; background: #fff; box-shadow: 0 0 0 3px rgba(118,92,244,.07); }
.composer textarea { display: block; width: 100%; min-height: 27px; max-height: 90px; padding: 0; resize: none; color: #35445b; border: 0; outline: 0; background: transparent; font-size: 12px; line-height: 1.6; }
.composer textarea::placeholder { color: #aab3c0; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.composer-tools { display: flex; align-items: center; gap: 9px; color: #a8b1bf; font-size: 9px; }
.tool-button { width: 19px; height: 19px; color: #8c97a8; border: 1px solid #e3e7ee; border-radius: 4px; background: #fff; line-height: 16px; }
.send-button { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 12px; color: #fff; border-radius: 5px; background: var(--purple); font-size: 10px; font-weight: 700; box-shadow: 0 4px 10px rgba(118,92,244,.2); transition: .2s ease; }
.send-button:hover { background: #6548e7; transform: translateY(-1px); }
.send-button:disabled { cursor: wait; opacity: .68; transform: none; }
.send-arrow { font-size: 13px; line-height: 1; }
.today-sidebar { display: grid; align-content: start; gap: 17px; }
.focus-card, .activity-card { padding: 22px 21px 16px; }
.compact-heading { justify-content: space-between; align-items: start; }
.ghost-button { padding: 4px 0; color: #9ca7b6; background: transparent; font-size: 10px; }
.ghost-button:hover { color: var(--purple); }
.progress-track { width: 100%; height: 4px; margin: 18px 0 16px; overflow: hidden; border-radius: 4px; background: #eef0f5; }
.progress-track span { display: block; height: 100%; width: 37%; border-radius: 4px; background: linear-gradient(90deg, #9c8cff, var(--purple)); transition: width .25s ease; }
.task-list { display: grid; gap: 1px; }
.task-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f1f3f6; }
.task-check { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; padding: 0; border: 1px solid #d8dee8; border-radius: 4px; background: #fff; transition: .2s ease; }
.task-check:hover { border-color: var(--purple); }
.task-item.is-done .task-check { color: #fff; border-color: var(--purple); background: var(--purple); }
.task-item.is-done .task-check::after { content: '✓'; display: block; font-size: 10px; line-height: 13px; }
.task-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.task-copy strong { color: #55637a; font-size: 11px; font-weight: 600; line-height: 1.35; }
.task-item.is-done .task-copy strong { color: #a9b2bf; text-decoration: line-through; }
.task-copy small { color: #abb4c1; font-size: 9px; }
.task-priority { width: 5px; height: 5px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: #e8b15e; }
.task-priority.green { background: #60c39c; }.task-priority.purple { background: #9b8cf2; }
.add-task-row, .memory-input-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 9px; border: 1px solid #e9edf2; border-radius: 5px; background: #fbfcfd; }
.add-task-row:focus-within, .memory-input-row:focus-within { border-color: #c9c0ff; background: #fff; }
.add-task-row input, .memory-input-row input { min-width: 0; flex: 1; color: #5c6a7e; border: 0; outline: 0; background: transparent; font-size: 10px; }
.add-task-row input::placeholder, .memory-input-row input::placeholder { color: #a9b2bf; }
.add-task-row button { width: 18px; height: 18px; color: var(--purple); border-radius: 4px; background: #f0edff; font-size: 14px; line-height: 16px; }
.activity-card { padding-bottom: 19px; }
.activity-list { display: grid; gap: 15px; margin-top: 18px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; }
.activity-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; color: var(--purple); border-radius: 6px; background: var(--purple-soft); font-size: 11px; }
.activity-icon.green { color: var(--green); background: #eaf8f2; }.activity-icon.orange { color: var(--orange); background: #fff4e9; }
.activity-copy { display: flex; flex-direction: column; gap: 3px; }
.activity-copy strong { color: #68758a; font-size: 10px; font-weight: 600; line-height: 1.45; }
.activity-copy small { color: #abb4c1; font-size: 9px; }
.approval-card { padding: 20px 21px 16px; }
.approval-lock { display: grid; place-items: center; width: 23px; height: 23px; color: #aa9df1; border-radius: 6px; background: #f0edff; font-size: 13px; }
.approval-list { display: grid; gap: 9px; margin-top: 16px; }
.approval-item { padding: 10px; border: 1px solid #f0e5d7; border-radius: 6px; background: #fffaf5; }
.approval-item.is-confirmed { border-color: #d9eee5; background: #f7fcf9; }
.approval-item strong { display: block; color: #6a7586; font-size: 10px; line-height: 1.45; }
.approval-item p { margin: 4px 0 8px; color: #a09b99; font-size: 9px; line-height: 1.45; }
.approval-item.is-confirmed p { color: #79a28d; }
.approval-actions { display: flex; gap: 7px; }
.approval-action { padding: 5px 7px; color: #987149; border: 1px solid #f0dcc2; border-radius: 4px; background: #fff; font-size: 9px; font-weight: 700; }
.approval-action:hover { background: #fff4e6; }
.approval-action.secondary { color: #a0a7b1; border-color: #e7e9ed; }
.approval-item.is-confirmed .approval-action { color: #4c9b76; border-color: #cae7d9; background: #fff; }
.approval-empty, .empty-state { padding: 12px 0 4px; color: #adb5c1; font-size: 10px; line-height: 1.55; }

.inbox-intro { margin-bottom: 24px; }
.assistant-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric-card { display: grid; gap: 5px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.metric-card span { color: #8995a6; font-size: 9px; font-weight: 700; letter-spacing: .05em; }.metric-card strong { color: #394960; font-size: 25px; line-height: 1; }.metric-card small { color: #a2acb9; font-size: 9px; }
.metric-card.urgent { border-color: #f1d8c8; background: #fffaf6; }.metric-card.urgent strong { color: #c56e43; }
.assistant-inbox-card { padding: 22px 24px; }.inbox-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.inbox-actions select { height: 31px; padding: 0 9px; color: #66758a; border: 1px solid #e0e5ec; border-radius: 5px; background: #fff; font-size: 9px; }
.assistant-sync-errors { display: grid; gap: 5px; margin-top: 14px; padding: 10px 12px; color: #9a624e; border: 1px solid #f0d6ca; border-radius: 6px; background: #fff7f4; font-size: 9px; }
.assistant-message-list { display: grid; gap: 9px; margin-top: 18px; }
.assistant-message { display: grid; grid-template-columns: 95px minmax(0, 1fr) 180px; gap: 15px; align-items: start; padding: 14px; border: 1px solid #eaedf2; border-radius: 8px; background: #fcfdff; }
.assistant-message.is-priority { border-left: 3px solid #e58a5d; background: #fffdfb; }.assistant-message-source { display: grid; gap: 6px; justify-items: start; }
.channel-pill, .category-pill, .status-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border-radius: 999px; font-size: 8px; font-weight: 700; }
.channel-pill { color: #6752d5; background: #eeebff; }.assistant-message-source small { color: #9ca6b4; font-size: 8px; }.assistant-message-copy { min-width: 0; }
.assistant-message-copy > div { display: flex; align-items: center; gap: 8px; }.assistant-message-copy strong { color: #56657a; font-size: 10px; }
.category-pill { color: #49866f; background: #eaf8f2; }.category-pill.quotation, .category-pill.delivery, .category-pill.payment { color: #a66e35; background: #fff4e7; }.category-pill.complaint { color: #b65757; background: #fff0f0; }
.assistant-message-copy h3 { margin: 7px 0 5px; color: #35455c; font-size: 12px; }.assistant-message-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: #818c9d; font-size: 9px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.assistant-message-copy small { display: block; margin-top: 7px; color: #9387d7; font-size: 8px; }
.assistant-message-side { display: grid; gap: 7px; justify-items: end; }.assistant-message-side time { max-width: 100%; overflow: hidden; color: #a5aebb; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.status-chip { color: #68758a; background: #edf1f5; }.status-chip.drafted { color: #8d6a30; background: #fff2d8; }.status-chip.waiting { color: #4479a6; background: #eaf5ff; }.status-chip.done { color: #3f8a69; background: #e8f7ef; }
.assistant-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.assistant-row-actions button { padding: 5px 7px; color: #6652cf; border: 1px solid #ddd7ff; border-radius: 4px; background: #fff; font-size: 8px; }.assistant-row-actions button:hover { background: #f7f5ff; }.assistant-row-actions button:disabled { opacity: .55; }
.assistant-dialog { width: min(680px, calc(100vw - 36px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 28px 80px rgba(26,37,58,.25); }.assistant-dialog::backdrop { background: rgba(24,34,49,.45); }.assistant-dialog-inner { display: grid; gap: 14px; padding: 24px; }
.email-intro { margin-bottom: 29px; }
.mailbox-card { margin-bottom: 17px; padding: 22px 25px; }
.mailbox-toolbar { display: flex; align-items: end; gap: 14px; margin-top: 17px; }
.mailbox-toolbar .field-label { width: min(320px, 48%); }
.mail-unread-toggle { display: flex; align-items: center; gap: 6px; min-height: 38px; color: #768397; font-size: 10px; }
.mailbox-status { margin-left: auto; padding-bottom: 10px; color: #9aa5b4; font-size: 9px; }
.mailbox-list { display: grid; gap: 7px; max-height: 310px; margin-top: 16px; overflow: auto; }
.mailbox-item { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(220px,1.4fr) auto; gap: 14px; align-items: center; padding: 11px 12px; text-align: left; border: 1px solid #edf0f4; border-radius: 7px; background: #fcfdff; }
.mailbox-item:hover { border-color: #d5cef9; background: #faf9ff; }
.mailbox-item strong, .mailbox-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-item strong { color: #5f6d82; font-size: 10px; }.mailbox-item span { color: #7d899b; font-size: 10px; }.mailbox-item time { color: #a3adba; font-size: 8px; }
.email-send-button { padding: 7px 11px; color: #fff; border-radius: 5px; background: #31946f; font-size: 10px; font-weight: 700; }
.email-send-button:disabled { cursor: wait; opacity: .6; }
.send-address-row { margin-top: 15px; }
.email-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); gap: 17px; align-items: start; }
.email-source-card { padding: 27px 28px 24px; }
.email-form { display: grid; gap: 16px; padding-top: 22px; }
.email-form-row { display: grid; gap: 12px; }
.email-form-row.two-columns { grid-template-columns: 1fr 1fr; }
.field-label { display: grid; gap: 7px; color: #5e6d83; font-size: 10px; font-weight: 700; }
.field-label > span { display: flex; align-items: center; justify-content: space-between; }
.field-label em { color: #a091f4; font-size: 8px; font-style: normal; font-weight: 600; }
.field-label input, .field-label textarea, .field-label select { width: 100%; color: #3f4e65; border: 1px solid #e3e8ef; border-radius: 7px; background: #fbfcfe; outline: 0; font-size: 11px; line-height: 1.65; transition: .2s ease; }
.field-label input, .field-label select { height: 38px; padding: 0 11px; }
.field-label textarea { min-height: 72px; padding: 10px 11px; resize: vertical; }
.field-label input:focus, .field-label textarea:focus, .field-label select:focus { border-color: #c8bfff; background: #fff; box-shadow: 0 0 0 3px rgba(118,92,244,.07); }
.field-label input::placeholder, .field-label textarea::placeholder { color: #b0b8c4; }
.email-safety-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; color: #8b806f; border: 1px solid #f0e6d9; border-radius: 7px; background: #fffaf5; }
.email-safety-note > span { color: #bd9162; font-size: 15px; }
.email-safety-note p { margin: 0; font-size: 9px; line-height: 1.65; }
.email-safety-note strong { display: block; color: #7b6954; font-size: 10px; }
.email-generate-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; color: #fff; border-radius: 7px; background: linear-gradient(135deg, #816af4, #6547df); box-shadow: 0 7px 18px rgba(118,92,244,.2); font-size: 11px; font-weight: 700; }
.email-generate-button:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(118,92,244,.25); }
.email-generate-button:disabled { cursor: wait; opacity: .68; transform: none; }
.email-result-column { display: grid; gap: 17px; }
.email-analysis-card, .email-draft-card, .email-history-card { padding: 22px 22px 19px; }
.analysis-status { padding: 5px 8px; color: #919baa; border: 1px solid #e7eaf0; border-radius: 5px; background: #fafbfd; font-size: 9px; font-weight: 700; }
.analysis-status.low { color: #31946f; border-color: #cae9dc; background: #f2fbf7; }
.analysis-status.medium { color: #b67d3d; border-color: #f1dec5; background: #fff9f1; }
.analysis-status.high { color: #c35f5f; border-color: #f0cccc; background: #fff5f5; }
.email-empty-state { display: flex; align-items: center; gap: 11px; min-height: 82px; padding: 18px 4px 3px; color: #a6afbd; }
.email-empty-state > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; color: #9888ec; border-radius: 8px; background: #f1efff; font-size: 14px; }
.email-empty-state p { margin: 0; font-size: 10px; line-height: 1.65; }
.email-analysis-result { display: grid; gap: 10px; margin-top: 17px; }
.analysis-block { padding: 10px 11px; border: 1px solid #edf0f4; border-radius: 6px; background: #fcfdff; }
.analysis-block span { display: block; margin-bottom: 5px; color: #9ba6b6; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.analysis-block strong { color: #56657a; font-size: 10px; line-height: 1.55; }
.analysis-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.analysis-list li { display: flex; gap: 7px; color: #7e899a; font-size: 9px; line-height: 1.5; }
.analysis-list li::before { content: '•'; color: #9484eb; }
.draft-field { margin-top: 15px; }
.draft-field textarea { min-height: 220px; background: #fff; }
.email-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; }
.email-draft-actions .outline-button { margin-left: 0; }
.email-copy-button { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 7px 11px; color: #fff; border-radius: 5px; background: var(--purple); font-size: 10px; font-weight: 700; }
.email-status-line { margin: 10px 0 0; color: #adb5c0; font-size: 8px; text-align: right; }
.email-draft-history { display: grid; gap: 8px; margin-top: 15px; }
.email-history-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; color: #68758a; border: 1px solid #edf0f4; border-radius: 6px; background: #fcfdff; text-align: left; }
.email-history-item:hover { border-color: #dcd6ff; background: #faf9ff; }
.email-history-item > span { display: grid; place-items: center; width: 23px; height: 23px; color: #7c68e9; border-radius: 6px; background: #efecff; font-size: 10px; }
.email-history-item > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.email-history-item strong { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.email-history-item small { color: #a8b0bc; font-size: 8px; }

.page-intro { margin-bottom: 38px; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.workflow-card { min-height: 259px; padding: 23px 20px 19px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); transition: .2s ease; }
.workflow-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(29,44,73,.1); }
.workflow-card-featured { border-color: #ddd7ff; background: linear-gradient(150deg, #f5f2ff, #fff); }
.workflow-top { display: flex; align-items: start; justify-content: space-between; }
.workflow-number { color: #a4adba; font-family: 'DM Mono', monospace; font-size: 10px; }
.workflow-icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--purple); border-radius: 9px; background: #edeaff; font-size: 17px; }
.workflow-icon.green { color: var(--green); background: #eaf8f2; }.workflow-icon.orange { color: var(--orange); background: #fff4e9; }.workflow-icon.blue { color: var(--blue); background: #edf6ff; }
.workflow-card h3 { margin: 33px 0 9px; color: #2f3e57; font-size: 16px; letter-spacing: -.025em; }
.workflow-card p { min-height: 57px; margin: 0; color: #8995a6; font-size: 11px; line-height: 1.75; }
.workflow-action { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--purple); background: transparent; font-size: 10px; font-weight: 700; }
.workflow-action span { font-size: 15px; transition: transform .2s ease; }.workflow-action:hover span { transform: translateX(3px); }
.workflow-note { display: flex; align-items: center; gap: 12px; margin-top: 17px; padding: 18px 20px; border: 1px dashed #d9dfe9; border-radius: 8px; background: rgba(255,255,255,.48); }
.workflow-note > span { color: var(--purple); font-size: 19px; }.workflow-note strong { color: #54637a; font-size: 11px; }.workflow-note p { margin: 5px 0 0; color: #99a4b3; font-size: 10px; line-height: 1.5; }.outline-button { margin-left: auto; padding: 7px 12px; color: #6c58df; border: 1px solid #dcd6ff; border-radius: 5px; background: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.outline-button:hover { background: #f7f5ff; }
.memory-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 17px; }
.preference-card, .saved-memory-card { padding: 25px 25px 22px; }
.preference-list { display: grid; gap: 0; margin-top: 24px; }.preference-item { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid #f0f2f6; }.preference-symbol { display: grid; place-items: center; width: 27px; height: 27px; color: var(--blue); border-radius: 6px; background: #edf6ff; font-size: 11px; font-weight: 700; }.preference-item strong { color: #57667b; font-size: 11px; }.preference-item p { margin: 4px 0 0; color: #a5afbd; font-size: 9px; }.preference-item > div { min-width: 0; flex: 1; }.toggle { width: 27px; height: 16px; position: relative; flex: 0 0 auto; border-radius: 12px; background: #dfe4eb; }.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: .2s ease; }.toggle.is-on { background: var(--purple); }.toggle.is-on::after { left: 14px; }
.memory-list { display: grid; gap: 10px; margin-top: 20px; }.memory-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #edf0f5; border-radius: 6px; background: #fcfdff; }.memory-item > span { color: #9b8cf2; font-size: 12px; }.memory-item p { flex: 1; margin: 0; color: #68768b; font-size: 11px; line-height: 1.55; }.memory-delete { color: #b5bdc8; background: transparent; font-size: 13px; }.memory-delete:hover { color: #e27878; }.memory-input-row button { padding: 6px 9px; color: #fff; border-radius: 4px; background: var(--purple); font-size: 10px; font-weight: 700; }
.toast { position: fixed; z-index: 10; right: 25px; bottom: 25px; max-width: 320px; padding: 11px 15px; color: #fff; border-radius: 6px; background: #26344a; box-shadow: 0 8px 25px rgba(22,34,53,.18); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) { .sidebar { width: 220px; flex-basis: 220px; }.insight-strip { grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(95px, 1fr)); }.today-layout, .email-layout { grid-template-columns: minmax(0, 1fr); }.email-result-column { grid-template-columns: 1fr 1fr; }.email-history-card { grid-column: 1 / -1; }.today-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }.workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sidebar { width: 62px; flex-basis: 62px; padding: 21px 9px 15px; }.brand-lockup { padding: 0 7px 35px; }.brand-lockup > div:last-child, .sidebar-label, .nav-item > span:not(.nav-icon):not(.nav-count), .recent-chats, .sidebar-footer .connection-status, .profile-copy, .profile-row .more-button { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-count { position: absolute; margin: -27px 0 0 26px; min-width: 16px; padding: 1px 4px; font-size: 8px; }.sidebar-footer { padding: 15px 0 0; }.profile-row { justify-content: center; }.topbar { height: 64px; padding: 0 18px; }.date-chip span:last-child, .help-button { display: none; }.view-container { padding: 30px 17px 45px; }.welcome-row { align-items: start; flex-direction: column; }.assistant-status { align-self: flex-start; }.insight-strip { grid-template-columns: 1fr 1fr 1fr; margin-top: 25px; }.insight-primary { grid-column: 1 / -1; }.insight-mini { min-height: 68px; }.mini-number { font-size: 21px; }.today-layout { margin-top: 13px; }.assistant-card, .email-source-card { padding: 21px 17px 15px; }.model-pill { display: none; }.chat-window { min-height: 300px; }.composer-tools span { display: none; }.today-sidebar, .email-result-column { grid-template-columns: 1fr; }.email-history-card { grid-column: auto; }.email-form-row.two-columns { grid-template-columns: 1fr; }.email-copy-button { margin-left: 0; }.mailbox-toolbar { align-items: stretch; flex-direction: column; }.mailbox-toolbar .field-label { width: 100%; }.mail-unread-toggle { min-height: auto; }.mailbox-status { margin-left: 0; padding: 0; }.mailbox-item { grid-template-columns: 1fr; gap: 4px; }.workflow-grid, .memory-layout { grid-template-columns: 1fr; }.workflow-note { align-items: start; flex-wrap: wrap; }.outline-button { margin-left: 39px; }.email-draft-actions .outline-button { margin-left: 0; }.page-intro { margin-bottom: 28px; } }
@media (max-width: 420px) { .insight-strip { gap: 7px; }.insight-mini { gap: 5px; flex-direction: column; text-align: center; }.insight-mini span:last-child { font-size: 9px; }.insight-mini small { font-size: 8px; }.suggestion-row { gap: 5px; }.suggestion-chip { padding: 6px 7px; }.suggestion-chip:nth-child(3) { display: none; } }

@media (max-width: 1080px) {
  .assistant-metrics { grid-template-columns: repeat(2, 1fr); }
  .assistant-message { grid-template-columns: 80px minmax(0, 1fr); }
  .assistant-message-side { grid-column: 2; justify-items: start; }
  .assistant-row-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .assistant-metrics { grid-template-columns: 1fr 1fr; }
  .assistant-message { grid-template-columns: 1fr; }
  .assistant-message-side { grid-column: auto; justify-items: start; }
  .inbox-actions { width: 100%; margin: 12px 0 0; flex-wrap: wrap; }
  .sidebar { width: 154px; flex-basis: 154px; }
  .nav-item { justify-content: flex-start; padding: 0 10px; gap: 9px; }
  .nav-item > span:not(.nav-icon):not(.nav-count):not(.nav-badge):not(.nav-dot) { display: inline; }
  .nav-count, .nav-badge, .nav-dot { position: static; margin-left: auto; }
}

.live-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 16px; }
.today-layout[hidden] { display: none !important; }
.live-home-card { display: grid; gap: 5px; min-height: 122px; padding: 19px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.live-home-card:hover { border-color: rgba(118,92,244,.45); transform: translateY(-1px); }
.live-home-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.live-home-card strong { color: var(--text); font-size: 30px; }
.live-home-card small { color: var(--muted); line-height: 1.4; }
.live-home-card.priority { background: linear-gradient(145deg, #fff, #fff7f2); border-color: rgba(238,137,76,.3); }
.live-home-list-card { padding: 22px; }
.home-action-list { display: grid; gap: 8px; margin-top: 16px; }
.home-action-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.home-action-item:hover { background: #faf9ff; border-color: rgba(118,92,244,.35); }
.home-action-copy { display: grid; gap: 4px; min-width: 0; }
.home-action-copy strong, .home-action-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-action-copy small { color: var(--muted); }
@media (max-width: 980px) { .live-home-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .live-home-grid { grid-template-columns: 1fr; }.home-action-item { grid-template-columns: 70px minmax(0, 1fr); }.home-action-item .status-chip { grid-column: 2; justify-self: start; } }
