:root {
  --bg: #f7f0e8;
  --bg-strong: #fff8f0;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #172033;
  --ink-soft: #5e6472;
  --accent: #ef6c3a;
  --accent-deep: #c74c1d;
  --accent-soft: #ffe2d5;
  --mint: #0f766e;
  --mint-soft: #d3f3ec;
  --gold: #e2a43a;
  --gold-soft: #fff0ca;
  --rose-soft: #f8d8d6;
  --border: rgba(23, 32, 51, 0.12);
  --shadow: 0 28px 60px rgba(23, 32, 51, 0.12);
  --shadow-soft: 0 18px 35px rgba(23, 32, 51, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(239, 108, 58, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f0e8 0%, #fcf8f2 100%);
  color: var(--ink);
  font-family: "Manrope", "Trebuchet MS", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 82%);
}

button,
input,
select {
  font: inherit;
}

select {
  appearance: auto;
  -webkit-appearance: menulist;
}

button {
  cursor: pointer;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.6;
  pointer-events: none;
}

.page-glow-left {
  left: -8rem;
  top: -6rem;
  background: rgba(239, 108, 58, 0.28);
}

.page-glow-right {
  right: -8rem;
  top: 10rem;
  background: rgba(15, 118, 110, 0.2);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.surface {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  padding: 2rem;
  overflow: hidden;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-small {
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
}

.hero h1,
.section-heading h2,
.week-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.7rem);
}

.hero-text {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-focus {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 234, 0.95)),
    linear-gradient(135deg, rgba(239, 108, 58, 0.14), rgba(15, 118, 110, 0.08));
  border: 1px solid rgba(239, 108, 58, 0.12);
}

.hero-focus-tag {
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 108, 58, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-focus strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.hero-focus p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-progress-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.hero-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-progress-copy span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-bar {
  position: relative;
  overflow: hidden;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
}

.progress-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--mint), rgba(15, 118, 110, 0.52));
  transition: width 220ms ease;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 1.35fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.form-panel,
.dashboard-panel,
.history-panel {
  padding: 1.6rem;
}

.history-panel {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-note {
  max-width: 21rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: right;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.field-group input:focus,
.field-group select:focus {
  outline: none;
  border-color: rgba(239, 108, 58, 0.5);
  box-shadow: 0 0 0 4px rgba(239, 108, 58, 0.14);
  transform: translateY(-1px);
}

.amount-group {
  grid-column: 1 / -1;
}

.amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.field-group small,
.helper-text {
  color: var(--ink-soft);
  line-height: 1.55;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0.6rem 0 1.25rem;
}

.preview-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.preview-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.preview-card strong {
  font-size: 1.2rem;
}

.subsection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.subsection-heading h3 {
  margin: 0;
  font-size: 1.05rem;
}

.compact-heading {
  margin-bottom: 0.75rem;
}

.quick-patients {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.patient-chip {
  display: grid;
  gap: 0.18rem;
  justify-items: start;
  min-height: 2.45rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.patient-chip strong {
  font-size: 0.92rem;
}

.patient-chip span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.2;
}

.patient-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 24px rgba(23, 32, 51, 0.08);
}

.inline-empty-state {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  text-align: center;
}

.form-insight {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.3rem;
  padding: 1.1rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 234, 0.92)),
    linear-gradient(135deg, rgba(239, 108, 58, 0.08), rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(239, 108, 58, 0.12);
}

.form-insight-copy h3 {
  margin: 0;
  font-size: 1.15rem;
}

.form-insight-text {
  margin-top: 0.45rem;
}

.form-insight-side {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  text-align: right;
}

.form-insight-side strong {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.pill-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.pill-button:active {
  transform: translateY(0);
}

.primary-button {
  min-height: 3.25rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  box-shadow: 0 16px 30px rgba(199, 76, 29, 0.24);
}

.secondary-button,
.ghost-button,
.pill-button {
  min-height: 2.8rem;
  padding: 0.75rem 1.1rem;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.pill-button {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.ghost-button.danger {
  color: #a6321c;
  background: rgba(248, 216, 214, 0.55);
}

.secondary-button:disabled,
.primary-button:disabled,
.ghost-button:disabled,
.pill-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stat-card {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stat-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.1;
}

.stat-card.accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 226, 213, 0.9));
}

.stat-card.mint {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(211, 243, 236, 0.9));
}

.stat-card.gold {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 240, 202, 0.9));
}

.stat-card.neutral {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 244, 247, 0.92));
}

.compact-field {
  margin-bottom: 0;
}

.device-panel,
.filters-panel,
.pending-panel {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.device-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.file-button {
  position: relative;
}

.storage-status {
  margin: 0.95rem 0 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.pending-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.pending-item-copy strong {
  display: block;
  font-size: 1rem;
}

.pending-item-week {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pending-item-copy p {
  margin: 0.32rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.pending-item-side {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  text-align: right;
}

.pending-item-side strong {
  font-size: 1.05rem;
}

.history-heading {
  align-items: flex-start;
}

.history-heading-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.history-toolbar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.week-card {
  padding: 1.2rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 245, 0.94));
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.week-card.current {
  border-color: rgba(239, 108, 58, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 40px rgba(239, 108, 58, 0.12);
}

.week-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.week-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.06);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.week-card h3 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.week-subtitle {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.week-metrics {
  display: grid;
  gap: 0.75rem;
}

.week-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-pill {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.metric-pill span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.metric-pill strong {
  font-size: 1rem;
}

.week-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.week-card.compact,
.week-card.collapsed {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(252, 247, 241, 0.9));
}

.week-toggle-button {
  min-width: 9.75rem;
}

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

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.record-primary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.record-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 108, 58, 0.16), rgba(255, 226, 213, 0.95));
  color: var(--accent-deep);
  font-weight: 800;
}

.record-primary h4 {
  margin: 0;
  font-size: 1rem;
}

.record-primary p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.record-secondary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.record-amount {
  min-width: 6.4rem;
  text-align: right;
  font-size: 1.1rem;
}

.record-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.mini-button.danger {
  color: #a6321c;
  background: rgba(248, 216, 214, 0.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge.method {
  background: rgba(23, 32, 51, 0.08);
  color: var(--ink);
}

.badge.status-paid {
  background: var(--mint-soft);
  color: var(--mint);
}

.badge.status-pending {
  background: var(--gold-soft);
  color: #996300;
}

.badge.amount-mode {
  border: 1px solid transparent;
}

.badge.amount-mode.suggested {
  background: rgba(23, 32, 51, 0.07);
  color: var(--ink);
}

.badge.amount-mode.custom {
  background: rgba(239, 108, 58, 0.14);
  color: var(--accent-deep);
}

.empty-state {
  padding: 2rem 1.2rem;
  border: 1px dashed rgba(23, 32, 51, 0.18);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
}

.compact-empty-state {
  padding: 1.2rem 1rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  min-width: 240px;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: rgba(23, 32, 51, 0.92);
  color: white;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

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

.toast[data-tone="error"] {
  background: rgba(145, 32, 18, 0.94);
}

.reveal {
  animation: fade-up 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-panel.reveal {
  animation-delay: 80ms;
}

.dashboard-panel.reveal {
  animation-delay: 140ms;
}

.history-panel.reveal {
  animation-delay: 200ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero,
  .workspace,
  .week-card-header,
  .record-card,
  .pending-item,
  .form-insight {
    grid-template-columns: 1fr;
  }

  .week-actions {
    justify-content: flex-start;
  }

  .record-secondary {
    justify-content: flex-start;
  }

  .device-actions,
  .pending-item-side,
  .history-heading-actions,
  .history-toolbar,
  .form-insight-side {
    justify-items: start;
    text-align: left;
  }

  .record-amount {
    text-align: left;
  }
}

@media (pointer: coarse), (max-width: 720px) {
  body::before,
  .page-glow {
    display: none;
  }

  .surface {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .reveal {
    animation: none;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 1rem, 1200px);
    padding: 1rem 0 2rem;
  }

  .hero,
  .form-panel,
  .dashboard-panel,
  .history-panel {
    padding: 1.2rem;
  }

  .field-grid,
  .preview-strip,
  .stats-grid,
  .filters-grid,
  .week-totals,
  .amount-row {
    grid-template-columns: 1fr;
  }

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

  .section-note {
    text-align: left;
  }

  .form-actions {
    align-items: stretch;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .pill-button,
  .mini-button,
  .patient-chip {
    width: 100%;
    justify-content: center;
  }

  .device-actions,
  .record-actions,
  .pending-item-side,
  .history-toolbar {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
