.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark--stacked {
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
}

.brand-logo-crop {
  position: relative;
  display: block;
  width: min(100%, 210px);
  height: 76px;
  overflow: hidden;
}

.brand-logo-crop .brand-logo-source {
  position: absolute;
  top: -69px;
  left: -110px;
  width: 430px;
  max-width: none;
  height: 215px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.brand-logo-crop .brand-logo-symbol-overlay {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 56px;
  height: 60px;
  max-width: none;
}

.brand-logo-crop--auth {
  width: min(100%, 300px);
  height: 100px;
}

.brand-logo-crop--auth .brand-logo-source {
  top: -105px;
  left: -158px;
  width: 620px;
  height: 310px;
}

.brand-logo-crop--auth .brand-logo-symbol-overlay {
  top: 8px;
  left: 8px;
  width: 80px;
  height: 84px;
}

.brand-sigil {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
}

.brand-sigil--sm {
  width: 44px;
  height: 44px;
  font-size: 38px;
}

.brand-meta {
  display: block;
  color: var(--color-primary-2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.brand-word {
  display: block;
  color: var(--color-primary);
  font-size: inherit;
  line-height: 0.95;
  letter-spacing: 0.22em;
}

.sidebar .brand-mark--stacked {
  gap: 10px;
  min-height: 104px;
}

.sidebar .brand-sigil {
  position: relative;
  width: 86px;
  height: 76px;
  font-size: 78px;
  text-shadow: 0 0 28px rgba(214, 173, 88, 0.18);
}

.sidebar .brand-sigil::before {
  content: "♛";
  position: absolute;
  top: -14px;
  left: 50%;
  color: var(--color-primary-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  transform: translateX(-50%);
}

.sidebar .brand-word {
  font-size: 34px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app-search {
  position: relative;
  width: min(100%, 430px);
}

.app-search .icon {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  color: var(--color-muted);
  transform: translateY(-50%);
}

.app-search .input {
  padding-left: 44px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-muted);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.title-lg,
.title-md,
.title-sm {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

.title-lg {
  font-size: var(--text-2xl);
  line-height: 1.08;
}

.title-xl {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.02;
}

.title-md {
  font-size: var(--text-xl);
  line-height: 1.18;
}

.title-sm {
  font-size: var(--text-lg);
  line-height: 1.3;
}

.eyebrow,
.overline {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.muted {
  margin: 0;
  color: var(--color-muted);
}

.dim {
  color: var(--color-dim);
}

.gold {
  color: var(--color-primary);
}

.panel,
.card,
.event-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.panel {
  overflow: hidden;
}

.panel-pad,
.card-pad,
.event-card {
  padding: var(--space-5);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.panel-body {
  padding: var(--space-5);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 0 var(--space-5);
  color: var(--color-text);
  background: transparent;
  font-size: var(--text-md);
  font-weight: 650;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.btn-sm {
  min-height: 34px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

.btn-primary {
  color: #16120a;
  border-color: #f2c86d;
  background: linear-gradient(180deg, #f4d483 0%, #d5a23c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px rgba(214, 173, 88, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffdc88 0%, #e4b14d 100%);
}

.btn-secondary {
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.025);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--color-primary-soft);
}

.btn-ghost {
  color: var(--color-muted);
  border-color: transparent;
  background: transparent;
}

.btn:focus-visible,
.input:focus,
.select:focus,
.tab:focus-visible,
.nav-link:focus-visible {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.field small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.input,
.select,
textarea.input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-input);
  padding: 0 var(--space-4);
  color: var(--color-text);
  background: rgba(10, 12, 12, 0.74);
}

textarea.input {
  min-height: 112px;
  padding-top: var(--space-3);
  resize: vertical;
}

.input::placeholder {
  color: rgba(193, 184, 169, 0.62);
}

.select-sm {
  min-height: 38px;
  font-size: var(--text-sm);
}

.input-shell {
  position: relative;
  display: grid;
}

.input-shell .input {
  min-height: 54px;
  padding-left: 48px;
  border-color: rgba(214, 173, 88, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 10, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.input-shell .input:hover {
  border-color: rgba(214, 173, 88, 0.42);
}

.input-prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-polished {
  gap: 9px;
}

.field-polished label {
  color: var(--color-heading);
}

.nav {
  display: grid;
  gap: var(--space-2);
  padding-top: 2px;
}

.nav-group {
  display: grid;
  gap: 12px;
}

.nav-label {
  display: none;
  padding: var(--space-2) var(--space-2);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: #c9c3b8;
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 550;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--color-heading);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.active {
  border-left-color: var(--color-primary);
  box-shadow: inset 2px 0 0 var(--color-primary);
}

.nav-icon {
  display: inline-flex;
  justify-content: center;
  color: currentColor;
}

.nav-icon .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.nav-link small {
  display: none;
}

.progress-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-context {
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4) var(--space-3) 0;
}

.sidebar-context > span {
  color: var(--color-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-context > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.sidebar-context strong:last-child {
  color: var(--color-heading);
}

.sidebar-context i {
  color: var(--color-dim);
  font-style: normal;
}

.sidebar-account {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-4);
  color: var(--color-heading);
  font-size: var(--text-sm);
}

.sidebar-account strong,
.sidebar-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.sidebar-signout {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--color-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-signout:hover {
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-copy {
  color: var(--color-muted);
  font-size: 11px;
}

.progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.11);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6d27a, #c98a23);
}

.progress-line .percentage-0 { width: 0%; }
.progress-line .percentage-5 { width: 5%; }
.progress-line .percentage-10 { width: 10%; }
.progress-line .percentage-15 { width: 15%; }
.progress-line .percentage-20 { width: 20%; }
.progress-line .percentage-25 { width: 25%; }
.progress-line .percentage-30 { width: 30%; }
.progress-line .percentage-35 { width: 35%; }
.progress-line .percentage-40 { width: 40%; }
.progress-line .percentage-45 { width: 45%; }
.progress-line .percentage-50 { width: 50%; }
.progress-line .percentage-55 { width: 55%; }
.progress-line .percentage-60 { width: 60%; }
.progress-line .percentage-65 { width: 65%; }
.progress-line .percentage-70 { width: 70%; }
.progress-line .percentage-75 { width: 75%; }
.progress-line .percentage-80 { width: 80%; }
.progress-line .percentage-85 { width: 85%; }
.progress-line .percentage-90 { width: 90%; }
.progress-line .percentage-95 { width: 95%; }
.progress-line .percentage-100 { width: 100%; }

.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 0 var(--space-2);
  color: var(--color-primary);
  background: rgba(214, 173, 88, 0.1);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge-green {
  color: #8ad97e;
  border-color: rgba(117, 194, 107, 0.44);
  background: var(--color-success-soft);
}

.badge-amber {
  color: var(--color-warning);
  border-color: rgba(228, 180, 71, 0.48);
  background: var(--color-warning-soft);
}

.badge-red {
  color: var(--color-danger);
  border-color: rgba(255, 102, 86, 0.45);
  background: var(--color-danger-soft);
}

.metric {
  display: grid;
  gap: var(--space-2);
  min-height: 132px;
}

.metric span {
  color: var(--color-muted);
  font-size: var(--text-md);
  font-weight: 500;
}

.metric strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.metric small {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.metric-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(214, 173, 88, 0.08);
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.table-toolbar-plain {
  border: 0;
  padding: 0;
}

.toolbar-spacer {
  flex: 1 1 auto;
}

.search-field {
  position: relative;
  min-width: min(100%, 360px);
}

.search-field .icon {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  color: var(--color-muted);
  transform: translateY(-50%);
}

.search-field .icon + .input {
  padding-left: 44px;
}

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.table-wrap {
  max-height: min(58vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: rgba(8, 10, 10, 0.35);
}

.table-wrap .table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.table th {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--text-sm);
  font-weight: 600;
}

.table tbody tr:hover td {
  background: rgba(214, 173, 88, 0.06);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.table-sort::after {
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 4px solid var(--color-muted);
  content: "";
}

.table-sort[aria-sort="ascending"]::after {
  border-top: 0;
  border-bottom: 4px solid currentColor;
}

.table-sort[aria-sort="descending"]::after {
  border-top: 4px solid currentColor;
  border-bottom: 0;
}

.table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--color-muted);
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.tabs,
.segmented {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.tabs {
  width: fit-content;
  margin-bottom: var(--space-5);
}

.tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-md);
  font-weight: 500;
}

.tab.active {
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  background: rgba(214, 173, 88, 0.1);
}

.notice,
.alert {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.035);
}

.alert-warning {
  color: var(--color-warning);
  border-color: rgba(228, 180, 71, 0.48);
  background: var(--color-warning-soft);
}

.alert-info {
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  background: var(--color-primary-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.empty,
.table-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-card);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-events {
  display: grid;
  gap: var(--space-3);
}

.dashboard-event {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-event img,
.history-thumb {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.event-card-title {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 27px;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  color: var(--color-muted);
}

.finance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.finance-chip {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.finance-chip span {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 650;
}

.finance-chip strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.finance-chip small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.calendar {
  display: grid;
  gap: var(--space-4);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-3);
  text-align: center;
}

.calendar-grid span {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: var(--color-muted);
}

.calendar-grid .active {
  border-radius: 50%;
  color: #111;
  background: var(--color-primary);
}

.action-list {
  display: grid;
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
}

.action-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.action-item:last-child {
  border-bottom: 0;
}

.action-item strong {
  color: var(--color-heading);
}

.action-item small {
  color: var(--color-muted);
}

.create-strip {
  height: 130px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: url("/src/shared/assets/mockup-derived/create-strip.png") center / cover;
}

.create-page,
.detail-page {
  padding: var(--space-8);
}

.event-form-layout {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: var(--space-5);
}

.create-event-form {
  max-width: 1180px;
  margin: 0 auto;
}

.event-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: var(--space-5);
  align-items: start;
}

.category-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.category-fieldset legend {
  margin-bottom: var(--space-3);
  color: var(--color-heading);
  font-weight: 600;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.category-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.category-option:hover,
.category-option.active {
  color: var(--color-heading);
  border-color: rgba(214, 173, 88, 0.42);
  background: rgba(214, 173, 88, 0.07);
}

.category-option input {
  accent-color: var(--color-primary);
}

.create-event-actions {
  justify-content: flex-end;
}

.create-form-card,
.create-category-panel,
.create-preview-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
    rgba(18, 19, 18, 0.92);
}

.panel-kicker {
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.create-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 148px;
  place-items: center;
  gap: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--color-text);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 173, 88, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.choice-card:hover {
  border-color: rgba(214, 173, 88, 0.48);
  transform: translateY(-2px);
}

.choice-card.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 173, 88, 0.28), transparent 58%),
    rgba(214, 173, 88, 0.08);
  box-shadow: 0 0 0 3px rgba(214, 173, 88, 0.12), inset 0 0 24px rgba(214, 173, 88, 0.18);
}

.choice-card.active::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 18px rgba(214, 173, 88, 0.8);
}

.choice-card__mark {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(214, 173, 88, 0.34);
  border-radius: 999px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 24px;
  background: rgba(0, 0, 0, 0.28);
}

.custom-category-field[hidden] {
  display: none;
}

.theme-preview {
  min-height: 210px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background:
    radial-gradient(circle at 80% 20%, rgba(240, 200, 106, 0.42), transparent 15%),
    linear-gradient(145deg, #111 0%, #1c1916 45%, #080808 100%);
}

.create-preview-summary {
  display: grid;
  min-height: 210px;
  align-content: center;
  justify-items: start;
  gap: var(--space-3);
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-5);
}

.create-preview-summary strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

.create-preview-summary small {
  color: var(--color-muted);
}

.event-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.78) 33%, rgba(5, 5, 5, 0.18) 72%, rgba(5, 5, 5, 0.74) 100%),
    url("/src/shared/assets/mockup-derived/event-hero-churrasco.png") right center / cover;
}

.event-hero > * {
  position: relative;
  z-index: 1;
}

.event-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.event-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.overview-organization,
.overview-financial {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  min-width: 0;
}

.overview-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.overview-section-heading .title-md {
  margin-top: 4px;
}

.overview-organization-count {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}

.overview-organization-count strong,
.overview-financial-total strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.overview-organization-count span,
.overview-financial-total span,
.overview-money-pair span {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.overview-fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.overview-fact-list > div {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.overview-fact-list strong,
.overview-fact-list small {
  display: block;
}

.overview-fact-list small {
  margin-top: 2px;
  color: var(--color-muted);
}

.overview-financial-total {
  display: grid;
  gap: var(--space-2);
}

.overview-payment-progress {
  display: grid;
  gap: var(--space-2);
}

.overview-payment-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.overview-payment-progress > div:first-child strong {
  color: var(--color-primary);
}

.overview-money-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.overview-money-pair > div {
  display: grid;
  gap: 4px;
}

.overview-money-pair strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
}

.overview-closing {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: var(--space-5);
  background:
    linear-gradient(90deg, rgba(214, 173, 88, 0.075), transparent 55%),
    rgba(255, 255, 255, 0.025);
}

.overview-closing-copy {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.overview-closing-copy p {
  margin: 4px 0 0;
}

.overview-closing-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.feature-card {
  display: grid;
  gap: var(--space-4);
  min-height: 230px;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.035);
}

.activity-list {
  position: relative;
  display: grid;
  gap: var(--space-4);
}

.activity-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  color: var(--color-muted);
}

.activity-dot {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(214, 173, 88, 0.45);
  border-radius: 50%;
  background: var(--color-primary);
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-color: rgba(255, 255, 255, 0.8);
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.summary-rail {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
}

.summary-number {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.close-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 380px;
  gap: var(--space-5);
}

.close-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.close-stepper i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(214, 173, 88, 0.42);
  border-radius: 999px;
  color: var(--color-dim);
  font-style: normal;
  font-size: 11px;
}

.close-stepper i.done,
.close-stepper i.active {
  color: #111;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.close-stepper i.active {
  color: var(--color-primary);
  background: rgba(214, 173, 88, 0.1);
  box-shadow: 0 0 0 3px rgba(214, 173, 88, 0.12);
}

.close-card {
  min-height: 360px;
  border-color: rgba(214, 173, 88, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 173, 88, 0.07), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(18, 20, 20, 0.94);
}

.check-list {
  display: grid;
  gap: var(--space-3);
}

.check-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.check-item small {
  color: var(--color-muted);
}

.close-check-done .metric-icon {
  color: var(--color-success);
  border-color: rgba(117, 194, 107, 0.4);
  background: rgba(117, 194, 107, 0.14);
}

.close-check-warning .metric-icon {
  color: var(--color-warning);
  border-color: rgba(228, 180, 71, 0.5);
  background: rgba(228, 180, 71, 0.14);
}

.close-finance-list {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.close-finance-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 88px;
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-finance-row:last-child {
  border-bottom: 0;
}

.close-finance-row small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
}

.close-finance-row > strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  white-space: nowrap;
}

.close-ready .btn {
  width: 100%;
}

.close-cert-list {
  display: grid;
  gap: 10px;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.close-settlement-panel {
  margin-top: var(--space-5);
  border-color: rgba(214, 173, 88, 0.28);
  overflow: hidden;
}

.close-summary-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  color: var(--color-muted);
}

.close-table-footer {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-muted);
}

.close-progress-card {
  display: none;
  margin-top: var(--space-5);
}

.close-progress-card strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 44px;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-5);
}

.history-main {
  min-width: 0;
}

.history-filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(170px, 1fr));
  gap: var(--space-4);
  align-items: end;
  border-color: rgba(214, 173, 88, 0.34);
  background:
    linear-gradient(145deg, rgba(214, 173, 88, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(20, 21, 20, 0.92);
}

.history-filter-panel .search-field {
  width: 100%;
}

.history-filter-field {
  gap: 6px;
}

.history-filter-field label {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.history-table-head {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 120px 150px 140px 90px 130px;
  align-items: center;
  padding: 0 24px 0 32px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.history-timeline {
  position: relative;
  display: grid;
  max-height: 72vh;
  gap: var(--space-4);
  overflow: auto;
  padding-left: 28px;
  padding-right: 6px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary-2), rgba(214, 173, 88, 0.22));
}

.history-month {
  position: relative;
  display: grid;
  gap: var(--space-2);
}

.history-month::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -25px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 244, 223, 0.74);
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 18px rgba(214, 173, 88, 0.8);
}

.history-month-label {
  color: var(--color-primary-2);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-month-items {
  display: grid;
  gap: var(--space-3);
}

.history-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 120px 150px 140px 90px 130px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 173, 88, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(20, 22, 22, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.history-event-cell {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-2);
}

.history-card .history-thumb {
  height: 104px;
  border: 1px solid rgba(214, 173, 88, 0.38);
}

.history-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  border-radius: 6px;
  padding: 0 8px;
  color: #fff7e6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-tag-purple {
  background: rgba(143, 84, 196, 0.72);
}

.history-tag-amber {
  background: rgba(174, 112, 48, 0.8);
}

.history-tag-green {
  background: rgba(85, 154, 104, 0.82);
}

.history-tag-blue {
  background: rgba(70, 113, 194, 0.82);
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.history-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-meta .icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.history-stat,
.history-pdf {
  display: grid;
  min-height: 126px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 var(--space-3);
  text-align: center;
}

.history-stat .icon {
  color: var(--color-primary);
}

.history-stat strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

.history-stat span,
.history-pdf small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.pdf-icon {
  display: inline-grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
}

.history-open {
  margin: 0 var(--space-3);
}

.history-load {
  width: min(100%, 280px);
  justify-self: center;
}

.history-empty {
  min-height: 380px;
  justify-items: center;
  align-content: center;
  gap: var(--space-3);
  text-align: center;
}

.history-empty p {
  max-width: 520px;
}

.history-year-card {
  border-color: rgba(214, 173, 88, 0.34);
}

.history-year-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.history-year-stat {
  display: grid;
  min-height: 118px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: var(--space-3);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.history-year-stat:nth-child(2n) {
  border-right: 0;
}

.history-year-stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.history-year-stat .icon {
  color: var(--color-primary);
}

.history-year-stat strong {
  color: var(--color-primary-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.history-year-stat span {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.history-feature {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}

.history-feature .history-thumb {
  height: 96px;
  border: 1px solid var(--color-border-strong);
}

.history-feature span {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.history-category-panel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.history-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(#d6ad58 0 32%, #76a978 32% 57%, #8f54c4 57% 75%, #4671c2 75% 89%, #8b8982 89% 100%);
  box-shadow: inset 0 0 0 24px rgba(13, 16, 16, 0.98);
}

.history-category-list {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.history-category-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
}

.history-dot-1 {
  background: #76a978;
}

.history-dot-2 {
  background: #8f54c4;
}

.history-dot-3 {
  background: #4671c2;
}

.history-dot-4 {
  background: #8b8982;
}

.history-archive-note {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-3);
  align-items: center;
}

.history-archive-note p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.events-page-grid,
.finance-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-5);
}

.events-list {
  display: grid;
  max-height: 72vh;
  gap: var(--space-4);
  overflow: auto;
  padding-right: 6px;
}

.event-list-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 270px auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
}

.event-list-card:hover {
  border-color: var(--color-border-strong);
  background: rgba(214, 173, 88, 0.055);
}

.event-list-card img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
}

.event-list-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.event-list-card__stat {
  padding-left: var(--space-4);
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.event-list-card__stat strong {
  display: block;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.event-list-card__stat span {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.summary-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.finance-table-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.finance-screen {
  display: grid;
  height: calc(100dvh - var(--header-height) - 176px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-4);
}

.finance-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-4) var(--space-6);
}

.finance-overview__heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
}

.finance-overview__heading h2 {
  margin: 4px 0 0;
}

.finance-overview__heading > strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.finance-ledger {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.finance-ledger > div {
  display: grid;
  min-width: 120px;
  flex: 1 1 0;
  align-content: center;
  gap: 4px;
  padding: 12px var(--space-3);
}

.finance-ledger span,
.finance-overview__insights span,
.finance-priority-facts small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.finance-ledger strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.finance-ledger > i {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: normal;
}

.finance-ledger__open {
  background: rgba(212, 163, 55, 0.08);
}

.finance-overview__insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.finance-overview__insights > div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}

.finance-overview__insights strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

.finance-overview__insights .progress-line {
  width: 100%;
  height: 5px;
  margin-top: 3px;
}

.finance-page-grid {
  min-height: 0;
}

.finance-table-card__header {
  flex: 0 0 auto;
}

.finance-table-card .table-toolbar {
  gap: var(--space-2);
}

.finance-table-card .table-wrap {
  min-height: 0;
  flex: 1;
}

.finance-table-card .table th,
.finance-table-card .table td {
  padding-block: 12px;
}

.finance-table-card .table-footer {
  flex: 0 0 auto;
}
}

.payment-method {
  display: inline-flex;
  min-width: 90px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 173, 88, 0.28);
  border-radius: 8px;
  color: var(--color-primary);
  background: rgba(214, 173, 88, 0.08);
  font-weight: 650;
}

.finance-drawer {
  border-color: var(--color-border-strong);
}

.finance-priority-amount {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}

.finance-priority-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-block: 1px solid var(--color-border);
}

.finance-priority-facts small,
.finance-priority-facts strong {
  display: block;
}

.finance-priority-facts strong {
  margin-top: 4px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

.finance-drawer .input,
.finance-drawer .select {
  min-height: 48px;
}

.payment-form {
  position: relative;
}

.event-tabs {
  max-width: 100%;
  overflow-x: auto;
}

.hub-stack {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
}

.hub-stack > * {
  min-width: 0;
}

.purchase-flow {
  display: grid;
  gap: var(--space-5);
}

.purchase-entry {
  border-color: rgba(214, 173, 88, 0.34);
  background:
    linear-gradient(135deg, rgba(214, 173, 88, 0.07), transparent 38%),
    var(--color-surface-1);
}

.purchase-entry__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.purchase-total-preview {
  display: grid;
  min-width: 190px;
  gap: 3px;
  border: 1px solid rgba(214, 173, 88, 0.28);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  background: rgba(214, 173, 88, 0.08);
}

.purchase-total-preview span {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.purchase-total-preview strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
}

.purchase-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.purchase-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  background: rgba(5, 8, 8, 0.34);
}

.purchase-step legend {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
}

.purchase-step legend span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #11130f;
  background: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.purchase-value-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(150px, 1.3fr);
  gap: var(--space-3);
}

.field-optional {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.purchase-help {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: auto;
  border-radius: var(--radius-input);
  padding: var(--space-3);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.035);
}

.purchase-help p,
.purchase-help-text,
.purchase-manual p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.purchase-help-text {
  color: var(--color-muted);
}

.purchase-manual {
  display: grid;
  gap: var(--space-2);
  max-height: 260px;
  overflow-y: auto;
  padding-right: 3px;
}

.purchase-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.manual-selection {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.025);
}

.manual-selection summary {
  cursor: pointer;
  color: var(--color-heading);
  font-weight: 600;
}

.manual-selection[open] summary {
  margin-bottom: var(--space-3);
}

.theme-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.theme-color-grid label {
  display: grid;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.theme-color-grid input[type="color"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 4px;
  background: var(--color-surface-2);
}

.closing-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.table-wrap {
  scrollbar-color: var(--color-border-strong) transparent;
}

.metric strong,
.summary-number,
.finance-chip strong,
.table td {
  font-variant-numeric: tabular-nums;
}

.groups-layout,
.division-layout,
.adjustments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-5);
  align-items: start;
}

.adjustments-layout {
  grid-template-columns: 390px minmax(0, 1fr) 320px;
}

.consumption-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.group-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  min-height: 168px;
  border: 1px solid rgba(214, 173, 88, 0.28);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 173, 88, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.group-card .badge {
  grid-column: 2 / 4;
}

.group-shortcuts-panel {
  overflow: hidden;
}

.group-shortcut-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.group-shortcut {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-3) var(--space-4);
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
}

.group-shortcut:hover,
.group-shortcut.active {
  background: rgba(214, 173, 88, 0.075);
}

.group-shortcut.active {
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.group-shortcut .metric-icon {
  width: 38px;
  height: 38px;
}

.group-shortcut > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-shortcut small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-shortcut__count {
  display: grid;
  min-width: 52px;
  justify-items: end;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
}

.group-shortcut__count small {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 10px;
}

.group-create-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4);
}

.group-create-details summary {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 700;
}

.group-create-details .form-grid {
  margin-top: var(--space-4);
}

.group-editor-panel {
  position: sticky;
  top: var(--space-4);
  max-height: calc(100dvh - var(--space-8));
}

.group-editor {
  display: grid;
  gap: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.025);
}

.group-member-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 430px);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.group-member-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.item-credit-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0 var(--space-4) var(--space-4);
  padding: var(--space-3);
  border: 1px solid rgba(214, 173, 88, 0.18);
  border-radius: 10px;
  background: rgba(214, 173, 88, 0.045);
}

.item-credit-summary div {
  display: grid;
  gap: 4px;
}

.item-credit-summary span,
.item-credit-summary small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.item-credit-summary strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.item-credit-summary small {
  grid-column: 1 / -1;
  line-height: 1.5;
}

.division-matrix {
  display: grid;
  max-height: min(64vh, 560px);
  grid-template-columns: minmax(210px, 1.2fr) repeat(auto-fit, minmax(118px, 1fr));
  overflow: auto;
  overscroll-behavior: contain;
}

.division-head,
.division-name,
.division-cell {
  min-height: 62px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-3);
}

.division-head {
  display: grid;
  align-items: center;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 800;
  background: rgba(214, 173, 88, 0.07);
}

.division-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.division-cell {
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-size: 22px;
}

.division-cell.excluded {
  color: var(--color-muted);
}

.division-purchase-list {
  display: grid;
  gap: 1px;
  max-height: min(64vh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.division-purchase-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.division-purchase-card__header,
.division-purchase-card__meta,
.division-participant-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.division-purchase-card__header > div {
  display: grid;
  gap: 4px;
}

.division-purchase-card__header small,
.division-purchase-card__meta {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.division-purchase-card__meta {
  justify-content: flex-start;
}

.division-purchase-card__meta span {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: var(--space-3);
}

.division-purchase-card__meta span:first-child {
  border-left: 0;
  padding-left: 0;
}

.division-participant-chips {
  justify-content: flex-start;
}

.division-participant-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  color: var(--color-text);
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.025);
}

.division-participant-chips i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  background: rgba(214, 173, 88, 0.12);
}

.adjustment-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 112px;
  gap: var(--space-4);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-4);
}

.adjustment-range {
  width: 100%;
  accent-color: var(--color-primary);
}

.adjustment-percent {
  position: relative;
}

.adjustment-percent .input {
  padding-right: 32px;
  text-align: right;
}

.adjustment-percent span {
  position: absolute;
  right: 12px;
  bottom: 14px;
  color: var(--color-muted);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 300px;
  align-items: end;
  gap: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: var(--space-5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.bar-chart > div {
  display: grid;
  gap: var(--space-2);
  align-content: end;
  text-align: center;
}

.bar-chart span {
  display: block;
  width: 64px;
  height: var(--bar);
  justify-self: center;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f4d483, #b98522);
}

.bar-chart .positive span {
  background: linear-gradient(180deg, #a8e58f, #4f8f3d);
}

.bar-chart .negative span {
  background: linear-gradient(180deg, #ff8b7e, #b83d31);
}

.bar-chart strong {
  color: var(--color-heading);
  font-family: var(--font-display);
}

.bar-chart small {
  color: var(--color-muted);
}

.financial-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.financial-chart-card {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.025);
}

.financial-chart-plot {
  display: flex;
  height: 150px;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: repeating-linear-gradient(to top, transparent 0, transparent 36px, rgba(255, 255, 255, 0.045) 37px);
}

.financial-chart-plot span {
  width: min(58px, 48%);
  min-height: 12px;
  border-radius: 5px 5px 0 0;
  background: #d6ad58;
}

.financial-chart-plot .percentage-0 { height: 0%; }
.financial-chart-plot .percentage-5 { height: 5%; }
.financial-chart-plot .percentage-10 { height: 10%; }
.financial-chart-plot .percentage-15 { height: 15%; }
.financial-chart-plot .percentage-20 { height: 20%; }
.financial-chart-plot .percentage-25 { height: 25%; }
.financial-chart-plot .percentage-30 { height: 30%; }
.financial-chart-plot .percentage-35 { height: 35%; }
.financial-chart-plot .percentage-40 { height: 40%; }
.financial-chart-plot .percentage-45 { height: 45%; }
.financial-chart-plot .percentage-50 { height: 50%; }
.financial-chart-plot .percentage-55 { height: 55%; }
.financial-chart-plot .percentage-60 { height: 60%; }
.financial-chart-plot .percentage-65 { height: 65%; }
.financial-chart-plot .percentage-70 { height: 70%; }
.financial-chart-plot .percentage-75 { height: 75%; }
.financial-chart-plot .percentage-80 { height: 80%; }
.financial-chart-plot .percentage-85 { height: 85%; }
.financial-chart-plot .percentage-90 { height: 90%; }
.financial-chart-plot .percentage-95 { height: 95%; }
.financial-chart-plot .percentage-100 { height: 100%; }

.financial-chart-card.due .financial-chart-plot span {
  background: #e8c66f;
}

.financial-chart-card.paid .financial-chart-plot span {
  background: #75c26b;
}

.financial-chart-card strong {
  overflow: hidden;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.financial-chart-card small {
  color: var(--color-muted);
}

.closing-finance-bridge {
  display: grid;
  gap: var(--space-4);
}

.closing-finance-bridge__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
}

.closing-finance-bridge__heading h2 {
  margin: 4px 0 0;
}

.closing-finance-bridge__heading > small {
  color: var(--color-muted);
  text-align: right;
}

.closing-equation {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-border);
}

.closing-equation__row {
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: var(--color-surface);
}

.closing-equation__row > div {
  display: grid;
  min-width: 150px;
  flex: 1 1 0;
  gap: 4px;
  padding: 14px var(--space-4);
}

.closing-equation__row span,
.closing-equation__row small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.closing-equation__row strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
}

.closing-equation__row > i {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: normal;
}

.closing-equation__total {
  background: rgba(212, 163, 55, 0.08);
}

.closing-equation__total.is-open strong {
  color: var(--color-danger);
}

.closing-equation__total.is-settled strong {
  color: var(--color-success);
}

.closing-finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-5);
  align-items: start;
}

.closing-settlement-panel {
  min-width: 0;
}

.closing-settlement-table {
  max-height: 360px;
}

.closing-financial-summary .finance-chip {
  padding-block: 12px;
}

.closing-export-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.closing-export-card h2 {
  margin: 4px 0;
}

.closing-export-card p {
  margin: 0;
}

.closing-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.pdf-dialog {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.56);
}

.pdf-dialog::backdrop {
  background: rgba(3, 5, 5, 0.74);
  backdrop-filter: blur(3px);
}

.pdf-dialog__header,
.pdf-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
}

.pdf-dialog__header {
  border-bottom: 1px solid var(--color-border);
}

.pdf-dialog__header h2 {
  margin: 4px 0 0;
}

.pdf-dialog__body {
  max-height: calc(100vh - 206px);
  padding: var(--space-5);
  overflow: auto;
  background: rgba(255, 255, 255, 0.025);
}

.pdf-dialog__actions {
  border-top: 1px solid var(--color-border);
}

.dashboard-screen {
  display: grid;
  height: calc(100dvh - var(--header-height) - 176px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-4);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
}

.dashboard-compact-metric {
  display: grid;
  min-width: 0;
  min-height: 102px;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
}

.dashboard-compact-metric > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 650;
}

.dashboard-compact-metric > span .icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.dashboard-compact-metric > strong {
  overflow: hidden;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-compact-metric > small {
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-compact-metric .dashboard-date {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 650;
}

.dashboard-collection {
  grid-template-rows: auto 1fr auto;
}

.dashboard-collection .progress-line {
  align-self: end;
  width: 100%;
  height: 6px;
}

.dashboard-operations {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-5);
  min-height: 0;
}

.dashboard-portfolio {
  display: flex;
  min-height: 0;
  flex-direction: column;
  min-width: 0;
}

.dashboard-portfolio .table-wrap {
  min-height: 0;
  flex: 1;
}

.dashboard-portfolio .table th,
.dashboard-portfolio .table td {
  padding-block: 12px;
}

.dashboard-event-table .progress-line {
  width: 110px;
  height: 5px;
}

.table-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.table-progress span {
  width: 34px;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6d27a, #c98a23);
}

.dashboard-next-event .overview-money-pair {
  grid-template-columns: 0.7fr 1.3fr;
}

.dashboard-side {
  display: grid;
  min-height: 0;
  grid-template-rows: 0.9fr minmax(0, 1.1fr);
}

.dashboard-side > .panel {
  min-height: 0;
}

.dashboard-next-event__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.dashboard-next-event__facts span,
.dashboard-next-event__facts small,
.dashboard-next-event__facts strong {
  display: block;
}

.dashboard-next-event__facts small {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.dashboard-next-event__facts strong {
  margin-top: 4px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
}

.dashboard-priorities .priority-list {
  min-height: 0;
  overflow: auto;
}

.priority-list {
  display: grid;
}

.priority-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-3) 0;
}

.priority-list a:last-child {
  border-bottom: 0;
}

.priority-list span strong,
.priority-list small {
  display: block;
}

.priority-list small {
  margin-top: 3px;
  color: var(--color-muted);
}

.result-card > strong {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
}

.pdf-preview-panel {
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.03);
}

.pdf-paper {
  width: min(100%, 620px);
  min-height: 820px;
  padding: 44px;
  color: #17120a;
  background: #fffaf1;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.pdf-paper .pdf-logo {
  color: #b98522;
  font-family: var(--font-display);
  font-size: 54px;
  text-align: center;
}

.pdf-paper .pdf-logo img {
  display: block;
  width: 58px;
  height: 64px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.pdf-paper h2,
.pdf-paper h3 {
  color: #9a651a;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.pdf-paper h2,
.pdf-paper p {
  text-align: center;
}

.pdf-paper section {
  border: 1px solid #c8a35a;
  border-radius: 6px;
  padding: 14px;
}

.pdf-paper table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.pdf-paper th,
.pdf-paper td {
  border-bottom: 1px solid #decda9;
  padding: 8px 4px;
}

.pdf-paper th {
  color: #765017;
  font-size: 11px;
  text-align: left;
}

.pdf-paper td:last-child,
.pdf-paper th:last-child {
  text-align: right;
  font-weight: 700;
}

.pdf-paper .pdf-detail-table {
  font-size: 12px;
}

.pdf-paper .pdf-detail-table th:not(:first-child),
.pdf-paper .pdf-detail-table td:not(:first-child) {
  text-align: right;
}

.pdf-paper .pdf-footer {
  display: block;
  margin-top: 22px;
  color: #765017;
  text-align: center;
}

.payment-form-success {
  animation: paymentFormPulse 720ms ease both;
}

.payment-button-success {
  color: #0d0f0d;
  border-color: rgba(117, 194, 107, 0.75);
  background: linear-gradient(135deg, #9ee48e, #d6ad58);
  box-shadow: 0 0 0 6px rgba(117, 194, 107, 0.12), 0 18px 42px rgba(117, 194, 107, 0.18);
}

.payment-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: grid;
  gap: 4px;
  min-width: 280px;
  border: 1px solid rgba(117, 194, 107, 0.62);
  border-radius: 10px;
  padding: var(--space-4);
  color: var(--color-heading);
  background:
    linear-gradient(135deg, rgba(117, 194, 107, 0.16), rgba(214, 173, 88, 0.1)),
    rgba(13, 16, 15, 0.98);
  box-shadow: var(--shadow-popover);
  animation: paymentToastIn 720ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.payment-toast strong {
  color: #9ee48e;
}

.payment-toast span {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@keyframes paymentFormPulse {
  0% {
    transform: translateY(0);
    box-shadow: none;
  }
  40% {
    transform: translateY(-3px);
    box-shadow: 0 0 0 5px rgba(117, 194, 107, 0.12);
  }
  100% {
    transform: translateY(0);
    box-shadow: none;
  }
}

@keyframes paymentToastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.status-positive {
  color: var(--color-success);
}

.status-negative {
  color: var(--color-danger);
}

.status-neutral {
  color: var(--color-muted);
}

@media (max-width: 1180px) {
  .dashboard-event,
  .event-list-card,
  .event-form-layout,
  .close-grid,
  .history-layout,
  .events-page-grid,
  .finance-page-grid,
  .groups-layout,
  .division-layout,
  .adjustments-layout,
  .closing-finance-layout {
    grid-template-columns: 1fr;
  }

  .event-feature-grid,
  .category-grid,
  .consumption-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-table-head {
    display: none;
  }

  .purchase-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-step:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-operations {
    grid-template-columns: 1fr;
  }

  .dashboard-screen {
    height: auto;
  }

  .finance-screen {
    height: auto;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finance-overview {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-editor-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .form-grid,
  .finance-strip,
  .create-field-row,
  .event-feature-grid,
  .category-grid,
  .consumption-group-grid,
  .bar-chart,
  .event-list-card__stats,
  .history-card {
    grid-template-columns: 1fr;
  }

  .create-preview-summary {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-4);
    padding-left: 0;
  }

  .table-toolbar,
  .bulk-bar,
  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .history-filter-panel,
  .history-card,
  .history-event-cell,
  .history-category-panel,
  .history-feature {
    grid-template-columns: 1fr;
  }

  .history-stat,
  .history-pdf {
    min-height: auto;
    justify-items: start;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-3);
    text-align: left;
  }

  .history-open {
    margin: var(--space-3);
  }

  .theme-color-grid {
    grid-template-columns: 1fr;
  }

  .closing-action {
    align-items: stretch;
    flex-direction: column;
  }

  .event-tabs {
    width: calc(100vw - 48px);
    margin-inline: auto;
  }

  .event-tabs .tab {
    flex: 0 0 auto;
    padding-inline: var(--space-4);
  }

  .purchase-entry__heading,
  .purchase-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-total-preview {
    min-width: 0;
  }

  .purchase-form-grid,
  .purchase-value-grid {
    grid-template-columns: 1fr;
  }

  .purchase-step:last-child {
    grid-column: auto;
  }

  .purchase-submit-row .btn {
    width: 100%;
  }

  .event-create-grid,
  .category-options,
  .financial-charts,
  .dashboard-metrics,
  .dashboard-side,
  .item-credit-summary {
    grid-template-columns: 1fr;
  }

  .division-purchase-card__header,
  .division-purchase-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .division-purchase-card__meta span {
    border-left: 0;
    padding-left: 0;
  }

  .closing-export-card,
  .closing-export-actions,
  .pdf-dialog__header,
  .pdf-dialog__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-export-card .btn,
  .closing-export-actions .btn,
  .pdf-dialog__actions .btn {
    width: 100%;
  }

  .pdf-dialog__body {
    padding: var(--space-3);
  }

  .closing-finance-bridge__heading,
  .closing-equation__row {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-finance-bridge__heading > small {
    text-align: left;
  }

  .closing-equation__row > div {
    min-width: 0;
  }

  .closing-equation__row > i {
    flex-basis: 28px;
  }

  .pdf-paper {
    min-height: 0;
    padding: 24px 16px;
    font-size: 13px;
  }

  .pdf-paper .pdf-detail-table {
    font-size: 10px;
  }

  .dashboard-next-event__facts {
    grid-template-columns: 1fr;
  }

  .finance-overview__heading,
  .finance-ledger {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-overview__heading > strong {
    font-size: 24px;
  }

  .finance-ledger > i {
    flex-basis: 26px;
  }

  .finance-overview__insights,
  .finance-priority-facts {
    grid-template-columns: 1fr;
  }

  .finance-overview__insights > div {
    padding-left: 0;
    border-left: 0;
  }

  .event-overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-fact-list {
    grid-template-columns: 1fr;
  }

  .overview-closing {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .overview-closing-status {
    justify-content: flex-start;
  }

  .overview-closing .btn {
    width: 100%;
  }
}
