.history-list {
  display: grid;
  flex: 1 1 auto;
  gap: 0.85rem;
  align-content: start;
}

.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 var(--border-subtle);
}

.history-entry:hover,
.history-entry:focus-visible {
  background: var(--surface-hover);
}

.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: var(--surface-hover);
}

.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: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.side-clear-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--text-soft);
}

.side-clear-button svg {
  width: 1.3rem;
  height: 1.3rem;
}
