/* =====================================================================
   RubiManage application styles
   Memakai token dari rubimanage-theme.css
   ===================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ruby); text-decoration: none; }
a:hover { color: var(--ruby-dark); }
strong { font-weight: 500; }
code { font-family: var(--font-mono); font-size: 0.92em; }

::selection { background: var(--ruby-tint-strong); color: var(--ruby-deep); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--ruby);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------------
   App shell
   --------------------------------------------------------------------- */
.app-body { min-height: 100vh; }

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-width);
  max-width: 86vw;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-102%);
  transition: transform 220ms var(--ease);
  will-change: transform;
}
.sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-3); }

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(36, 33, 36, 0.42);
  backdrop-filter: blur(2px);
  animation: fade-in 160ms var(--ease);
}
.sidebar-scrim[hidden] { display: none; }

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 18px 18px 14px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.brand-mark--lg { width: 52px; height: 52px; border-radius: 16px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__text strong { font-size: 17px; letter-spacing: -0.2px; }
.brand__text small { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }

.sidebar__close { display: inline-flex; }

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 18px;
  scrollbar-width: thin;
}

.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 0; }
.nav-group__label {
  padding: 0 12px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.nav-link .icon { width: 21px; height: 21px; opacity: 0.85; }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.is-active {
  background: var(--ruby-tint);
  color: var(--ruby-dark);
  font-weight: 700;
}
.nav-link.is-active .icon { opacity: 1; }

.sidebar__footer {
  border-top: 1px solid var(--border);
  padding: 12px;
  background: var(--surface);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--text);
}
.sidebar-user:hover { background: var(--surface-2); color: var(--text); }
.sidebar-user__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sidebar-user__text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user__text small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.sidebar__logout { margin-top: 6px; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ruby);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.avatar:hover { color: #fff; background: var(--ruby-dark); }
.avatar--sm { width: 34px; height: 34px; font-size: 11px; }

.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

/* ---------------------------------------------------------------------
   Top app bar
   --------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--topbar-height);
  padding: 8px 14px;
  background: rgba(246, 246, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 225, 227, 0.7);
}
.topbar__menu { margin-left: -6px; }
.topbar__title { min-width: 0; flex: 1; }
.topbar__title h1 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__title p { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.topbar__public { display: none; }

.main { flex: 1; }
.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 14px 28px;
}

/* ---------------------------------------------------------------------
   Bottom navigation
   --------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--bottom-nav-height);
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 5px 2px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}
.bottom-nav__item .icon { width: 23px; height: 23px; }
.bottom-nav__item.is-active { color: var(--ruby); font-weight: 700; }
.bottom-nav__item.is-active .icon { color: var(--ruby); }
.bottom-nav__item:hover { color: var(--ruby-dark); }
.bottom-nav__item.is-active::before {
  content: "";
  position: absolute;
  margin-top: -46px;
  width: 26px; height: 3px;
  border-radius: 999px;
  background: var(--ruby);
}

/* ---------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ruby);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.8); }
.text-muted { color: var(--muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-ruby { color: var(--ruby) !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.strong { font-weight: 700; }
.fs-caption { font-size: var(--fs-caption); }
.fs-small { font-size: var(--fs-label); }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.divider { height: 1px; background: var(--border); border: 0; margin: var(--space-4) 0; }
.hide-mobile { display: none !important; }

/* ---------------------------------------------------------------------
   Page header & layout helpers
   --------------------------------------------------------------------- */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.page-head__title h2 {
  font-size: var(--fs-headline);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.35px;
}
.page-head__title p { color: var(--muted); font-size: var(--fs-label); margin-top: 5px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-head__actions .btn { flex: 1 1 auto; justify-content: center; }

.grid { display: grid; gap: 14px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
.grid--span-2 { grid-column: 1 / -1; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--sm { gap: 8px; }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h3 { font-size: var(--fs-title); font-weight: 700; }
.section-head p { color: var(--muted); font-size: var(--fs-caption); margin-top: 3px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn--primary { background: var(--ruby); color: #fff; box-shadow: var(--shadow-ruby); }
.btn--primary:hover { background: var(--ruby-dark); color: #fff; }

.btn--tonal { background: var(--ruby-tint); color: var(--ruby-dark); }
.btn--tonal:hover { background: var(--ruby-tint-strong); color: var(--ruby-deep); }

.btn--outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn--outline:hover { background: var(--surface-2); border-color: var(--ruby); color: var(--ruby-dark); }

.btn--ghost { color: var(--muted); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8F1D17; color: #fff; }
.btn--danger-soft { background: var(--danger-tint); color: var(--danger); }
.btn--danger-soft:hover { background: #F9DAD6; color: var(--danger); }

.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #16603C; color: #fff; }

.btn--sm { min-height: 34px; padding: 0 13px; font-size: 12px; gap: 6px; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon-only { padding: 0; width: 42px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
  flex: 0 0 auto;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn--ghost { background: transparent; box-shadow: none; color: var(--muted); }
.icon-btn--ghost:hover { background: var(--surface-3); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .icon { width: 18px; height: 18px; }

.btn-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn-group form { display: inline-flex; }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card--flat { box-shadow: none; }
.card--tint { background: linear-gradient(145deg, var(--ruby-tint), #fff 70%); border-color: #F3D9DE; }
.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}
.card__title { font-size: var(--fs-title); font-weight: 700; }
.card__subtitle { color: var(--muted); font-size: var(--fs-caption); margin-top: 3px; }
.card__body { padding: 16px; }
.card__footer { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.card__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.stat-card__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ruby-tint);
  color: var(--ruby);
  margin-bottom: 10px;
}
.stat-card__icon .icon { width: 19px; height: 19px; }
.stat-card__label { font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card__value {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.stat-card__meta { font-size: 11px; color: var(--muted); margin-top: 6px; }
.stat-card--success .stat-card__icon { background: var(--success-tint); color: var(--success); }
.stat-card--warning .stat-card__icon { background: var(--warning-tint); color: var(--warning); }
.stat-card--info .stat-card__icon { background: var(--info-tint); color: var(--info); }
.stat-card--danger .stat-card__icon { background: var(--danger-tint); color: var(--danger); }

/* Quick actions */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  min-height: 58px;
}
.quick-action .icon { width: 20px; height: 20px; color: var(--ruby); }
.quick-action:hover { border-color: var(--ruby-tint-strong); background: var(--ruby-tint); color: var(--ruby-dark); }

/* ---------------------------------------------------------------------
   Badges & chips
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--success { background: var(--success-tint); color: var(--success); }
.badge--warning { background: var(--warning-tint); color: var(--warning); }
.badge--danger { background: var(--danger-tint); color: var(--danger); }
.badge--info { background: var(--info-tint); color: var(--info); }
.badge--neutral { background: var(--neutral-tint); color: var(--neutral); }
.badge--ruby { background: var(--ruby-tint); color: var(--ruby-dark); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.chip.is-active, .chip:hover { border-color: var(--ruby); color: var(--ruby-dark); background: var(--ruby-tint); }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: var(--fs-label); font-weight: 500; color: var(--text); }
.field__label .req { color: var(--ruby); }
.field__hint { font-size: 11px; color: var(--muted); }
.field__error { font-size: 11px; color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ruby);
  box-shadow: var(--focus-ring);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.textarea { min-height: 92px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%236F6870'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.input--money { font-variant-numeric: tabular-nums; }

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon {
  position: absolute;
  left: 13px;
  color: var(--muted-2);
  width: 20px; height: 20px;
  pointer-events: none;
}
.input-icon .input { padding-left: 42px; }
.input-icon__action {
  position: absolute;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.input-icon__action:hover { background: var(--surface-3); }
.input-icon__action .icon { width: 19px; height: 19px; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.form-actions .btn { flex: 1 1 auto; }
.form-actions .btn--primary { order: -1; }

.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  cursor: pointer;
}
.checkbox input, .radio input { width: 18px; height: 18px; accent-color: var(--ruby); margin: 1px 0 0; flex: 0 0 auto; }

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.filters__actions { display: flex; gap: 8px; align-items: flex-end; }
.filters__actions .btn { flex: 1; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }

/* Segmented control */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  background: var(--surface-3);
  border-radius: var(--radius-pill);
}
.segmented__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.segmented__item.is-active { background: var(--surface); color: var(--ruby-dark); box-shadow: var(--shadow-1); }

/* ---------------------------------------------------------------------
   Tables (desktop) & cards (mobile)
   --------------------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FCFAFB; }
.data-table .cell-main { display: flex; flex-direction: column; gap: 1px; min-width: 130px; }
.data-table .cell-main strong { font-weight: 500; }
.data-table .cell-main small { color: var(--muted); font-size: 11px; }
.data-table .cell-actions { white-space: nowrap; text-align: right; }
.data-table .cell-actions .btn-group { justify-content: flex-end; }
.data-table .cell-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .cell-empty { padding: 28px; text-align: center; color: var(--muted); }

.table-summary {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
}
.table-summary strong { font-size: 14px; }

/* Mobile table -> card */
@media (max-width: 820px) {
  .table-wrap--responsive { border: 0; background: transparent; overflow: visible; }
  .table-wrap--responsive .data-table { display: block; }
  .table-wrap--responsive thead { display: none; }
  .table-wrap--responsive tbody { display: block; }
  .table-wrap--responsive tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-1);
  }
  .table-wrap--responsive td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    text-align: right;
    white-space: normal;
    min-width: 0;
  }
  .table-wrap--responsive td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    padding-top: 1px;
  }
  .table-wrap--responsive td:not([data-label])::before,
  .table-wrap--responsive td[data-label=""]::before { display: none; }
  .table-wrap--responsive td.cell-actions {
    justify-content: flex-end;
    margin-top: 5px;
    padding-top: 11px;
    border-top: 1px dashed var(--border);
  }
  .table-wrap--responsive td.cell-actions::before { display: none; }
  .table-wrap--responsive .cell-main { align-items: flex-end; text-align: right; }
  .table-wrap--responsive .cell-main small { text-align: right; }
  .table-wrap--responsive tr:hover { background: var(--surface); }
  .table-wrap--responsive .cell-empty { display: block; text-align: center; }
  .table-wrap--responsive .cell-empty::before { display: none; }
  .table-wrap--responsive tbody tr:last-child { margin-bottom: 0; }
}
@media (min-width: 821px) {
  .table-wrap--responsive { overflow-x: auto; }
}

/* ---------------------------------------------------------------------
   Lists
   --------------------------------------------------------------------- */
.data-list { display: flex; flex-direction: column; }
.data-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.data-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.data-list__item:first-child { padding-top: 0; }
.data-list__main { flex: 1; min-width: 0; }
.data-list__main strong { display: block; font-weight: 500; font-size: 13px; }
.data-list__main span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.data-list__meta { text-align: right; font-size: 12px; }

.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 10px; }
.rank-item__num {
  width: 25px; height: 25px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--ruby-tint);
  color: var(--ruby-dark);
  font-size: 11px; font-weight: 700;
  flex: 0 0 auto;
}
.rank-item__main { flex: 1; min-width: 0; }
.rank-item__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 5px; }
.rank-item__top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item__top strong { font-variant-numeric: tabular-nums; }

.progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress__bar { height: 100%; border-radius: inherit; background: var(--ruby); min-width: 2px; }
.progress__bar--success { background: var(--success); }
.progress__bar--warning { background: #C48A12; }
.progress__bar--info { background: var(--info); }

/* ---------------------------------------------------------------------
   Charts (CSS based, tanpa library)
   --------------------------------------------------------------------- */
.chart {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 170px;
  padding-top: 8px;
}
.chart__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}
.chart__bars { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 138px; }
.chart__bar {
  flex: 1;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: var(--ruby);
  position: relative;
  transition: opacity var(--duration) var(--ease);
}
.chart__bar--expense { background: #D9A6AE; }
.chart__bar:hover { opacity: 0.82; }
.chart__label { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chart__label--rotate { writing-mode: vertical-rl; transform: rotate(180deg); height: 44px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.chart-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend__swatch { width: 9px; height: 9px; border-radius: 3px; background: var(--ruby); }
.chart-legend__swatch--expense { background: #D9A6AE; }

.comparison-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row__head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 8px; }
.comparison-row__head strong { font-variant-numeric: tabular-nums; }
.comparison-bars { display: flex; flex-direction: column; gap: 5px; }
.comparison-bars__line { display: flex; align-items: center; gap: 8px; }
.comparison-bars__line .progress { flex: 1; }
.comparison-bars__value { font-size: 10px; color: var(--muted); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------- */
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  margin-bottom: 12px;
}
.flash-stack .alert { margin-bottom: 0; }
.alert__icon { display: inline-flex; margin-top: 1px; }
.alert__icon .icon { width: 18px; height: 18px; }
.alert__text { flex: 1; min-width: 0; }
.alert__close {
  border: 0; background: transparent; padding: 2px; margin: -2px -2px 0 0;
  color: inherit; opacity: 0.65; display: inline-flex;
}
.alert__close .icon { width: 17px; height: 17px; }
.alert--success { background: var(--success-tint); border-color: #CBE8D8; color: #135D39; }
.alert--error { background: var(--danger-tint); border-color: #F5C9C4; color: #8C1D16; }
.alert--warning { background: var(--warning-tint); border-color: #F2DFA9; color: #6E4800; }
.alert--info { background: var(--info-tint); border-color: #C9DEF8; color: #154A80; }

/* ---------------------------------------------------------------------
   Empty state
   --------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}
.empty-state__icon {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ruby-tint);
  color: var(--ruby);
  margin-bottom: 12px;
}
.empty-state__icon .icon { width: 26px; height: 26px; }
.empty-state h3 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty-state p { font-size: 12px; max-width: 380px; }
.empty-state .btn { margin-top: 14px; }

/* ---------------------------------------------------------------------
   Dialog / bottom sheet
   --------------------------------------------------------------------- */
.dialog {
  border: 0;
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(420px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}
.dialog::backdrop { background: rgba(36, 33, 36, 0.5); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in 180ms var(--ease); }
.dialog__form { padding: 24px 22px 20px; text-align: center; }
.dialog__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--danger-tint);
  color: var(--danger);
  margin-bottom: 12px;
}
.dialog h2 { font-size: 18px; margin-bottom: 6px; }
.dialog p { color: var(--muted); font-size: 13px; }
.dialog__actions { display: flex; gap: 8px; margin-top: 20px; }
.dialog__actions .btn { flex: 1; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------
   Detail views
   --------------------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.detail-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); flex: 0 0 auto; }
.detail-list dd { text-align: right; font-weight: 500; margin: 0; min-width: 0; overflow-wrap: anywhere; }

.profile-head { display: flex; align-items: center; gap: 13px; }
.profile-head .avatar { width: 48px; height: 48px; font-size: 16px; }
.profile-head h3 { font-size: 17px; }
.profile-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------------
   Receipt
   --------------------------------------------------------------------- */
.receipt {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.receipt__head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--border-strong); }
.receipt__brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 10px; }
.receipt__brand .brand-mark { width: 44px; height: 44px; }
.receipt__brand strong { font-size: 18px; display: block; text-align: left; }
.receipt__brand span { font-size: 11px; color: var(--muted); display: block; text-align: left; }
.receipt__head h2 { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 8px; }
.receipt__head p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.receipt__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 16px 0; font-size: 12px; }
.receipt__meta dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.receipt__meta dd { font-weight: 500; margin: 2px 0 0; }
.receipt__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.receipt__table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); }
.receipt__table td { padding: 9px 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
.receipt__table th:last-child, .receipt__table td:last-child { text-align: right; }
.receipt__totals { margin-top: 12px; padding-top: 8px; }
.receipt__totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 12px; }
.receipt__totals div.grand { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 700; }
.receipt__totals div.grand span:last-child { color: var(--ruby-dark); }
.receipt__footer { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-strong); font-size: 11px; color: var(--muted); }
.receipt__status { margin-top: 12px; }

/* ---------------------------------------------------------------------
   Auth pages
   --------------------------------------------------------------------- */
.auth-body { background: var(--bg); min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-brand { display: none; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(181, 18, 43, 0.06), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-2);
}
.auth-card__mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-card__mobile-brand .brand-mark { width: 42px; height: 42px; }
.auth-card__mobile-brand strong { display: block; font-size: 17px; }
.auth-card__mobile-brand span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.auth-card__header { margin-bottom: 18px; }
.auth-card__header h2 { font-size: 25px; line-height: 1.2; letter-spacing: -0.5px; margin: 5px 0 6px; }
.auth-card__header p { color: var(--muted); font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.auth-form .btn { margin-top: 4px; }
.auth-links { display: flex; justify-content: center; margin-top: 16px; font-size: 12px; }
.auth-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.auth-links .icon { width: 15px; height: 15px; }

.demo-accounts {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.demo-accounts summary { cursor: pointer; color: var(--muted); font-weight: 500; }
.demo-accounts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.demo-accounts__grid div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--surface-2); border-radius: 8px; }
.demo-accounts__grid strong { font-weight: 500; }
.demo-accounts__grid span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.demo-accounts p { color: var(--muted); font-size: 11px; margin-top: 8px; }

/* ---------------------------------------------------------------------
   Error page
   --------------------------------------------------------------------- */
.error-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(700px 400px at 50% 0%, var(--ruby-tint), transparent 70%), var(--bg);
}
.error-card {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-2);
}
.error-code { font-size: 44px; font-weight: 700; color: var(--ruby); line-height: 1; letter-spacing: -2px; }
.error-card h1 { font-size: 20px; margin: 10px 0 6px; }
.error-card p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.error-card .btn { display: inline-flex; }

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
.card-scroll { max-height: 430px; overflow-y: auto; }
.note-box {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--info-tint);
  color: #154A80;
  font-size: 12px;
  line-height: 1.6;
}
.note-box .icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.note-box--warning { background: var(--warning-tint); color: #6E4800; }
.note-box--ruby { background: var(--ruby-tint); color: var(--ruby-dark); }

.kv-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.kv-inline strong { color: var(--text); font-weight: 500; }

.stepper { display: flex; align-items: center; gap: 5px; }
.stepper__item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.stepper__item.is-done { color: var(--success); }
.stepper__item.is-active { color: var(--ruby); font-weight: 600; }
.stepper__dot { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); font-size: 10px; font-weight: 700; }
.stepper__item.is-active .stepper__dot { background: var(--ruby); color: #fff; }
.stepper__item.is-done .stepper__dot { background: var(--success-tint); color: var(--success); }
.stepper__line { width: 12px; height: 1px; background: var(--border-strong); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (min-width: 600px) {
  .content { padding: 20px 20px 32px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .page-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .page-head__actions { flex: 0 0 auto; }
  .page-head__actions .btn { flex: 0 0 auto; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-actions .btn { flex: 0 0 auto; }
  .form-actions .btn--primary { order: 0; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
  .receipt { padding: 32px; }
}

@media (min-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr); }
  .auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    color: #fff;
    background:
      radial-gradient(650px 500px at 85% 10%, rgba(255, 255, 255, 0.14), transparent 60%),
      linear-gradient(150deg, #C2183A 0%, var(--ruby) 45%, var(--ruby-dark) 100%);
    position: relative;
    overflow: hidden;
  }
  .auth-brand::after {
    content: "";
    position: absolute;
    right: -90px; bottom: -130px;
    width: 380px; height: 380px;
    border-radius: 38% 62% 60% 40% / 45% 40% 60% 55%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.035), 0 0 0 90px rgba(255, 255, 255, 0.025);
    transform: rotate(18deg);
  }
  .auth-brand__top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
  .auth-brand__top .brand-mark { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
  .auth-brand__top strong { display: block; font-size: 20px; letter-spacing: -0.3px; }
  .auth-brand__top span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.72); margin-top: 1px; }
  .auth-brand__content { position: relative; z-index: 1; max-width: 520px; }
  .auth-brand__content h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -1.2px; margin: 10px 0 14px; }
  .auth-brand__content > p { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); max-width: 440px; }
  .auth-features { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
  .auth-features li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
  .auth-features .icon { width: 18px; height: 18px; color: #FFD8DE; background: rgba(255, 255, 255, 0.12); border-radius: 50%; padding: 3px; }
  .auth-brand__footer { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: rgba(255, 255, 255, 0.6); position: relative; z-index: 1; }
  .auth-panel { padding: 40px; }
  .auth-card { padding: 30px 30px 24px; }
  .auth-card__mobile-brand { display: none; }
  .demo-accounts { display: block; }
}

@media (min-width: 1024px) {
  .hide-mobile { display: initial !important; }
  .sidebar { transform: none; box-shadow: none; }
  .sidebar__close { display: none; }
  .sidebar-scrim { display: none !important; }
  .app-main {
    margin-left: var(--sidebar-width);
    padding-bottom: 0;
    min-height: 100vh;
  }
  .topbar {
    min-height: 76px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
  }
  .topbar__menu { display: none; }
  .topbar__title h1 { font-size: 22px; }
  .topbar__title p { font-size: 12px; margin-top: 2px; }
  .topbar__public { display: inline-flex; }
  .content { padding: 26px 28px 42px; }
  .bottom-nav { display: none; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
  .stat-card { padding: 18px; }
  .stat-card__value { font-size: 25px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { gap: 18px; }
  .card__header { padding: 18px 20px 0; }
  .card__body { padding: 20px; }
  .card__footer { padding: 12px 20px; }
  .page-head { margin-bottom: 22px; }
  .page-head__title h2 { font-size: 28px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 16px; margin-bottom: 18px; }
  .filters__actions { grid-column: auto; }
  .filters__actions .btn { flex: 0 0 auto; }
  .receipt { padding: 40px; }
}

@media (min-width: 1280px) {
  .content { padding: 30px 34px 48px; }
  .topbar { padding: 12px 34px; }
}

@media (max-width: 380px) {
  .stat-grid { gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card__value { font-size: 18px; }
  .content { padding-left: 11px; padding-right: 11px; }
  .bottom-nav__item { font-size: 9px; }
}

/* ---------------------------------------------------------------------
   Print
   --------------------------------------------------------------------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; font-size: 12px; }
  .sidebar, .topbar, .bottom-nav, .sidebar-scrim,
  .flash-stack, .no-print, .page-head__actions, .filters { display: none !important; }
  .app-main { margin-left: 0 !important; padding-bottom: 0 !important; }
  .content { max-width: none; padding: 0 !important; }
  .receipt { border: 0; border-radius: 0; max-width: none; padding: 0; box-shadow: none; }
  .card { break-inside: avoid; box-shadow: none; }
  .data-table { font-size: 10px; }
  .data-table th, .data-table td { padding: 6px 8px; }
  .table-wrap { overflow: visible; border: 0; }
  .badge { border: 1px solid var(--border-strong); }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
