:root {
  --bg: #eef3f8;
  --ink: #14263a;
  --muted: #5c6d80;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --line: #c8d6e3;
  --brand: #0f62fe;
  --brand-deep: #0b3c91;
  --brand-soft: #e8f1ff;
  --accent: #ff7a45;
  --ok: #0f766e;
  --err: #b42318;
  --shadow: 0 24px 48px rgba(16, 36, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 98, 254, 0.14), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(255, 122, 69, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 46%, #e9f0f7 100%);
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding:
    max(22px, env(safe-area-inset-top))
    22px
    calc(28px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(200, 214, 227, 0.85);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.96)),
    var(--card);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 18px;
}

.mobileMenuButton,
.sidebarHeader,
.sidebarCloseButton,
.mobileNavOverlay {
  display: none;
}

.brandWrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  width: 176px;
  min-width: 176px;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.brandCopy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.brandCopy h1 {
  margin: 8px 0 4px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.brandCopy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.profileCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 320px;
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(15, 98, 254, 0.06), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(15, 98, 254, 0.12);
}

.profileMeta {
  display: grid;
  gap: 3px;
}

.profileLabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.profileMeta strong {
  font-size: 17px;
}

.profileMeta span:last-child {
  font-size: 13px;
  color: var(--muted);
}

.profileActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolLink,
.profilePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.toolLink {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 98, 254, 0.14);
}

.profilePill {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
}

.installBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 98, 254, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(233, 242, 255, 0.96));
  padding: 14px 16px;
  margin-bottom: 18px;
}

.installTitle {
  font-size: 14px;
  font-weight: 800;
  color: #143a59;
}

.installHint {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.installActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.column,
.mainPane,
.insightsRail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.card {
  background: var(--card);
  border: 1px solid rgba(200, 214, 227, 0.9);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

label {
  display: block;
  margin: 14px 0 7px;
  font-size: 11px;
  font-weight: 800;
  color: #42586d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(200, 214, 227, 0.95);
  padding: 12px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

button {
  border: 0;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 14px;
  width: auto;
}

button:disabled {
  opacity: 0.65;
  cursor: default;
}

.navCard,
.snapshotCard,
.guidanceCard {
  gap: 14px;
}

.navCard h2,
.snapshotCard h2 {
  margin-top: 8px;
}

.navList {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.navItem {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(200, 214, 227, 0.95);
  background: rgba(249, 252, 255, 0.95);
  color: var(--ink);
  text-align: left;
}

.navItem strong,
.navItem small {
  display: block;
}

.navItem strong {
  font-size: 14px;
  line-height: 1.2;
}

.navItem small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.navItem.active {
  border-color: rgba(15, 98, 254, 0.3);
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.1), rgba(255, 255, 255, 0.95));
}

.navItemStatic {
  cursor: default;
}

.navIcon {
  font-size: 16px;
  line-height: 1;
  margin-top: 1px;
}

.snapshotIntro {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.snapshotGrid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.snapshotMetric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 250, 253, 0.98);
  border: 1px solid rgba(200, 214, 227, 0.85);
}

.snapshotMetric span {
  font-size: 12px;
  color: var(--muted);
}

.snapshotMetric strong {
  font-size: 15px;
}

.guidanceList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.promptChip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.08);
  color: var(--brand-deep);
  border: 1px solid rgba(15, 98, 254, 0.12);
}

.settingsCard {
  display: grid;
  gap: 14px;
}

.settingsRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settingsNote {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.settingsMeta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.settingsLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-deep);
  background: rgba(15, 98, 254, 0.08);
  border: 1px solid rgba(15, 98, 254, 0.12);
}

.toggleButton {
  min-width: 72px;
  padding-inline: 16px;
  background: #ffffff;
  color: var(--brand-deep);
  border: 1px solid rgba(15, 98, 254, 0.16);
}

.toggleButton.isActive {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #ffffff;
  border-color: transparent;
}

.mainPane {
  min-width: 0;
}

.heroCard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 69, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96));
}

.heroCard h2 {
  margin-top: 10px;
  max-width: 840px;
}

.heroCard p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.heroBadge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.1);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
}

.workspaceGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.chatCard,
.summaryCard,
.chartCard,
.sessionPanel {
  background: var(--card-strong);
}

.panelHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panelMeta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.panelNote {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chartHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chartTitleBlock {
  display: grid;
  gap: 6px;
}

.chartSubtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 840px;
}

.conversationIntro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 98, 254, 0.08), rgba(255, 122, 69, 0.06));
  border: 1px solid rgba(15, 98, 254, 0.08);
}

.conversationIntro p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.conversationBadge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.messages {
  min-height: 420px;
  max-height: 58dvh;
  overflow: auto;
  border: 1px solid rgba(200, 214, 227, 0.85);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(180deg, #fcfdff 0%, #f4f8fc 100%);
}

.msg {
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border-radius: 18px;
  margin-bottom: 12px;
  width: fit-content;
  max-width: 88%;
  box-shadow: 0 12px 24px rgba(16, 36, 55, 0.05);
}

.msgMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.msgDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.msgBody {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14px;
}

.msgBody p {
  margin: 0;
}

.msgBody p + p {
  margin-top: 10px;
}

.msgBody ul {
  margin: 0;
  padding-left: 20px;
}

.msgBody ul + p,
.msgBody p + ul {
  margin-top: 10px;
}

.msgBody li + li {
  margin-top: 8px;
}

.msgBody strong {
  font-weight: 800;
}

.msgBody code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(15, 98, 254, 0.08);
  color: var(--brand-deep);
}

.user {
  margin-left: auto;
  background: linear-gradient(135deg, #ddebff, #cfe0ff);
  border: 1px solid #b9d0ff;
  color: #184a9b;
}

.assistant {
  background: #ffffff;
  border: 1px solid rgba(200, 214, 227, 0.9);
  color: #48627a;
}

.assistant .msgBody {
  color: var(--ink);
}

.typingIndicator {
  min-width: min(360px, 100%);
}

.typingText {
  color: var(--muted);
}

.typingDots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.typingDots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.55);
  animation: typingPulse 1s infinite ease-in-out;
}

.typingDots span:nth-child(2) {
  animation-delay: 120ms;
}

.typingDots span:nth-child(3) {
  animation-delay: 240ms;
}

.quickPromptRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 2px;
}

.quickPrompt {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.06);
  border: 1px solid rgba(15, 98, 254, 0.1);
  color: var(--brand-deep);
}

.composerCard {
  border: 1px solid rgba(200, 214, 227, 0.95);
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.composerCard:focus-within {
  border-color: rgba(15, 98, 254, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

.composerCard textarea {
  min-height: 104px;
  border: 0;
  background: transparent;
  display: block;
  padding: 6px 2px 0;
  line-height: 1.45;
}

.composerCard textarea:focus {
  outline: none;
  box-shadow: none;
}

.composerFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(200, 214, 227, 0.75);
}

.composerTools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghostAction {
  background: #ffffff;
  color: #1d4d78;
  border: 1px solid rgba(196, 216, 236, 0.95);
}

.chatActions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.modelInline {
  width: 280px;
  min-width: 220px;
  max-width: 100%;
  margin-right: 4px;
}

.clearLink,
.secondaryBtn {
  border: 1px solid rgba(196, 216, 236, 0.95);
  background: #fff;
  color: #1d4d78;
  font-weight: 700;
  text-decoration: none;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.ok {
  color: var(--ok);
}

.err {
  color: var(--err);
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: 10px 12px;
  border-radius: 14px;
  margin-top: 10px;
  display: none;
  white-space: pre-wrap;
}

.tableWrap {
  max-height: 340px;
  overflow: auto;
  border: 1px solid rgba(200, 214, 227, 0.9);
  border-radius: 16px;
  background: #fff;
}

.tableEmptyCell {
  padding: 18px 16px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  background: linear-gradient(180deg, #fcfdff, #f6f9fd);
}

.insightCards {
  display: grid;
  gap: 12px;
}

.insightCardItem {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(200, 214, 227, 0.85);
}

.insightCardLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.insightCardTitle {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.insightCardCopy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.insightCardMeta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.emptyInsightState {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdff, #f6f9fd);
  border: 1px dashed rgba(15, 98, 254, 0.22);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border: 1px solid #dde7f1;
  padding: 9px 10px;
  text-align: left;
}

th {
  background: #f1f7fd;
}

#chartCanvas {
  width: 100%;
  height: 360px;
  border: 1px solid rgba(200, 214, 227, 0.9);
  border-radius: 16px;
  background: #fff;
}

.dataDisclosure {
  padding: 0;
  overflow: hidden;
}

.dataDisclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-deep);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.98));
}

.dataDisclosure[open] > summary {
  border-bottom: 1px solid rgba(200, 214, 227, 0.85);
}

.dataDisclosureBody {
  padding: 18px;
}

.badge {
  display: inline-block;
  background: rgba(15, 98, 254, 0.08);
  border: 1px solid rgba(15, 98, 254, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--brand-deep);
  font-weight: 700;
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.sessionCard {
  padding: 0;
  overflow: hidden;
}

.sessionCard > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.sessionCard[open] > summary {
  border-bottom: 1px solid rgba(200, 214, 227, 0.85);
  background: rgba(248, 251, 255, 0.96);
}

.sessionBody {
  padding: 18px;
}

.sessionGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

.sessionPanel {
  border: 1px solid rgba(200, 214, 227, 0.9);
  border-radius: 20px;
  padding: 18px;
}

.sessionPanelWide {
  grid-column: 1 / -1;
}

.providerGrid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.providerCard {
  border: 1px solid rgba(200, 214, 227, 0.95);
  border-radius: 16px;
  padding: 12px;
  background: #f8fbff;
  cursor: pointer;
}

.providerCard.active {
  border-color: rgba(15, 98, 254, 0.26);
  background: #eef6ff;
}

.providerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.providerHeader span {
  font-weight: 700;
  font-size: 14px;
}

.providerHint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.configBox {
  margin-top: 14px;
  border: 1px solid rgba(200, 214, 227, 0.9);
  border-radius: 16px;
  background: #f9fbff;
}

details > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  color: #1d3e5b;
  border-bottom: 1px solid transparent;
}

details[open] > summary {
  border-bottom-color: rgba(200, 214, 227, 0.9);
  background: #f3f8ff;
}

.configBody {
  padding: 12px 14px 16px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
  color: #1d3042;
}

.traceWrap {
  display: grid;
  gap: 8px;
}

.traceItem {
  border: 1px solid #d8e4f1;
  border-radius: 14px;
  background: #fbfdff;
  padding: 10px 12px;
}

.traceHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 12px;
}

.traceStep {
  font-weight: 700;
  color: #1f3f5a;
}

.traceTag {
  font-size: 11px;
  color: #245d88;
  background: #eaf5ff;
  border: 1px solid #c8e0f7;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.traceDetail {
  font-size: 12px;
  color: #48627a;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .workspaceGrid,
  .sessionGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .profileCard {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      calc(20px + env(safe-area-inset-bottom));
  }

  .topbar,
  .card {
    border-radius: 20px;
  }

  .topbar {
    position: relative;
    gap: 14px;
  }

  .brandWrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    width: 150px;
    min-width: 150px;
  }

  .brandCopy h1 {
    font-size: 24px;
  }

  .mobileMenuButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    background: rgba(15, 98, 254, 0.08);
    color: var(--brand-deep);
    border: 1px solid rgba(15, 98, 254, 0.14);
  }

  .mobileNavOverlay {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(20, 38, 58, 0.28);
    backdrop-filter: blur(4px);
  }

  .mobileNavOverlay.isVisible {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(88vw, 360px);
    height: 100dvh;
    padding:
      max(14px, env(safe-area-inset-top))
      12px
      calc(20px + env(safe-area-inset-bottom));
    margin: 0;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(236, 243, 248, 0.98));
    border-right: 1px solid rgba(200, 214, 227, 0.9);
    box-shadow: 0 24px 48px rgba(16, 36, 55, 0.16);
    transform: translateX(-108%);
    transition: transform 180ms ease;
  }

  .sidebar.isMobileOpen {
    transform: translateX(0);
  }

  .sidebarHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 4px 4px 0;
  }

  .sidebarCloseButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--brand-deep);
    border: 1px solid rgba(15, 98, 254, 0.14);
  }

  .profileCard,
  .heroCard,
  .chartHeader,
  .settingsRow {
    flex-direction: column;
    align-items: flex-start;
  }

  .installBar {
    align-items: flex-start;
    flex-direction: column;
  }

  .installActions {
    width: 100%;
  }

  .navItem {
    padding: 12px;
  }

  .messages {
    min-height: 280px;
    max-height: 46dvh;
  }

  .conversationIntro,
  .composerFooter {
    flex-direction: column;
    align-items: flex-start;
  }

  .chatActions,
  .profileActions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .composerTools,
  .quickPromptRow {
    width: 100%;
  }

  .chartCard,
  .dataDisclosure,
  .sessionCard {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modelInline {
    width: 100%;
    min-width: 0;
    margin-right: 0;
  }

  button,
  .toolLink,
  .profilePill {
    width: 100%;
  }

  #chartCanvas {
    height: 280px;
  }
}
