.history-list {
  display: grid;
  gap: 0.85rem;
}

.history-entry {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255,255,255,0.05);
}

.history-entry:hover,
.history-entry:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.history-expression {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.history-result {
  font-size: 1.15rem;
}

.app-shell.layout-desktop .history-list {
  gap: 0.35rem;
}

.app-shell.layout-desktop .history-entry {
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
}

.app-shell.layout-desktop .history-entry:hover,
.app-shell.layout-desktop .history-entry:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.app-shell.layout-desktop .history-expression {
  margin-bottom: 0.2rem;
}

.app-shell.layout-desktop .history-result {
  font-size: 1.05rem;
  font-weight: 600;
}

.app-shell.layout-desktop .side-footer {
  justify-content: flex-end;
}

.app-shell.layout-desktop .side-footer button {
  flex: 0 0 auto;
}

.side-footer {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.side-footer button {
  flex: 1;
}
