/* v1.4: soft elevation and AI workspace, retaining the approved centered width. */
:root {
  --paper: #f4f6f8;
  --brand: #4263bc;
  --brand-dark: #304d9d;
  --brand-pale: #edf2ff;
  --radius: 16px;
  --space-card: 24px;
  --space-grid: 24px;
  --card-shadow: 0 8px 24px rgba(149,157,165,.1);
}
.metrics, .metrics.three, .business-summary, .overview-grid, .settings-grid,
.arena-grid, .business-links { gap: 24px; }
.metrics .metric, .business-summary>div, .panel, .daily-list, .business-stores,
.assistant-compose, .assistant-output, .client-list, .business-links>button,
.followup-list>.task-row, .deal-card { border-radius: 16px; box-shadow: var(--card-shadow); }
.metrics .metric, .business-summary>div, .padded, .assistant-compose, .deal-card { padding: 24px; }
.panel-heading, .daily-list .list-heading, .business-stores .list-heading,
.assistant-output .list-heading, .brand-row { padding: 24px; }
.panel.agenda { background: transparent; border: 0; box-shadow: none; }
.agenda .panel-heading { padding: 0 0 20px; }
.followup-list { gap: 24px; }
.followup-list>.task-row { padding: 24px; }

/* Rounded tinted navigation, with no leading stripe or layout shift. */
.sidebar-navigation .nav-item { border: 0; border-radius: 8px; padding: 10px 16px; }
.sidebar-navigation .nav-item.active, .sidebar-navigation .nav-item.active:hover {
  border: 0; background: #e8f0fe; color: #3659ad; font-weight: 650;
}
.sidebar-navigation .nav-item.active::before { display: none; }
.sidebar-navigation .nav-item:hover { background: #f2f5fb; }
.button.primary { background: #e8f0fe; border-color: transparent; color: #3659ad; }
.button.primary:hover { background: #dce7fc; border-color: transparent; color: #294a9b; }

/* Separate white table rows with eight pixels of visible page background. */
.panel:has(>.table-scroll) { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.panel:has(>.table-scroll)>.panel-heading { padding: 0 0 20px; }
.table-scroll { padding: 0 4px 16px; }
.table-scroll table { border-collapse: separate; border-spacing: 0 8px; background: transparent; }
.table-scroll th { background: transparent; border: 0; font-size: 11px; color: #8794a5; height: 44px; padding: 12px 20px; }
.table-scroll td { background: #fff; border: 0; padding: 18px 20px; height: 80px; }
.table-scroll tbody tr { box-shadow: 0 4px 14px rgba(149,157,165,.07); }
.table-scroll tbody tr:hover td { background: #fbfcff; }
.table-scroll td:first-child { border-radius: 16px 0 0 16px; padding-left: 24px; }
.table-scroll td:last-child { border-radius: 0 16px 16px 0; padding-right: 24px; }
.table-scroll .selected-row td { background: #edf2ff; }
.panel:has(>.task-row) { display: grid; gap: 24px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.panel>.task-row { background: #fff; border: 0; border-radius: 16px; padding: 24px; box-shadow: var(--card-shadow); }

/* Consistent, subtle brand coding in tables and opportunity cards. */
.shop-chip, .shop-chip.available, .shop-chip.won, .deal-store { border-radius: 999px; border: 0; }
.shop-chip[data-shop="大金空调"], .deal-store[data-shop="大金空调"] { background: #edf4ff; color: #355d9f; }
.shop-chip[data-shop="皮阿诺"], .deal-store[data-shop="皮阿诺"] { background: #edf7f1; color: #367252; }
.shop-chip[data-shop="老板电器"], .deal-store[data-shop="老板电器"] { background: #f2effb; color: #6c529d; }
.shop-chip:not(.available):not(.won) { opacity: .6; }
.deal-store { padding: 4px 9px; font-size: 11px; }
.kanban { gap: 24px; }
.kanban-column { background: #eef1f5; border-radius: 16px; padding: 24px 16px; box-shadow: none; }
.deal-card { margin-bottom: 24px; background: #fff; border-color: rgba(255,255,255,.8); }
.deal-card:hover { border-color: #c9d6f1; box-shadow: 0 12px 28px rgba(125,145,178,.16); }

/* Horizontal AI scenes first, followed by scope and authorization controls. */
.assistant-intro { padding: 24px 0; border: 0; }
.assistant-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.assistant-compose { border: 1px solid #e8edf4; }
.assistant-choices { margin: 0 0 24px; }
.assistant-choices legend { font-size: 14px; margin-bottom: 16px; }
.assistant-choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.assistant-choices .assistant-choice {
  position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr);
  gap: 16px; align-items: start; padding: 24px; margin: 0; border-radius: 16px;
  background: #fff; border: 1px solid #e6ebf2; box-shadow: 0 4px 12px rgba(149,157,165,.07);
}
.choice-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #f0f4ff; border-radius: 12px; color: #5975bc; }
.assistant-choice input { position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: #5975bc; }
.choice-copy { padding-top: 2px; padding-right: 8px; }
.assistant-choice b { display: block; font-size: 15px; line-height: 1.6; }
.assistant-choice small { margin-top: 8px; font-size: 12px; line-height: 1.8; color: #707e91; }
.assistant-choices .assistant-choice.selected { border-color: #8ba5e4; background: #f6f8ff; box-shadow: 0 4px 16px rgba(95,126,195,.12); }
.assistant-choice.selected .choice-icon { background: #e5edff; color: #4263bc; }
.assistant-choice:has(input:focus-visible) { outline: 2px solid #5975bc; outline-offset: 3px; }
.assistant-controls { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 32px; padding-top: 24px; border-top: 1px solid #eef1f5; }
.assistant-inputs { min-width: 0; }
.assistant-customer { margin-bottom: 16px; font-size: 13px; }
.assistant-scope { font-size: 12px; color: #68788d; margin-bottom: 0; }
.assistant-actions .quiet-note { font-size: 12px; line-height: 1.8; color: #68788d; }
.assistant-consent { margin: 16px 0; font-size: 12px; line-height: 1.7; }
.assistant-actions .button.full { width: auto; min-width: 180px; height: 40px; padding: 0 20px; }
.assistant-actions .assistant-note { margin-top: 12px; font-size: 11px!important; color: #7c8798; }
.assistant-demo { background: #f4f7ff; padding: 12px 16px; border-radius: 8px; }

/* A quiet blue/violet workspace gives the empty state a clear visual center. */
.assistant-output {
  background: linear-gradient(135deg,#f3f8ff 0%,#f7f7ff 52%,#faf5ff 100%);
  border: 1px solid #e6eaf7; overflow: hidden;
}
.assistant-output .list-heading { background: transparent; border-bottom-color: rgba(109,131,180,.1); }
.assistant-answer { padding: 24px; min-height: 340px; }
.assistant-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 292px; padding: 24px; }
.assistant-orb { position: relative; isolation: isolate; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: linear-gradient(140deg,#eef4ff,#ede8ff); color: #6b75c8; margin-bottom: 24px; }
.assistant-orb::before { content: ''; position: absolute; z-index: -1; inset: -16px; border-radius: 50%; background: radial-gradient(circle,rgba(133,144,231,.25),rgba(133,144,231,0) 70%); animation: ai-breathe 3.6s ease-in-out infinite; }
.assistant-orb svg { filter: drop-shadow(0 3px 8px rgba(106,112,198,.2)); }
.assistant-placeholder h3 { font-size: 20px; font-weight: 550; line-height: 1.6; color: #43506b; margin: 0 0 12px; }
.assistant-placeholder p { max-width: 56ch; font-size: 13px; line-height: 1.8; color: #748099; }
.assistant-prompt-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.assistant-prompt-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.75); color: #6d7893; font-size: 12px; }
.ai-text { background: rgba(255,255,255,.88); padding: 24px; border-radius: 16px; color: #354156; line-height: 1.9; }
.ai-loading { padding: 0; }
@keyframes ai-breathe { 0%,100% { transform: scale(.88); opacity: .55; } 50% { transform: scale(1.12); opacity: 1; } }
@media(max-width:1100px) {
  .assistant-choices .assistant-choice { grid-template-columns: 1fr; }
  .choice-copy { padding-right: 0; }
}
@media(max-width:760px) {
  .assistant-choice-grid { grid-template-columns: 1fr; gap: 16px; }
  .assistant-choices .assistant-choice { grid-template-columns: 44px minmax(0,1fr); }
  .assistant-controls { grid-template-columns: 1fr; gap: 24px; }
  .assistant-actions .button.full { width: 100%; height: 44px; }
  .assistant-placeholder { padding: 24px 0; }
  .assistant-placeholder h3 { font-size: 18px; }
  .assistant-orb { width: 72px; height: 72px; border-radius: 22px; }
}
@media(prefers-reduced-motion:reduce) { .assistant-orb::before { animation: none; transform: none; opacity: .7; } }

/* v1.5: quick actions and a free question form share a focused floating card. */
.assistant-layout .assistant-compose { padding: 0; border: 0; background: transparent; box-shadow: none; }
.assistant-workbench, .assistant-controls { padding: 24px; border: 1px solid #e8edf4; border-radius: 16px; background: #fff; box-shadow: var(--card-shadow); }
.assistant-controls { margin-top: 24px; }
.assistant-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.assistant-choices .assistant-choice { min-height: 128px; }
.assistant-question-label { display: block; margin: 28px 0 12px; font-size: 14px; font-weight: 550; color: #4e5d74; }
.assistant-prompt { display: flex; align-items: flex-end; gap: 16px; padding: 16px; border: 1px solid #dfe6f3; border-radius: 12px; background: #f8faff; }
.assistant-prompt:focus-within { border-color: #839cd8; box-shadow: 0 0 0 3px rgba(89,117,188,.1); background: #fff; }
.assistant-prompt textarea { flex: 1; min-width: 0; min-height: 92px; width: auto; margin: 0; padding: 4px; resize: vertical; border: 0; border-radius: 0; background: transparent; font-size: 15px; line-height: 1.8; }
.assistant-prompt textarea:focus { border: 0; outline: none; background: transparent; }
.assistant-prompt textarea::placeholder { font-size: 14px; color: #8a97aa; }
.assistant-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px; flex-shrink: 0; border: 0; border-radius: 10px; background: #526fbd; color: #fff; font-size: 14px; }
.assistant-send:hover { background: #425fae; }
.assistant-prompt-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: 11px; color: #8491a4; line-height: 1.6; }
.ai-thinking-dots { display: flex; align-items: center; gap: 8px; height: 24px; margin-bottom: 16px; }
.ai-thinking-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #8393cc; animation: ai-dot 1.2s ease-in-out infinite; }
.ai-thinking-dots i:nth-child(2) { animation-delay: .15s; }
.ai-thinking-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%,70%,100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-5px); opacity: 1; } }
@media(max-width:760px) {
  .assistant-choice-grid { grid-template-columns: 1fr; gap: 16px; }
  .assistant-choices .assistant-choice { min-height: 0; }
  .assistant-prompt { gap: 8px; padding: 12px; }
  .assistant-prompt textarea { font-size: 16px; }
  .assistant-send { min-height: 44px; padding: 10px 12px; }
  .assistant-send span { display: none; }
}
@media(prefers-reduced-motion:reduce) { .ai-thinking-dots i { animation: none; opacity: .75; } }
