* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Söhne', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
}

/* ---- Desktop app shell — fills the browser window ---- */
.app-shell {
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
}

/* Main column (right of the sidebar): top bar + content */
.main-column {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* ---- ChatGPT desktop top bar ---- */
.top-tabs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.top-tabs-spacer { flex: 1; }

.drag-region { display: none; }

/* Centered Chat | Work segmented toggle */
.top-tabs { position: relative; }
.chat-work-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 3px;
}

.cw-seg {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #5d5d5d;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.cw-seg.active {
  background: #ffffff;
  color: #0d0d0d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.topbar-round-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
}
.topbar-round-btn:hover { background: #f0f0f0; color: #0d0d0d; }

/* Gmail becomes a small pill button on the right */
#tab-gmail {
  font-size: 13px;
  font-weight: 500;
  color: #5d5d5d;
  border: 1px solid #e5e5e5;
  padding: 6px 12px;
}
#tab-gmail:active { background: #ececec; }
.top-tab.active { color: #0d0d0d; }

.tab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-badge.hidden { display: none; }

/* Views fill the app shell */
.view { width: 100%; height: 100%; overflow: hidden; display: none; }
.view.active { display: flex; }

/* ChatGPT desktop layout — persistent sidebar + main column */
.aisuite-layout { display: flex; width: 100%; height: 100%; }

/* Persistent history sidebar (always visible on desktop) */
.aisuite-sidebar {
  flex-shrink: 0;
  width: 260px;
  height: 100%;
  background: #f9f9f9;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 6px 12px;
}

.sidebar-brand {
  font-size: 18px;
  font-weight: 600;
  color: #0d0d0d;
  letter-spacing: -0.2px;
}

.rail-top-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rail-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d5d5d;
  cursor: pointer;
}
.rail-icon-btn:hover { background: #ececec; color: #0d0d0d; }

.rail-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 4px;
}

/* Sidebar text rows (New chat, Search, Library...) */
.nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #0d0d0d;
  cursor: pointer;
  text-align: left;
}
.nav-row svg { color: #5d5d5d; flex-shrink: 0; }
.nav-row:hover { background: #ececec; }

.sidebar-history {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 0;
}

.history-section-label {
  font-size: 12px;
  font-weight: 500;
  color: #8f8f8f;
  padding: 10px 10px 4px;
}

.history-item {
  padding: 8px 10px;
  font-size: 14px;
  color: #2d2d2d;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item:hover { background: #ececec; }
.history-item.active { background: #ececec; }

.sidebar-footer {
  padding: 8px 10px;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  color: #0d0d0d;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 8px;
}
.sidebar-footer:hover { background: #ececec; }
.sidebar-footer-text { flex: 1; min-width: 0; }
.sidebar-footer-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d5d5d;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-footer-icon:hover { background: #e0e0e0; color: #0d0d0d; }

/* Project rows + show-more */
.history-item.project {
  display: flex;
  align-items: center;
  gap: 9px;
}
.history-item.project svg { color: #8f8f8f; flex-shrink: 0; }
.history-item.show-more {
  font-size: 13px;
  color: #8f8f8f;
}

.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6e3fd6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-footer-sub {
  font-size: 12px;
  color: #8f8f8f;
}

/* preserved hidden session marker for app.js wiring */
.sidebar-session { display: none; }

/* Main content area */
.aisuite-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
}

.aisuite-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.aisuite-empty h1 {
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
  text-align: center;
}

.aisuite-input-area {
  width: 100%;
  max-width: 768px;
}

.empty-suggestions {
  width: 100%;
  max-width: 768px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.empty-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 8px;
  border: none;
  background: none;
  border-top: 1px solid #ececec;
  font-family: inherit;
  font-size: 15px;
  color: #5d5d5d;
  text-align: left;
  cursor: pointer;
}
.empty-suggestion span { color: #5d5d5d; }
.empty-suggestion:hover { color: #0d0d0d; }
.empty-suggestion:hover span { color: #0d0d0d; }

.chat-input-bottom {
  padding: 16px 24px 24px;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

/* Single-line composer pill (current ChatGPT style) */
.aisuite-input-wrapper {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 28px;
  padding: 8px 10px 8px 8px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.aisuite-input-wrapper input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  color: #0d0d0d;
  padding: 6px 4px;
}

.aisuite-input-wrapper input::placeholder { color: #9b9b9b; }

.composer-plus {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 400;
  color: #5d5d5d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.composer-plus:hover { background: #f0f0f0; }

.composer-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.composer-effort {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: #5d5d5d;
  padding: 6px 8px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.composer-effort:hover { background: #f0f0f0; }

.composer-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 50%;
  color: #5d5d5d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.composer-icon:hover { background: #f0f0f0; }

.composer-voice {
  width: 36px;
  height: 36px;
  border: none;
  background: #0d0d0d;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.composer-voice:hover { background: #2d2d2d; }

.model-selector {
  font-size: 13px;
  color: #8f8f8f;
  cursor: pointer;
  margin-right: 6px;
  white-space: nowrap;
}
.model-selector strong { color: #0d0d0d; font-weight: 600; }

.suggestion-pills {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0d0d0d;
  cursor: pointer;
}
.pill svg { color: #5d5d5d; }
.pill:hover { background: #f9f9f9; border-color: #e5e5e5; }

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ececec;
  color: #5d5d5d;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:hover { background: #0d0d0d; color: #fff; }

.notebook-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: #8f8f8f;
  border-top: 1px solid #ececec;
}

.nb-icon { font-size: 16px; }
.nb-desc { color: #9b9b9b; }

/* Chat */
.aisuite-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.aisuite-chat.hidden { display: none; }

.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  background: #ffffff;
}

.chat-breadcrumb {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 14px;
  color: #5d5d5d;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
}

.breadcrumb-title { color: #0d0d0d; font-weight: 500; }
.breadcrumb-chevron { color: #8f8f8f; }

.share-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #0d0d0d;
  cursor: pointer;
  transition: all 0.15s;
}

.share-btn:hover { background: #f4f4f4; border-color: #e5e5e5; }

.chat-input-bottom {
  flex-shrink: 0;
  background: #ffffff;
  padding: 8px 16px 14px;
}

.chat-input-bottom::after {
  content: 'ChatGPT can make mistakes. Check important info.';
  display: block;
  text-align: center;
  font-size: 12px;
  color: #9b9b9b;
  margin-top: 10px;
}

/* Messages */
.message {
  max-width: 720px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-user {
  align-self: flex-end;
  background: #f4f4f4;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #0d0d0d;
  max-width: 540px;
}

.message-assistant {
  font-size: 15px;
  line-height: 1.6;
  color: #0d0d0d;
}

/* ChatGPT uses the same sans for prose and UI — no serif */
.message-assistant > p,
.message-assistant > ul,
.message-assistant > ol,
.message-assistant > h1,
.message-assistant > h2,
.message-assistant > h3 {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: normal;
}

.message-assistant p { margin-bottom: 14px; }
.message-assistant strong { font-weight: 600; }
.message-assistant ul,
.message-assistant ol { margin: 10px 0 14px 22px; padding-left: 0; }
.message-assistant li { margin-bottom: 8px; padding-left: 4px; }
.message-assistant > ul > li, .message-assistant > ol > li {
  font-family: inherit;
  font-size: 16px;
}

/* Spawned tasks (thinking state) */
.spawned-tasks {
  margin: 16px 0;
}

.spawned-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-family: inherit;
  font-size: 14px;
  color: #8f8f8f;
  animation: fadeIn 0.4s ease;
}

.spawned-task .arrow { color: #8f8f8f; }
.spawned-task .spawned-label { display: none; }
.spawned-task .spawned-desc { color: #8f8f8f; }
.spawned-task .spawned-type { color: #b4b4b4; }

.spawned-task.done .spawned-desc { color: #5d5d5d; }

/* ChatGPT "Thinking" shimmer — a light sweep across the word while loading */
.thinking-shimmer {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  background: linear-gradient(90deg, #b4b4b4 0%, #b4b4b4 35%, #0d0d0d 50%, #b4b4b4 65%, #b4b4b4 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: thinkingSweep 1.6s linear infinite;
}

@keyframes thinkingSweep {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}

/* legacy dots indicator — no longer rendered, kept harmless */
.thinking-dots { display: none; }

/* Attention items */
.attention-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e5e5;
}

.attention-item:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.attention-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.attention-header.attention-red { color: #b93a2a; }
.attention-header.attention-yellow { color: #9a6b2e; }
.attention-header.attention-green { color: #4a7c4e; }

/* Signal collapsible */
.signal-collapse {
  margin: 8px 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.signal-collapse summary {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #5d5d5d;
  cursor: pointer;
  background: #f7f7f7;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-collapse summary::before {
  content: '▶';
  font-size: 9px;
  color: #9b9b9b;
  transition: transform 0.15s;
}

.signal-collapse[open] summary::before {
  transform: rotate(90deg);
}

.signal-collapse summary:hover {
  background: #ececec;
}

.signal-body {
  padding: 12px 14px;
  font-size: 13px;
  color: #2d2d2d;
  line-height: 1.5;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}

.signal-desc {
  margin-bottom: 8px;
  font-style: italic;
}

.signal-when {
  font-size: 12px;
  font-weight: 500;
  color: #5d5d5d;
  margin-bottom: 4px;
}

.signal-body ul {
  margin: 4px 0 0 16px;
  font-size: 13px;
}

.signal-body li {
  margin-bottom: 3px;
}

/* Signal open (non-collapsible, used in email) */
.signal-open {
  margin: 12px 0 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f7f7f7;
  font-size: 13px;
  color: #2d2d2d;
  line-height: 1.5;
}

.signal-open-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8f8f8f;
  margin-bottom: 8px;
}

.signal-open .signal-desc {
  margin-bottom: 8px;
  font-style: italic;
}

.signal-open .signal-when {
  font-size: 12px;
  font-weight: 500;
  color: #5d5d5d;
  margin-bottom: 4px;
}

.signal-open ul {
  margin: 4px 0 0 16px;
  font-size: 13px;
}

.signal-open li {
  margin-bottom: 3px;
}

.attention-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8f8f8f;
  margin-top: 16px;
  margin-bottom: 6px;
}

.followup-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.followup-label {
  font-size: 11px;
  font-weight: 600;
  color: #8f8f8f;
  white-space: nowrap;
}

.followup-btn {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: #2d2d2d;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.followup-btn:hover {
  background: #f7f7f7;
  border-color: #cdcdcd;
}

/* Signals considered */
.signals-considered {
  margin-top: 24px;
  padding-top: 0;
}

.signals-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8f8f8f;
  margin-bottom: 10px;
}

.signals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-chip {
  font-size: 11px;
  color: #5d5d5d;
  background: #f7f7f7;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

/* Deal cards */
.deal-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-card .deal-name { font-weight: 600; color: #0d0d0d; font-size: 14px; }
.deal-card .deal-amount { font-weight: 600; color: #0d0d0d; font-size: 14px; }
.deal-card .deal-detail { font-size: 12px; color: #5d5d5d; }

/* Chart */
.chart-container {
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.chart-container img { width: 100%; display: block; }

/* Alert action */
.alert-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s;
}

.alert-action-btn:hover { background: #2d2d2d; }
.alert-action-btn.created { background: #10a37f; cursor: default; }

/* Alert created confirmation */
.alert-created {
  background: #f2f8f2;
  border: 1px solid #c3dfc5;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

.alert-created h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2d5e30;
  margin-bottom: 4px;
}

.alert-created p {
  font-size: 13px;
  color: #3d7040;
  margin: 0;
}

/* Suggested prompts */
.suggested-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.suggested-prompts button {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #2d2d2d;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.suggested-prompts button:hover {
  background: #f7f7f7;
  border-color: #cdcdcd;
}

/* Gmail Layout */
.gmail-layout { display: flex; width: 100%; height: 100%; }

.gmail-sidebar {
  width: 200px;
  background: #f6f8fc;
  padding: 16px 12px;
  border-right: 1px solid #e0e0e0;
}

.gmail-compose-btn {
  background: #c2e7ff;
  border-radius: 16px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  margin-bottom: 16px;
  text-align: center;
}

.gmail-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  border-radius: 20px;
  cursor: pointer;
}

.gmail-nav-item:hover { background: #e8e8e8; }
.gmail-nav-item.active { background: #d3e3fd; font-weight: 600; }
.gmail-count { margin-left: auto; font-size: 12px; font-weight: 600; }

/* Gmail Main */
.gmail-main { flex: 1; background: #fff; overflow-y: auto; }

.gmail-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.gmail-toolbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}

.gmail-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  gap: 12px;
  font-size: 13px;
}

.gmail-row:hover { background: #f8f9fa; }

.gmail-row.new {
  background: #fff;
  font-weight: 500;
}

.gmail-row.new .gmail-row-sender { font-weight: 700; }

.gmail-row-check { color: #bbb; }
.gmail-row-star { color: #bbb; font-size: 16px; }
.gmail-row-sender { width: 160px; flex-shrink: 0; color: #1a1a1a; font-size: 13px; }
.gmail-row-subject { flex: 1; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmail-row-subject strong { color: #1a1a1a; }
.gmail-row-date { font-size: 12px; color: #666; flex-shrink: 0; }

/* Gmail detail */
.gmail-detail { padding: 20px 32px; }
.gmail-detail.hidden { display: none; }

.gmail-back {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: #1a73e8;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
}

.gmail-subject {
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.gmail-email-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.gmail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.gmail-sender-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.gmail-sender-email { font-weight: 400; color: #666; font-size: 12px; }
.gmail-to { font-size: 12px; color: #666; }
.gmail-email-date { margin-left: auto; font-size: 12px; color: #666; }

.gmail-email-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.email-metric-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.email-metric-value { font-size: 42px; font-weight: 700; color: #dc2626; }
.email-metric-label { font-size: 14px; font-weight: 600; color: #374151; margin-top: 4px; }
.email-metric-threshold { font-size: 13px; color: #6b7280; margin-top: 2px; }

.email-section { margin-bottom: 20px; }
.email-section h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.email-section ul { margin-left: 20px; }
.email-section li { margin-bottom: 4px; }

.email-why {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px;
}

.email-why h3 { color: #92400e; }
.email-why ul { color: #78350f; }

.email-copy-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.copy-explainer {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

.copy-insights-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-insights-btn:hover { background: #2d2d2d; }
.copy-insights-btn.copied { background: #10a37f; }

/* Revenue table */
.revenue-table {
  margin: 8px 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

.revenue-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #ececec;
}

.revenue-table-row:last-child { border-bottom: none; }

.revenue-table-product { font-size: 13px; color: #2d2d2d; }
.revenue-table-amount { font-size: 13px; font-weight: 600; color: #2d2d2d; }

.revenue-table-total {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
}

.revenue-table-total .revenue-table-product { font-weight: 700; color: #0d0d0d; }
.revenue-table-total .revenue-table-amount { font-weight: 700; color: #b93a2a; font-size: 14px; }

/* Brief section headers */
.brief-section-header {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 16px 0 8px;
}

.brief-section-header.risk {
  background: #fdf4f0;
  color: #b93a2a;
  border: 1px solid #f0ccc4;
}

.brief-section-header.action {
  background: #f2f8f2;
  color: #2d5e30;
  border: 1px solid #c3dfc5;
}

.brief-footer {
  font-size: 12px;
  color: #8f8f8f;
  margin-top: 16px;
  font-style: italic;
}

/* Insights-specific: header row with feedback */
.attention-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.attention-header-row .attention-header {
  flex: 1;
}

/* Severity badges */
.severity-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.severity-high { background: #fdf4f0; color: #b93a2a; border: 1px solid #f0ccc4; }
.severity-medium { background: #fdf8ed; color: #9a6b2e; border: 1px solid #f0deb0; }
.severity-low { background: #f2f8f2; color: #4a7c4e; border: 1px solid #c3dfc5; }

/* Feedback buttons */
.insight-feedback {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.feedback-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  transition: all 0.15s;
}

.feedback-btn:hover { background: #f7f7f7; }
.feedback-dismiss:hover { color: #b93a2a; border-color: #f0ccc4; }
.feedback-affirm:hover { color: #4a7c4e; border-color: #c3dfc5; }
.feedback-affirm.affirmed { background: #f2f8f2; color: #4a7c4e; border-color: #c3dfc5; }
.feedback-share:hover { color: #5b5fc7; border-color: #d4d4f0; }
.feedback-share.shared { background: #f0f0fa; color: #5b5fc7; border-color: #d4d4f0; }

/* Feedback card (dismiss flow) */
.feedback-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  animation: fadeIn 0.2s ease;
}

.feedback-question {
  font-size: 13px;
  font-weight: 500;
  color: #2d2d2d;
  margin-bottom: 8px;
}

.feedback-input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #2d2d2d;
  outline: none;
  margin-bottom: 10px;
}

.feedback-input:focus { border-color: #0d0d0d; }
.feedback-input::placeholder { color: #9b9b9b; }

.feedback-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.feedback-skip-btn, .feedback-submit-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.feedback-skip-btn {
  background: none;
  color: #8f8f8f;
}

.feedback-skip-btn:hover { color: #2d2d2d; }

.feedback-submit-btn {
  background: #0d0d0d;
  color: #fff;
}

.feedback-submit-btn:hover { background: #2d2d2d; }

/* Feedback confirmation */
.feedback-confirmation {
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  animation: fadeIn 0.3s ease;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-confirmation.dismiss {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
}

.feedback-confirmation.affirm {
  background: #f2f8f2;
  border: 1px solid #c3dfc5;
}

.feedback-confirm-header {
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 8px;
}

.feedback-effects {
  margin: 0 0 10px 16px;
  color: #2d2d2d;
}

.feedback-effects li {
  margin-bottom: 4px;
}

.feedback-how {
  font-size: 12px;
  color: #8f8f8f;
  font-style: italic;
  margin: 0;
}


/* Date picker — top-right of the bar; advances the demo week. */
.date-picker-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.date-nav-arrow {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 16px;
  color: #5d5d5d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.date-nav-arrow:active { background: #ececec; color: #0d0d0d; }
.date-nav-arrow:disabled { opacity: 0.3; cursor: default; }
.date-nav-arrow:disabled:active { background: none; color: #5d5d5d; }

.date-nav-label {
  font-size: 13px;
  font-weight: 500;
  color: #5d5d5d;
  min-width: 92px;
  text-align: center;
}

/* Clarification options (chat flow) */
.clarification-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.clarification-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.12s;
}

.clarification-btn:hover {
  background: #f7f7f7;
  border-color: #cdcdcd;
}

.clarification-btn-label {
  font-size: 14px;
  font-weight: 500;
  color: #0d0d0d;
}

.clarification-btn-desc {
  font-size: 12px;
  color: #8f8f8f;
  margin-top: 2px;
}

/* Belief challenge card */
.belief-challenge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  animation: fadeIn 0.3s ease;
}

.belief-challenge-header {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.belief-challenge-body {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 10px;
}

.belief-challenge-actions {
  display: flex;
  gap: 8px;
}

.belief-challenge-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #fde68a;
  background: #fff;
  color: #92400e;
  transition: all 0.15s;
}

.belief-challenge-btn:hover { background: #fef3c7; }
.belief-challenge-btn.primary { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.belief-challenge-btn.primary:hover { background: #d97706; }

/* Previously surfaced badge */
.previously-surfaced {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #5d5d5d;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.previously-surfaced-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d0d0d;
}

/* Add belief card */
.add-belief-section {
  margin-top: 24px;
  padding-top: 0;
}

.add-belief-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px dashed #e5e5e5;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  color: #5d5d5d;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.add-belief-btn:hover { background: #f7f7f7; border-color: #cdcdcd; }

.add-belief-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.add-belief-form textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #2d2d2d;
  outline: none;
  resize: none;
  height: 70px;
  margin-bottom: 10px;
}

.add-belief-form textarea:focus { border-color: #0d0d0d; }
.add-belief-form textarea::placeholder { color: #9b9b9b; }

.add-belief-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.add-belief-cancel {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: #8f8f8f;
}

.add-belief-save {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: #0d0d0d;
  color: #fff;
}

.add-belief-save:hover { background: #2d2d2d; }

.add-belief-confirmation {
  background: #f2f8f2;
  border: 1px solid #c3dfc5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #2d5e30;
  animation: fadeIn 0.3s ease;
}

/* Week transition overlay */
.week-transition {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.4s ease;
}

.week-transition-content {
  text-align: center;
  color: #fff;
}

.week-transition-content h2 {
  font-family: inherit;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}

.week-transition-content p {
  font-size: 14px;
  color: #b4b4b4;
}

/* Share to Teams modal */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.share-modal {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.share-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e5e5;
}

.share-modal-header svg {
  flex-shrink: 0;
}

.share-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0d0d0d;
}

.share-modal-body {
  padding: 20px 24px;
}

.share-field-label {
  font-size: 12px;
  font-weight: 500;
  color: #5d5d5d;
  margin-bottom: 6px;
}

.share-channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.share-channel-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
}

.share-channel-option:hover {
  background: #f7f7f7;
  border-color: #cdcdcd;
}

.share-channel-option.selected {
  background: #f0f0f0;
  border-color: #0d0d0d;
}

.share-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #5b5fc7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.share-channel-icon.person {
  background: #4a90a4;
  border-radius: 50%;
}

.share-channel-name {
  font-size: 13px;
  font-weight: 500;
  color: #0d0d0d;
}

.share-channel-desc {
  font-size: 11px;
  color: #8f8f8f;
}

.share-message-input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #2d2d2d;
  outline: none;
  resize: none;
  height: 60px;
}

.share-message-input:focus { border-color: #0d0d0d; }
.share-message-input::placeholder { color: #9b9b9b; }

.share-preview {
  margin-top: 12px;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.share-preview-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8f8f8f;
  margin-bottom: 8px;
}

.share-preview-card {
  background: #fff;
  border-left: 3px solid #5b5fc7;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
}

.share-preview-card-title {
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 2px;
}

.share-preview-card-desc {
  color: #5d5d5d;
  margin-bottom: 6px;
}

.share-preview-card-link {
  color: #5b5fc7;
  font-weight: 500;
  font-size: 11px;
}

.share-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e5e5e5;
}

.share-cancel-btn {
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #5d5d5d;
  cursor: pointer;
}

.share-cancel-btn:hover { background: #f7f7f7; }

.share-send-btn {
  padding: 8px 20px;
  border: none;
  background: #5b5fc7;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}

.share-send-btn:hover { background: #4a4eb5; }
.share-send-btn:disabled { opacity: 0.5; cursor: default; }

/* Share confirmation inline */
.share-confirmation {
  background: #f0f0fa;
  border: 1px solid #d4d4f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

.share-confirmation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.share-confirmation-header svg {
  flex-shrink: 0;
}

.share-confirmation-header span {
  font-size: 14px;
  font-weight: 600;
  color: #3d3d8f;
}

.share-confirmation-preview {
  background: #fff;
  border-left: 3px solid #5b5fc7;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.share-confirmation-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 2px;
}

.share-confirmation-preview-desc {
  font-size: 12px;
  color: #5d5d5d;
  margin-bottom: 8px;
}

.share-confirmation-preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #5b5fc7;
  background: #f0f0fa;
  padding: 4px 10px;
  border-radius: 4px;
}

.share-confirmation-note {
  font-size: 12px;
  color: #5d5d5d;
  font-style: italic;
}

/* Share button style (Teams purple variant) */
.proposal-action-share {
  background: #5b5fc7;
}

.proposal-action-share:hover {
  background: #4a4eb5;
}

.hidden { display: none !important; }

/* Word-by-word streaming reveal */
.stream-hidden { display: none !important; }
.stream-word { display: inline; }
.stream-reveal { animation: streamFade 0.18s ease forwards; }
@keyframes streamFade { from { opacity: 0; } to { opacity: 1; } }

/* (streaming cursor removed) */
.stream-spark { display: none !important; }

/* ChatGPT message action toolbar */
.msg-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  animation: fadeIn 0.25s ease;
}

.msg-action-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  cursor: pointer;
  transition: all 0.12s;
}
.msg-action-btn:hover { background: #f0f0f0; color: #0d0d0d; }

/* ============================================================
   Scheduled Tasks — sidebar badge, notification toast, run banner
   ============================================================ */

/* Sidebar "Tasks" badge — small count pill pushed to the right */
.tasks-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #0d0d0d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.tasks-nav-badge.hidden { display: none; }

/* ChatGPT-style desktop notification toast (top-right) */
.task-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 372px;
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  animation: taskToastIn 0.32s cubic-bezier(.22,.61,.36,1) both;
}
.task-toast:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.06); }
.task-toast.leaving { animation: taskToastOut 0.24s ease forwards; }

.task-toast-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-toast-main { min-width: 0; flex: 1; }
.task-toast-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.task-toast-app { font-size: 12px; font-weight: 700; color: #0d0d0d; }
.task-toast-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5d5d5d;
  background: #ececec;
  border-radius: 4px;
  padding: 2px 6px;
}
.task-toast-time { font-size: 11px; color: #8f8f8f; }
.task-toast-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: #8f8f8f;
  font-size: 16px;
  line-height: 1;
  border-radius: 5px;
  cursor: pointer;
}
.task-toast-close:hover { background: #f0f0f0; color: #0d0d0d; }
.task-toast-title { font-size: 14px; font-weight: 600; color: #0d0d0d; margin-bottom: 2px; }
.task-toast-body {
  font-size: 12.5px;
  line-height: 1.4;
  color: #5d5d5d;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes taskToastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes taskToastOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(20px) scale(0.98); }
}

/* "Scheduled task ran" banner above the delivered result */
.task-run-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 16px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 10px;
  font-size: 12.5px;
  color: #5d5d5d;
}
.task-run-banner .task-run-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19c37d;
  flex-shrink: 0;
}
.task-run-banner strong { color: #0d0d0d; font-weight: 600; }
