:root {
  color-scheme: light;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #aeaeb2;
  --line: #e5e5e7;
  --blue: #0071e3;
  --green: #248a3d;
  --red: #d70015;
  --orange: #c93400;
  --purple: #6e5ae6;
  --sidebar-width: 232px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(250, 250, 252, 0.9);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 8px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-weight: 650;
}

.brand span {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 10px;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}

.nav-item {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
  color: var(--ink);
  background: #e8e8ed;
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.sidebar-footer {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 10px;
  border: 0;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.14);
}

.main-content {
  width: calc(100% - var(--sidebar-width));
  max-width: 1600px;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0 42px 48px;
}

.topbar {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 650;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 650;
}

h2 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-label {
  color: var(--secondary);
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.icon-button:hover {
  background: #ededf0;
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.panel,
.chat-panel,
.assistant-insight {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric {
  min-width: 0;
  min-height: 138px;
  padding: 20px;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--secondary);
  font-size: 12px;
}

.metric-head svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 21px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--secondary);
  font-size: 11px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.8fr);
  gap: 12px;
  margin: 12px 0;
}

.panel {
  padding: 22px;
}

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

.panel-header p {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 12px;
}

.panel-icon {
  width: 18px;
  color: var(--secondary);
}

.segmented-control {
  display: flex;
  min-width: 132px;
  padding: 3px;
  border-radius: 7px;
  background: #ededf0;
}

.period-button {
  flex: 1;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.period-button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
  font-weight: 600;
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-large {
  height: 276px;
  margin-top: 20px;
}

.chart-doughnut {
  height: 186px;
  margin-top: 20px;
}

.legend-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-row strong {
  font-weight: 600;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.text-button svg {
  width: 14px;
}

.transaction-list {
  display: grid;
  margin-top: 14px;
}

.transaction-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.transaction-row:first-child {
  border-top: 0;
}

.transaction-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #eef6ff;
}

.transaction-icon svg {
  width: 16px;
  height: 16px;
}

.transaction-main {
  min-width: 0;
}

.transaction-main strong,
.transaction-main span {
  display: block;
}

.transaction-main strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-main span {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 10px;
}

.transaction-amount {
  font-size: 13px;
  font-weight: 650;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.search-field {
  display: flex;
  min-width: 240px;
  flex: 1;
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-field svg {
  width: 16px;
  color: var(--secondary);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.select-field {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 11px;
}

.select-field select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.table-summary span {
  color: var(--secondary);
}

.table-summary strong {
  font-size: 16px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  height: 42px;
  color: var(--secondary);
  background: var(--surface-muted);
  font-size: 10px;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.amount-column {
  text-align: right;
}

.category-tag,
.necessity-tag,
.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.category-tag {
  color: #235b98;
  background: #edf5fd;
}

.necessity-tag.essential {
  color: #1c6b31;
  background: #eef8f0;
}

.necessity-tag.nonessential {
  color: #9b3e00;
  background: #fff3e8;
}

.necessity-tag.pending {
  color: #65656a;
  background: #f0f0f2;
}

.budget-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
}

.budget-settings form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field > span {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
}

.form-field input,
.currency-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
}

.form-field input {
  padding: 0 12px;
}

.form-field input:focus,
.currency-input:focus-within,
.composer:focus-within {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.currency-input {
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.currency-input > span {
  color: var(--secondary);
}

.currency-input input {
  height: 100%;
  border: 0;
  box-shadow: none;
}

.currency-input.compact {
  max-width: 180px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--blue);
}

.primary-button:hover {
  background: #0068d1;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.primary-button svg,
.secondary-button svg {
  width: 15px;
}

.form-message {
  min-height: 16px;
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 11px;
}

.budget-amount-row {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
}

.budget-amount-row span,
.budget-amount-row strong {
  display: block;
}

.budget-amount-row span {
  color: var(--secondary);
  font-size: 10px;
}

.budget-amount-row strong {
  margin-top: 5px;
  font-size: 22px;
}

.align-right {
  text-align: right;
}

.progress-track {
  width: 100%;
  height: 7px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 4px;
  background: #ececf0;
}

.progress-value {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 350ms ease;
}

.budget-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.budget-details span,
.budget-details strong {
  display: block;
}

.budget-details span {
  color: var(--secondary);
  font-size: 10px;
}

.budget-details strong {
  margin-top: 6px;
  font-size: 14px;
}

.status-badge {
  color: var(--secondary);
  background: #f0f0f2;
}

.status-badge.on-track {
  color: #1c6b31;
  background: #eef8f0;
}

.status-badge.risk,
.status-badge.over {
  color: #a23100;
  background: #fff0e9;
}

.scenario-panel {
  margin-top: 12px;
}

.scenario-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
}

.scenario-result {
  min-height: 60px;
  margin-top: 20px;
  padding: 16px;
  border-left: 3px solid var(--blue);
  color: #424245;
  background: #f7f9fc;
  font-size: 13px;
  line-height: 1.65;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1.1fr) minmax(340px, 0.9fr);
  gap: 12px;
  min-height: calc(100vh - 176px);
}

.chat-panel {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.chat-header h2,
.chat-header p {
  margin: 0;
}

.chat-header p {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 10px;
}

.chat-header .icon-button {
  margin-left: auto;
}

.assistant-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.assistant-avatar svg {
  width: 16px;
}

.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 24px 22px;
}

.message {
  max-width: 84%;
}

.user-message {
  align-self: flex-end;
}

.message-role {
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.user-message .message-role {
  text-align: right;
}

.message-content {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0f0f2;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.user-message .message-content {
  color: #fff;
  background: var(--blue);
}

.message-content.streaming::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 14px;
  margin-left: 3px;
  background: var(--blue);
  vertical-align: -2px;
  animation: blink 900ms steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.suggestion-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 18px 0;
}

.suggestion-row button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--secondary);
  background: var(--surface);
  cursor: pointer;
  font-size: 10px;
}

.suggestion-row button:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.composer {
  display: flex;
  min-height: 54px;
  align-items: flex-end;
  gap: 10px;
  margin: 12px 18px 18px;
  padding: 8px 8px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.composer textarea {
  width: 100%;
  max-height: 116px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
}

.send-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

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

.assistant-insight {
  min-height: 620px;
  padding: 22px;
}

.insight-placeholder {
  display: grid;
  height: 100%;
  min-height: 570px;
  place-content: center;
  justify-items: center;
  color: var(--secondary);
  text-align: center;
}

.insight-placeholder svg {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  stroke-width: 1.4;
}

.insight-placeholder strong {
  color: var(--ink);
  font-size: 14px;
}

.insight-placeholder span {
  max-width: 240px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.assistant-chart-content.hidden,
.hidden {
  display: none;
}

.assistant-chart-wrap {
  height: 280px;
  margin-top: 24px;
}

.tool-log {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.tool-entry {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--secondary);
  font-size: 10px;
}

.tool-entry svg {
  width: 14px;
  color: var(--green);
}

.empty-state {
  padding: 36px 0;
  color: var(--secondary);
  font-size: 12px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #fff;
  background: rgba(29, 29, 31, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(22px) saturate(160%);
}

.unlock-overlay.hidden {
  display: none;
}

.unlock-dialog {
  width: min(390px, 100%);
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.unlock-dialog h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.unlock-dialog > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.55;
}

.unlock-dialog .primary-button {
  width: 100%;
  margin-top: 16px;
}

.unlock-dialog .primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.unlock-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.unlock-icon svg {
  width: 18px;
}

.unlock-error {
  display: block;
  min-height: 16px;
  margin-top: 12px;
  color: var(--red);
  font-size: 11px;
}

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

  .overview-grid,
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .assistant-insight,
  .insight-placeholder {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: 0px;
  }

  body {
    padding-bottom: 72px;
  }

  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 66px;
    padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 0;
  }

  .brand,
  .sidebar-footer {
    display: none;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin: 0;
  }

  .nav-item {
    height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 0 4px;
    font-size: 9px;
  }

  .nav-item.active {
    color: var(--blue);
    background: transparent;
  }

  .nav-item svg {
    width: 19px;
    height: 19px;
  }

  .main-content {
    width: 100%;
    margin: 0;
    padding: 0 14px 28px;
  }

  .topbar {
    min-height: 98px;
  }

  h1 {
    font-size: 24px;
  }

  .date-label {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric {
    min-height: 124px;
    padding: 16px;
  }

  .metric strong {
    margin-top: 18px;
    font-size: 21px;
  }

  .overview-grid {
    gap: 8px;
    margin: 8px 0;
  }

  .panel {
    padding: 17px;
  }

  .panel-header {
    align-items: center;
  }

  .chart-large {
    height: 230px;
  }

  .chart-doughnut {
    height: 190px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .search-field {
    min-width: 0;
  }

  .select-field {
    justify-content: space-between;
  }

  .table-panel {
    border: 0;
    background: transparent;
  }

  .table-summary {
    min-height: 52px;
    padding: 0 4px;
    border-bottom: 0;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 8px;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  td {
    height: auto;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  td:nth-child(1) {
    color: var(--secondary);
    font-size: 10px;
  }

  td:nth-child(2) {
    grid-row: 2;
    font-size: 14px;
    font-weight: 600;
  }

  td:nth-child(3),
  td:nth-child(4) {
    display: none;
  }

  td:nth-child(5) {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    font-size: 14px;
    font-weight: 650;
  }

  .budget-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .budget-details {
    gap: 8px;
  }

  .scenario-panel {
    margin-top: 8px;
  }

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

  .currency-input.compact {
    max-width: none;
  }

  .assistant-layout {
    min-height: calc(100vh - 126px);
  }

  .chat-panel {
    min-height: calc(100vh - 126px);
  }

  .assistant-insight {
    display: none;
  }

  .chat-messages {
    padding: 20px 16px;
  }

  .message {
    max-width: 92%;
  }

  .suggestion-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .composer {
    margin: 10px 12px 12px;
  }

  .toast {
    right: 16px;
    bottom: 82px;
  }
}

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

  .metric {
    min-height: 112px;
  }

  .budget-details {
    grid-template-columns: 1fr;
  }
}
