.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 31px 21px 16px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  font-family: "Manrope", sans-serif;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 36.96px;
  font-weight: 800;
  letter-spacing: -1.8px;
  width: max-content;
}
.brand-mark {
  font-family: Arial;
  font-size: 49.28px;
  color: var(--green);
  font-weight: 400;
  line-height: 1;
}
.brand-dot {
  color: var(--green);
  margin-left: -9px;
}
.new-chat {
  margin-top: 33px;
  border: 1px solid #d3dac8;
  border-radius: 10px;
  background: #fffffd;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  font-weight: 550;
  font-size: 14.56px;
}
.new-chat > span {
  font-size: 22.4px;
  font-weight: 400;
}
.new-chat kbd {
  margin-left: auto;
  color: #6f7a62;
  font: 17.92px Arial;
}
nav {
  margin-top: 22px;
  display: grid;
  gap: 5px;
}
.nav-item {
  text-align: left;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  gap: 8px;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 8px;
  font-size: 13.44px;
  color: #4f5844;
}
.nav-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active {
  background: #e0e7d3;
  color: #091d00;
  font-weight: 600;
}
.nav-new {
  flex-shrink: 0;
  font-size: 8.96px;
  letter-spacing: 0.6px;
  border: 1px solid #c8d1b8;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: auto;
}
.history-label {
  font-size: 10.08px;
  letter-spacing: 1.2px;
  color: #7f8576;
  margin: 31px 11px 12px;
}
.history {
  overflow: auto;
  flex: 1;
}
.history button {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 9px;
  padding: 11px;
  width: 100%;
  font-size: 13.44px;
  color: #48533e;
  border-radius: 7px;
  white-space: nowrap;
  line-height: 1.5;
}
.history button.selected {
  background: #e8ecde;
  color: #000f00;
}
.history button span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-empty {
  font-size: 12.32px;
  color: #7e8572;
  padding: 8px 11px;
  line-height: 1.8;
}
.history-skeleton {
  height: 16px;
  margin: 13px 11px 21px;
  width: calc(100% - 34px);
  border-radius: 6px;
  background: linear-gradient(90deg, #dce3ce 25%, #f1f5e7 50%, #dce3ce 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.history-skeleton:nth-child(2) {
  width: calc(100% - 60px);
}
.history-skeleton:nth-child(3) {
  width: calc(100% - 85px);
}
.sidebar-bottom {
  margin-top: 12px;
}
.balance-card {
  border: 1px solid #dfe4d2;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f0f4e4, #fbfcf6);
}
.balance-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12.32px;
  color: #7b846c;
}
.balance-icon {
  font-size: 16.8px;
}
.balance-value {
  font-family: Manrope, Arial;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 2px 0 6px;
  min-height: 1.4em;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.balance-value[aria-busy="true"] {
  color: transparent;
}
.balance-value[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 3ch;
  height: 0.9em;
  border-radius: 6px;
  background: linear-gradient(90deg, #e4e9d9 25%, #f4f7ec 50%, #e4e9d9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .balance-value[aria-busy="true"]::after,
  .history-skeleton {
    animation: none;
  }
}
.balance-value small {
  font-size: 16px;
  font-weight: 500;
  color: #818c6f;
}
.topup {
  background: #ffffff;
  width: 100%;
  border: 1px solid #e1e6d5;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 12.32px;
  display: flex;
  justify-content: space-between;
}
.balance-card p {
  font-size: 10.08px;
  color: #8c957d;
  text-align: center;
  margin: 6px 0 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  text-align: left;
  font-size: 12.32px;
}
.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #dbdcc6;
  border: 1px solid #caceb4;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 13.44px;
}
.profile small {
  display: block;
  font-size: 10.08px;
  color: #7f8476;
  margin-top: 4px;
}
.profile-more {
  margin-left: auto;
  font-size: 22.4px;
  color: #667257;
}

.bonus-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  color: #64724d;
}
.bonus-balance b { font-weight: 600; }
