:root {
  --sidebar-width: 252px;
}

.workspace {
  grid-template-columns: var(--sidebar-width) minmax(620px, 1fr) 326px;
  transition: none;
}

body.dashboard-open .workspace,
body.general-chat-open .workspace {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.brand {
  width: var(--sidebar-width);
  transition: none;
}

.left-rail {
  position: relative;
}

.sidebar-resizer {
  position: absolute;
  z-index: 20;
  top: 0;
  right: -5px;
  bottom: 0;
  width: 10px;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}

.sidebar-resizer::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 4px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.sidebar-resizer:hover::after,
.sidebar-resizer:focus-visible::after,
.sidebar-resizing .sidebar-resizer::after {
  background: rgba(77, 220, 255, 0.72);
  box-shadow: 0 0 10px rgba(30, 167, 255, 0.38);
}

.sidebar-resizing,
.sidebar-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.language-toggle {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #65778e;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 10px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.language-toggle:hover {
  color: var(--cyan);
  border-color: rgba(77, 220, 255, 0.38);
  background: rgba(77, 220, 255, 0.055);
}

.language-toggle span,
.language-toggle b {
  font-weight: 650;
}

.language-toggle span {
  color: var(--cyan);
}

.language-toggle b {
  color: #607188;
}

.language-toggle i {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.language-toggle.is-en span {
  color: #607188;
}

.language-toggle.is-en b {
  color: var(--cyan);
}

:root[data-theme="light"] .language-toggle {
  background: #fff;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  overflow: visible;
}

.notification-count {
  position: absolute;
  top: -1px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 9px;
  color: #fff;
  background: #e59324;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.notification-count:empty {
  display: none;
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  z-index: 80;
  top: 42px;
  right: 0;
  width: 356px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 20, 34, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(22px);
  animation: notification-in 0.18s ease-out;
}

@keyframes notification-in {
  from { opacity: 0; transform: translateY(-7px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-panel > header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.notification-panel > header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-panel > header strong {
  color: var(--text);
  font-size: 12px;
}

.notification-panel > header small {
  color: var(--muted);
  font-size: 10px;
}

.notification-panel > header button,
.notification-panel > footer button {
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.notification-item {
  position: relative;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid rgba(113, 142, 171, 0.1);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  background: rgba(77, 220, 255, 0.045);
}

.notification-item.unread {
  background: linear-gradient(90deg, rgba(30, 167, 255, 0.07), transparent 72%);
}

.notification-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #dff7ff;
  background: rgba(77, 220, 255, 0.13);
  font-size: 10px;
  font-weight: 700;
}

.notification-avatar.violet { background: rgba(156, 124, 255, 0.16); color: #cfc3ff; }
.notification-avatar.green { background: rgba(76, 232, 165, 0.14); color: #8ef0c2; }
.notification-avatar.cyan { background: rgba(77, 220, 255, 0.14); color: #8eeaff; }

.notification-item > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.notification-item strong {
  color: #aebed0;
  font-size: 10px;
  font-weight: 500;
}

.notification-item strong b {
  color: var(--text);
  font-weight: 650;
}

.notification-item em {
  overflow: hidden;
  color: #7f94aa;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item small {
  color: #52657b;
  font-size: 9px;
}

.notification-item > i {
  position: absolute;
  top: 18px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.notification-item.unread > i {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(77, 220, 255, 0.65);
}

.notification-panel > footer {
  height: 42px;
  display: grid;
  place-items: center;
}

:root[data-theme="light"] .notification-panel {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(47, 72, 101, 0.2);
}

:root[data-theme="light"] .notification-item.unread {
  background: linear-gradient(90deg, rgba(30, 167, 255, 0.08), transparent 72%);
}

:root[data-theme="light"] .notification-item strong b {
  color: #263d55;
}

:root[data-theme] .sidebar-avatar,
.user-avatar {
  overflow: hidden;
  color: transparent !important;
  background-color: #d9dde2;
  background-image: url("assets/manager-zhang.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 180% auto;
  box-shadow: 0 4px 14px rgba(17, 31, 48, 0.18);
}

/* Quotation detail: metrics on the left, line items on the right. */
.quote-items-modal {
  width: min(1480px, calc(100vw - 40px));
  height: min(820px, calc(100vh - 40px));
  border-radius: 16px;
}

.quote-items-modal > header {
  min-height: 72px;
  padding-left: 20px;
  padding-right: 20px;
}

.quote-items-layout {
  grid-template-columns: minmax(430px, 0.78fr) minmax(690px, 1.42fr);
  background: rgba(255, 255, 255, 0.008);
}

.quote-summary-pane {
  order: 1;
  padding: 0 6px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 167, 255, 0.025), transparent 44%);
}

.quote-items-list {
  order: 2;
  border-right: 0;
  background: rgba(255, 255, 255, 0.008);
}

.quote-summary-title,
.quote-items-title {
  height: 50px;
  padding: 0 16px;
  border-bottom-color: rgba(113, 142, 171, 0.12);
}

.quote-summary-title strong,
.quote-items-title strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.quote-summary-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 12px 14px;
}

.quote-summary-cards article {
  min-height: 88px;
  justify-content: center;
  gap: 7px;
  padding: 13px 14px;
  border-color: rgba(113, 142, 171, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.quote-summary-cards article:first-child {
  border-color: rgba(77, 220, 255, 0.22);
  background: linear-gradient(135deg, rgba(30, 167, 255, 0.11), rgba(30, 167, 255, 0.025));
}

.quote-summary-cards small {
  color: #70849a;
  font-size: 10px;
}

.quote-summary-cards strong {
  color: #e2edf8;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.quote-summary-cards article:first-child strong {
  color: var(--cyan);
  font-size: 22px;
}

.quote-summary-cards span {
  font-size: 9px;
}

.product-quote-detail,
.cost-structure {
  margin: 0 12px 12px;
  border-color: rgba(113, 142, 171, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.product-quote-detail > header,
.cost-structure > header {
  height: 44px;
  padding: 0 13px;
}

.product-quote-detail th,
.product-quote-detail td {
  height: 42px;
  padding: 0 7px;
  font-size: 9px;
}

.cost-structure > div {
  padding: 12px 14px;
}

.cost-structure p {
  height: 9px;
}

.quote-table-scroll {
  padding: 0 14px 14px;
}

.quote-items-table {
  overflow: hidden;
  border: 1px solid rgba(113, 142, 171, 0.12);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

.quote-items-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 42px;
  color: #70839a;
  background: rgba(12, 24, 40, 0.96);
}

.quote-items-table td {
  height: 48px;
}

.quote-items-table th,
.quote-items-table td {
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: rgba(113, 142, 171, 0.09);
}

.quote-items-table tbody tr:not(.quote-group):hover td {
  background: rgba(77, 220, 255, 0.025);
}

.quote-items-table .quote-group td {
  height: 36px;
  background: rgba(30, 167, 255, 0.06);
}

.quote-items-modal > footer {
  min-height: 54px;
  padding-left: 20px;
  padding-right: 20px;
}

:root[data-theme="light"] .quote-summary-pane {
  background: linear-gradient(145deg, #f7fbfe, #ffffff 48%);
}

:root[data-theme="light"] .quote-items-list,
:root[data-theme="light"] .quote-items-layout {
  background: #fff;
}

:root[data-theme="light"] .quote-summary-cards article {
  border-color: #e1e9f0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(46, 72, 98, 0.045);
}

:root[data-theme="light"] .quote-summary-cards article:first-child {
  border-color: #b9e6f6;
  background: linear-gradient(135deg, #eefaff, #fff);
}

:root[data-theme="light"] .quote-summary-cards strong {
  color: #263e56;
}

:root[data-theme="light"] .quote-summary-cards article:first-child strong {
  color: #078fc4;
}

:root[data-theme="light"] .product-quote-detail,
:root[data-theme="light"] .cost-structure,
:root[data-theme="light"] .quote-items-table {
  border-color: #e3eaf1;
  background: #fff;
}

:root[data-theme="light"] .quote-items-table th {
  background: #f6f9fc;
}

@media (max-width: 1180px) {
  .quote-items-layout {
    grid-template-columns: minmax(390px, 0.85fr) minmax(620px, 1.35fr);
  }
}

.period-switch button.active {
  color: #fff !important;
}

/* Brand system and typography hierarchy. */
:root {
  --brand-start: #4275f8;
  --brand-end: #4f54e8;
  --brand-gradient: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  --brand-soft: linear-gradient(135deg, rgba(66, 117, 248, 0.16), rgba(79, 84, 232, 0.09));
  --cyan: #4275f8;
  --violet: #4f54e8;
  --line2: rgba(66, 117, 248, 0.38);
}

:root .primary-action,
:root .green-action,
:root .send-btn:not(:disabled),
:root .period-switch button.active {
  border-color: rgba(93, 120, 255, 0.68);
  color: #fff !important;
  background: var(--brand-gradient);
  box-shadow: 0 8px 22px rgba(66, 89, 236, 0.24);
}

:root .primary-action:hover,
:root .green-action:hover,
:root .send-btn:not(:disabled):hover,
:root .period-switch button.active:hover {
  background: linear-gradient(135deg, #5685ff, #5c61ef);
  box-shadow: 0 10px 28px rgba(66, 89, 236, 0.34);
  transform: translateY(-1px);
}

.new-task-btn {
  min-height: 42px;
  border-color: rgba(91, 116, 250, 0.52);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 9px 22px rgba(66, 89, 236, 0.18);
  font-size: 12px;
  font-weight: 650;
}

.new-task-btn svg,
.new-task-btn kbd {
  color: rgba(255, 255, 255, 0.92);
}

.new-task-btn:hover {
  border-color: rgba(118, 139, 255, 0.82);
  box-shadow: 0 11px 27px rgba(66, 89, 236, 0.3);
}

.dashboard-menu-btn.active,
.dashboard-menu-btn:hover {
  border-color: rgba(78, 92, 235, 0.45);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.78), 0 9px 24px rgba(66, 89, 236, 0.2);
}

.dashboard-menu-btn.active svg,
.dashboard-menu-btn:hover svg,
.dashboard-menu-btn.active small,
.dashboard-menu-btn:hover small,
.dashboard-menu-btn.active b,
.dashboard-menu-btn:hover b {
  color: rgba(255, 255, 255, 0.9);
}

.status-analysis button.active,
.project-modal-filters button.active {
  border-color: transparent;
  color: #fff !important;
  background: var(--brand-gradient);
  box-shadow: 0 8px 20px rgba(66, 89, 236, 0.2);
}

.project-item.selected {
  border-color: rgba(73, 98, 241, 0.34);
  background: var(--brand-soft);
  box-shadow: inset 3px 0 0 var(--brand-start);
}

.solution-tabs button.selected,
.assignee-options button.selected,
.rating-options button.selected {
  border-color: rgba(80, 96, 240, 0.48);
  background: var(--brand-soft);
  box-shadow: 0 7px 20px rgba(66, 89, 236, 0.1);
}

.solution-tabs button.selected strong,
.config-category-tabs button.active,
.reason-chips button.selected {
  color: #748dff;
}

.solution-tabs em,
.config-category-tabs button.active b,
.modal-icon,
.project-card-icon {
  color: #fff;
  background: var(--brand-gradient);
}

.quote-artifact,
.dashboard-card,
.project-detail-card {
  border-color: rgba(77, 94, 226, 0.2);
}

.quote-artifact {
  box-shadow: 0 16px 38px rgba(55, 71, 188, 0.13);
}

.quote-hero {
  background: radial-gradient(circle at 10% 20%, rgba(66, 117, 248, 0.17), transparent 52%), rgba(7, 15, 26, 0.72);
}

.quote-summary-cards article:first-child {
  border-color: rgba(77, 94, 226, 0.36);
  background: linear-gradient(135deg, rgba(66, 117, 248, 0.19), rgba(79, 84, 232, 0.08));
}

.quote-summary-cards article:first-child strong {
  color: #7f96ff;
}

.dashboard-kpis article {
  border-color: rgba(77, 94, 226, 0.18);
}

.dashboard-kpis article:first-child {
  border-color: rgba(77, 94, 226, 0.35);
  background: linear-gradient(135deg, rgba(66, 117, 248, 0.18), rgba(79, 84, 232, 0.08));
  box-shadow: 0 14px 32px rgba(55, 71, 188, 0.13);
}

.notification-item.unread {
  background: linear-gradient(90deg, rgba(66, 117, 248, 0.12), rgba(79, 84, 232, 0.025) 76%);
}

.notification-item.unread > i {
  background: var(--brand-start);
  box-shadow: 0 0 9px rgba(66, 117, 248, 0.68);
}

body {
  font-size: 14px;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small,
.system-health {
  font-size: 11px;
}

.workspace-name {
  font-size: 13px;
}

.dashboard-menu-btn strong,
.section-kicker,
.sidebar-profile strong {
  font-size: 12px;
}

.dashboard-menu-btn small,
.sidebar-profile small,
.project-item small,
.recent-item small {
  font-size: 10px;
}

.project-item strong,
.recent-item strong {
  font-size: 11px;
}

.task-heading h1 {
  font-size: 22px;
  line-height: 1.25;
}

.task-heading p {
  font-size: 12px;
  line-height: 1.55;
}

.task-status,
.plan-head strong,
.plan-step strong {
  font-size: 11px;
}

.message-meta strong,
.message-meta span,
.message-meta b {
  font-size: 11px;
}

.message-bubble {
  font-size: 12px;
  line-height: 1.75;
}

.tool-run strong,
.tool-run small,
.artifact-title small,
.requirement-grid small,
.requirement-grid strong,
.product-stack p strong,
.product-stack p small {
  font-size: 11px;
}

.artifact-title strong {
  font-size: 13px;
}

.solution-tabs strong {
  font-size: 13px;
}

.solution-tabs small,
.solution-tabs span,
.quote-hero > div:first-child > span,
.quote-hero p,
.quote-stats small,
.quote-stats strong,
.quote-stats span {
  font-size: 11px;
}

.quote-hero h2 {
  font-size: 28px;
}

.quick-prompts button {
  padding: 5px 10px;
  font-size: 11px;
}

.composer {
  padding: 11px 11px 9px 15px;
  border-color: rgba(77, 94, 226, 0.32);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(20, 27, 66, 0.28);
}

.composer:focus-within {
  border-color: rgba(74, 99, 241, 0.72);
  box-shadow: 0 17px 44px rgba(55, 71, 188, 0.22), 0 0 0 3px rgba(66, 117, 248, 0.08);
}

.composer textarea {
  height: 44px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.send-btn svg {
  width: 16px;
}

.context-size,
.model-select {
  font-size: 11px;
}

.dashboard-header h1 {
  font-size: 28px;
}

.dashboard-header p {
  font-size: 13px;
}

.dashboard-eyebrow {
  color: #718cff;
  font-size: 11px;
}

.period-switch button {
  height: 32px;
  padding: 0 16px;
  font-size: 11px;
}

.dashboard-kpis small,
.dashboard-kpis em {
  font-size: 11px;
}

.dashboard-kpis strong {
  font-size: 20px;
}

.dashboard-card > header span {
  font-size: 13px;
}

.dashboard-card > header small,
.dashboard-card > header button {
  font-size: 11px;
}

.modal-card h2 {
  font-size: 17px;
}

.modal-card header p,
.modal-body > label,
.modal-card .primary-action,
.modal-card .subtle-btn {
  font-size: 11px;
}

.project-detail-card > header strong {
  font-size: 13px;
}

.quote-summary-title strong,
.quote-items-title strong,
.config-pane-title strong,
.config-table-tools strong {
  font-size: 13px;
}

:root[data-theme="light"] .new-task-btn,
:root[data-theme="light"] .dashboard-menu-btn.active,
:root[data-theme="light"] .dashboard-menu-btn:hover,
:root[data-theme="light"] .status-analysis button.active,
:root[data-theme="light"] .project-modal-filters button.active {
  color: #fff;
  background: var(--brand-gradient);
}

:root[data-theme="light"] .dashboard-kpis article:first-child,
:root[data-theme="light"] .quote-summary-cards article:first-child {
  border-color: rgba(77, 94, 226, 0.3);
  background: linear-gradient(135deg, rgba(66, 117, 248, 0.1), rgba(79, 84, 232, 0.045));
}

/* Sidebar navigation uses one clear active state at a time. */
.new-task-btn,
.dashboard-menu-btn {
  border-color: rgba(112, 131, 167, 0.2);
  color: #8392a7;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.new-task-btn svg,
.dashboard-menu-btn > svg {
  color: #7184a0;
}

.new-task-btn kbd,
.dashboard-menu-btn small,
.dashboard-menu-btn > b {
  color: #607188;
}

.new-task-btn:hover,
.dashboard-menu-btn:hover {
  border-color: rgba(74, 99, 241, 0.4);
  color: #90a1ff;
  background: var(--brand-soft);
  box-shadow: 0 7px 18px rgba(66, 89, 236, 0.08);
}

.new-task-btn:hover svg,
.dashboard-menu-btn:hover > svg {
  color: #8095ff;
}

.new-task-btn.active,
.dashboard-menu-btn.active {
  border-color: rgba(105, 124, 255, 0.74);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 10px 25px rgba(66, 89, 236, 0.23);
}

.new-task-btn.active svg,
.new-task-btn.active kbd,
.dashboard-menu-btn.active > svg,
.dashboard-menu-btn.active small,
.dashboard-menu-btn.active > b {
  color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .new-task-btn,
:root[data-theme="light"] .dashboard-menu-btn {
  color: #63758b;
  border-color: #dbe4ed;
  background: #fff;
  box-shadow: 0 4px 14px rgba(50, 74, 101, 0.04);
}

:root[data-theme="light"] .new-task-btn:hover,
:root[data-theme="light"] .dashboard-menu-btn:hover {
  color: #405cce;
  border-color: rgba(74, 99, 241, 0.35);
  background: linear-gradient(135deg, rgba(66, 117, 248, 0.08), rgba(79, 84, 232, 0.035));
}

:root[data-theme="light"] .new-task-btn.active,
:root[data-theme="light"] .dashboard-menu-btn.active {
  color: #fff;
  border-color: rgba(105, 124, 255, 0.7);
  background: var(--brand-gradient);
}

/* User speech uses the primary brand color. */
.user-message .message-bubble,
.general-message.user p {
  border-color: rgba(110, 128, 255, 0.58);
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 10px 26px rgba(66, 89, 236, 0.2);
}

.user-message .message-bubble strong,
.general-message.user p strong {
  color: #fff;
}

:root[data-theme="light"] .user-message .message-bubble,
:root[data-theme="light"] .general-message.user p {
  color: #fff;
  background: var(--brand-gradient);
}

/* The sidebar snaps to a compact, icon-only 64px rail at its minimum. */
.sidebar-icon-only .brand {
  width: 64px;
  justify-content: center;
  gap: 0;
}

.sidebar-icon-only .brand-copy {
  display: none;
}

.sidebar-icon-only .left-rail {
  padding-left: 8px;
  padding-right: 8px;
}

.sidebar-icon-only .rail-actions {
  align-items: center;
}

.sidebar-icon-only .new-task-btn,
.sidebar-icon-only .dashboard-menu-btn {
  width: 46px;
  height: 44px;
  min-height: 44px;
  justify-content: center;
  gap: 0;
  padding: 0;
  font-size: 0;
}

.sidebar-icon-only .new-task-btn kbd,
.sidebar-icon-only .dashboard-menu-btn > span,
.sidebar-icon-only .dashboard-menu-btn > b {
  display: none;
}

.sidebar-icon-only .new-task-btn svg,
.sidebar-icon-only .dashboard-menu-btn > svg {
  width: 18px;
}

.sidebar-icon-only .project-section,
.sidebar-icon-only .recent-section {
  display: none;
}

.sidebar-icon-only .sidebar-profile-wrap {
  margin-top: auto;
}

.sidebar-icon-only .sidebar-profile {
  width: 46px;
  height: 46px;
  justify-content: center;
  padding: 5px;
}

.sidebar-icon-only .sidebar-profile > span:nth-child(2),
.sidebar-icon-only .sidebar-profile > svg {
  display: none;
}

.sidebar-icon-only .sidebar-profile-menu {
  left: 52px;
  right: auto;
  bottom: 0;
  width: 220px;
}

/* Tighter right rail with stronger information hierarchy. */
.context-tabs {
  height: 52px;
  padding: 7px 10px 0;
}

.context-tabs button {
  font-size: 11px;
  font-weight: 600;
}

.context-section {
  padding: 12px 14px;
}

.context-title {
  min-height: 24px;
  align-items: center;
}

.context-title > span {
  font-size: 13px;
  font-weight: 680;
}

.context-title button,
.context-title small {
  font-size: 10px;
}

.project-info-name {
  min-height: 46px;
  margin: 6px 0 8px;
  padding: 8px 9px;
  border-color: rgba(77, 94, 226, 0.2);
  background: var(--brand-soft);
}

.project-info-name > span {
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--brand-gradient);
}

.project-info-name strong {
  font-size: 12px;
  font-weight: 680;
}

.full-info-grid > div {
  padding: 6px 7px;
}

.full-info-grid dt {
  margin-bottom: 3px;
  font-size: 10px;
  line-height: 1.25;
}

.full-info-grid dd {
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
}

.full-info-grid dd.cyan-text {
  color: #718cff !important;
  font-size: 13px;
  font-weight: 720;
}

.flow-progress {
  margin: 2px 0 8px;
}

.flow-list li {
  min-height: 40px;
  gap: 9px;
}

.flow-list li:not(:last-child)::after {
  height: 15px;
  top: 32px;
}

.flow-list strong,
.radar-item strong {
  font-size: 11px;
  font-weight: 620;
}

.flow-list small,
.flow-list time,
.radar-item small {
  font-size: 10px;
}

.flow-list li.active > span {
  border-color: transparent;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 6px 14px rgba(66, 89, 236, 0.2);
}

.radar-item {
  gap: 9px;
  padding: 7px 0;
}

.version-item {
  gap: 9px;
  margin-top: 4px;
  padding: 7px 8px;
}

.version-item strong {
  font-size: 13px;
  font-weight: 680;
}

.version-item small,
.version-item b {
  font-size: 10px;
}

.version-item.active {
  border-color: rgba(77, 94, 226, 0.24);
  background: var(--brand-soft);
}

:root[data-theme="light"] .project-info-name,
:root[data-theme="light"] .version-item.active {
  background: linear-gradient(135deg, rgba(66, 117, 248, 0.08), rgba(79, 84, 232, 0.025));
}

/* Avatar-free conversation layout, inspired by Codex. */
.conversation .agent-avatar,
.conversation .user-avatar,
.general-conversation .agent-avatar,
.general-conversation .user-avatar {
  display: none !important;
}

.message-row,
.general-message {
  gap: 0;
}

.agent-message {
  padding: 3px 0 8px;
}

.agent-message .message-content,
.general-message:not(.user) > div {
  width: 100%;
}

.agent-message .message-meta {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(113, 142, 171, 0.1);
}

.agent-message .message-bubble {
  padding-top: 10px;
}

.user-message {
  padding-left: 120px;
}

.user-message .message-content {
  max-width: 78%;
}

.general-message:not(.user) p {
  padding: 9px 0 4px;
  border: 0;
  color: var(--text2);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.75;
}

.general-message.user {
  padding-left: 120px;
}

.general-message.user > div {
  max-width: 78%;
}

/* Keep inactive dashboard navigation readable while it is hovered. */
.dashboard-menu-btn:not(.active):hover strong {
  color: #536de0;
}

.dashboard-menu-btn:not(.active):hover small {
  color: #667996;
}

.dashboard-menu-btn:not(.active):hover > b {
  color: #596fe0;
}

:root[data-theme="light"] .dashboard-menu-btn:not(.active):hover strong {
  color: #334ebf;
}

:root[data-theme="light"] .dashboard-menu-btn:not(.active):hover small {
  color: #60728d;
}

:root[data-theme="light"] .dashboard-menu-btn:not(.active):hover > b {
  color: #4058ca;
}

/* 2026 minimalist refinement: retain decisions and actions, remove visual noise. */
.ambient {
  opacity: 0.16;
}

.system-health,
.welcome-kicker,
.dashboard-eyebrow,
.dashboard-header p,
.agent-message .message-meta > strong,
.agent-message .message-meta > span,
.feedback-row > small,
.flow-list time,
.versions-section .version-item small,
.growth-hero > small,
.modal-card > header .modal-icon,
.modal-card > header p,
.project-list-modal > footer > span,
.quote-items-modal > footer > span,
.config-table-tools .disabled {
  display: none !important;
}

.topbar,
.left-rail,
.context-rail,
.general-chat-view,
.dashboard-view {
  box-shadow: none;
}

.task-header {
  padding-top: 14px;
  padding-bottom: 13px;
}

.task-heading h1 {
  margin-top: 7px;
  font-size: 21px;
  letter-spacing: -0.25px;
}

.task-heading > p {
  margin-top: 4px;
  max-width: 680px;
  line-height: 1.55;
}

.task-tools {
  gap: 6px;
}

.task-tools .ghost-btn,
.task-tools .icon-more {
  box-shadow: none;
}

.plan-strip {
  margin-top: 0;
  border-radius: 10px;
  box-shadow: none;
}

.plan-head .spark,
.plan-step small {
  display: none;
}

.plan-step {
  min-height: 48px;
}

.agent-message .message-meta {
  min-height: 0;
  padding: 0;
  border: 0;
}

.agent-message .message-meta:empty {
  display: none;
}

.artifact-card,
.requirement-card,
.solution-card,
.quote-card {
  border-radius: 12px;
  box-shadow: none;
}

.feedback-row {
  gap: 6px;
  padding: 9px 10px;
}

.composer-wrap {
  left: 18px;
  right: 18px;
  bottom: 10px;
}

.chat-bottom-btn {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 92px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(87, 107, 166, 0.24);
  border-radius: 18px;
  color: var(--text2);
  background: rgba(14, 23, 39, 0.94);
  box-shadow: 0 9px 24px rgba(20, 33, 65, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.chat-bottom-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.chat-bottom-btn:hover {
  border-color: rgba(85, 103, 239, 0.5);
  color: #fff;
  background: var(--brand-gradient);
}

.chat-bottom-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-bottom-btn span {
  font-size: 10px;
  font-weight: 650;
}

.agent-canvas.dashboard-mode .chat-bottom-btn {
  display: none;
}

:root[data-theme="light"] .chat-bottom-btn {
  color: #53677f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 24px rgba(47, 65, 98, 0.13);
}

:root[data-theme="light"] .chat-bottom-btn:hover {
  color: #fff;
  background: var(--brand-gradient);
}

.composer {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(33, 50, 88, 0.12);
}

.composer-tools button:nth-of-type(2),
.composer-tools button:nth-of-type(3),
.composer .context-size,
.composer .model-select {
  display: none;
}

.quick-prompts {
  margin-left: 0;
}

.quick-prompts button {
  border-radius: 9px;
  box-shadow: none;
}

.context-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.context-title {
  margin-bottom: 9px;
}

.project-info-name > span {
  display: none;
}

.project-info-name {
  padding: 8px 10px;
  border-radius: 9px;
}

.flow-list li,
.radar-item,
.version-item {
  min-height: 0;
}

.versions-section .version-item:last-child {
  display: none;
}

.growth-hero {
  padding-top: 18px;
  padding-bottom: 14px;
}

.growth-hero p,
.learning-pipeline .pipeline-item small,
.recent-upgrade article p,
.recent-upgrade article small {
  display: none;
}

.dashboard-header {
  align-items: center;
  padding: 0 2px 12px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.3px;
}

.dashboard-scroll {
  padding-top: 10px;
}

.dashboard-kpis {
  gap: 10px;
}

.dashboard-kpis article,
.dashboard-card {
  box-shadow: none;
}

.dashboard-kpis article {
  padding: 12px;
  border-radius: 12px;
}

.dashboard-card {
  border-radius: 12px;
}

.dashboard-card > header {
  min-height: 45px;
  padding: 9px 12px;
}

.dashboard-card > header small,
.dashboard-card > header button {
  display: none;
}

.general-conversation {
  padding: 0 24px 120px;
}

.general-chat-head {
  height: 54px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.012);
}

.general-chat-head .knowledge-ready,
.general-chat-head small {
  display: none;
}

.general-chat-head strong {
  font-size: 12px;
  font-weight: 680;
}

.general-brand-orbit {
  width: 34px;
  height: 34px;
  flex: none;
}

.general-brand-orbit i {
  width: 27px;
  height: 27px;
}

.general-brand-orbit b {
  font-size: 11px;
}

.general-welcome {
  max-width: 860px;
  padding: 54px 0 24px;
}

.welcome-brand-orbit {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
}

.welcome-brand-orbit:before {
  inset: 6px -2px;
  border-width: 1.3px;
}

.welcome-brand-orbit:after {
  inset: -2px 10px;
  border-width: 1.3px;
}

.welcome-brand-orbit i {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 26px rgba(77, 220, 255, 0.2);
}

.welcome-brand-orbit b {
  font-size: 16px;
}

.general-welcome h1,
:root[data-theme="light"] .general-welcome h1 {
  margin: 0;
  color: var(--text1);
  background: none;
  -webkit-background-clip: initial;
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -0.6px;
}

.general-welcome > p {
  max-width: 520px;
  margin: 10px auto 0;
  line-height: 1.65;
}

.general-capabilities {
  gap: 10px;
  margin-top: 28px;
}

.general-capabilities button {
  min-height: 92px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
  transform: none;
}

.general-capabilities button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(45, 64, 110, 0.09);
}

.general-capabilities button > span {
  display: none;
}

.general-capabilities strong {
  margin: 0 0 7px;
  font-size: 13px;
}

.general-capabilities small {
  font-size: 10px;
  line-height: 1.6;
}

.general-suggestions {
  margin-top: 14px;
}

.general-suggestions > span {
  display: none;
}

.general-suggestions button {
  padding: 6px 10px;
  border-radius: 9px;
}

.modal-card {
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(20, 34, 62, 0.22);
}

.modal-card > header {
  min-height: 58px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.modal-card > header h2 {
  margin: 0;
  font-size: 15px;
}

.modal-card > footer {
  min-height: 54px;
}

.project-modal-filters {
  padding-top: 10px;
  padding-bottom: 10px;
}

.project-modal-filters button,
.config-category-tabs button,
.solution-tabs button {
  box-shadow: none !important;
}

:root[data-theme="light"] .general-chat-view,
:root[data-theme="light"] .dashboard-view {
  background: #f5f7fb;
}

:root[data-theme="light"] .general-chat-head {
  background: rgba(255, 255, 255, 0.42);
}

/* Refined conversation spacing and composer alignment. */
.general-message {
  max-width: 900px;
  margin-top: 22px;
  margin-bottom: 22px;
}

.general-message:not(.user) > div {
  padding: 0 4px;
}

.general-message:not(.user) > div > strong {
  margin-bottom: 8px;
  color: #8594aa;
  font-size: 11px;
  font-weight: 620;
}

.general-message:not(.user) p,
:root[data-theme="light"] .general-message:not(.user) p {
  padding: 0;
  border: 0;
  color: #65758b;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.8;
}

.composer {
  padding: 11px 13px 10px;
  border-radius: 15px;
}

.composer textarea {
  height: 36px;
  min-height: 36px;
  padding: 1px 2px 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: #728198;
  opacity: 1;
}

.composer-bottom {
  min-height: 38px;
  align-items: flex-end;
}

.composer-tools {
  min-height: 38px;
  align-items: center;
}

.composer-tools button:first-child {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.composer-tools button:first-child svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.send-btn {
  width: 38px;
  height: 38px;
  margin: 0 0 0 auto;
  border-radius: 11px;
}

.send-btn svg {
  width: 18px;
  height: 18px;
}

:root[data-theme="light"] .composer textarea::placeholder {
  color: #8b98a9;
}

/* Give the workflow enough breathing room without loosening the full sidebar. */
.flow-section {
  padding-top: 16px;
  padding-bottom: 18px;
}

.flow-section .context-title {
  margin-bottom: 12px;
}

.flow-section .flow-progress {
  margin: 5px 0 14px;
}

.flow-list li {
  min-height: 50px;
  gap: 11px;
}

.flow-list li > span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.flow-list li > div {
  gap: 3px;
}

.flow-list strong {
  font-size: 12px;
  line-height: 1.35;
}

.flow-list small {
  font-size: 10px;
  line-height: 1.45;
}

.flow-list li:not(:last-child)::after {
  left: 12px;
  top: 38px;
  height: 24px;
}

/* Compact task context so the conversation remains the primary workspace. */
.task-header { min-height: 0; padding: 10px 18px 9px; }
.task-title-line { gap: 7px; margin-bottom: 4px; }
.task-status { padding: 3px 7px; border-radius: 9px; }
.task-heading h1 { margin-top: 0; font-size: 19px; line-height: 1.3; }
.task-heading > p { margin-top: 3px; font-size: 11px; line-height: 1.4; }
.task-tools { align-self: center; }
.task-tools .ghost-btn,
.task-tools .icon-more { height: 30px; border-radius: 8px; }
.plan-strip { margin: 0 18px; padding: 8px 10px 10px; border-radius: 11px; }
.plan-head { min-height: 26px; padding: 0 2px 7px; }
.plan-head > div { gap: 6px; }
.plan-head strong { font-size: 12px; }
.plan-head small,
.plan-head .eta { font-size: 10px; }
.plan-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; padding-top: 8px; }
.plan-step { min-width: 0; min-height: 40px; gap: 8px; padding: 6px 8px; border: 1px solid rgba(111, 132, 166, 0.12); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.plan-step .step-index { width: 24px; height: 24px; border-radius: 7px; }
.plan-step strong { font-size: 11px; line-height: 1.25; }
.plan-step b { font-size: 10px; }
.plan-step.done { background: rgba(76, 232, 165, 0.035); }
.plan-step.active { border-color: rgba(79, 99, 239, 0.28); background: rgba(74, 99, 241, 0.07); }
.step-link { display: none; }
:root[data-theme="light"] .plan-step { border-color: #e3e8ef; background: #f8fafc; }
:root[data-theme="light"] .plan-step.done { background: rgba(47, 184, 130, 0.055); }
:root[data-theme="light"] .plan-step.active { border-color: rgba(74, 99, 241, 0.24); background: rgba(74, 99, 241, 0.065); }

/* Stable project-modal sizing and clearer filter contrast. */
.project-list-modal {
  height: min(720px, calc(100vh - 72px));
  max-height: calc(100vh - 72px);
}

.dashboard-project-cards {
  flex: 1;
  grid-auto-rows: 106px;
  gap: 9px;
  padding: 12px 14px;
}

.project-modal-filters button.active b,
:root[data-theme="light"] .project-modal-filters button.active b {
  color: #4058cb;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 7px rgba(31, 45, 111, 0.16);
}

.project-detail-card > header {
  min-height: 42px;
  padding: 6px 10px;
  gap: 8px;
}

.project-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 10px;
}

.project-detail-card > header > div { gap: 8px; }
.project-detail-card > header small { display: none; }
.project-detail-card > header strong { font-size: 12px; line-height: 1.3; }
.stage-pill { padding: 3px 7px; }
.project-detail-card dl { padding: 9px 10px; }
.project-detail-card dt { margin-bottom: 4px; }

@media (max-width: 1360px) {
  .dashboard-project-cards { grid-auto-rows: 154px; }
}

@media (max-width: 780px) {
  .plan-steps { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .general-message {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .composer {
    padding: 10px 11px 9px;
  }
}

:root[data-theme="light"] .general-capabilities button,
:root[data-theme="light"] .dashboard-kpis article,
:root[data-theme="light"] .dashboard-card,
:root[data-theme="light"] .artifact-card,
:root[data-theme="light"] .modal-card {
  border-color: #e3e8f0;
  background: #fff;
}

/* Keep the empty general-chat welcome balanced in the available viewport. */
.general-conversation:not(:has(.general-message)) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
}

.general-conversation:not(:has(.general-message)) .general-welcome {
  width: 100%;
  margin: auto;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Dashboard KPI cards share one calm white surface. */
:root[data-theme="light"] .dashboard-kpis article:first-child {
  border-color: #e3e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.055);
}

@media (max-width: 1100px) {
  .general-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .general-welcome {
    padding-top: 42px;
  }
}

@media (max-width: 780px) {
  .sidebar-resizer {
    display: none;
  }
}
