:root {
  color-scheme: dark;
  --black: #030303;
  --panel: #0d0c0a;
  --cream: #f2e3bc;
  --red: #bd0713;
  --gold: #d6a735;
  --gold-light: #f0cf76;
  --muted: #a99b80;
  --line: rgba(214, 167, 53, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 85% 8%, rgba(189, 7, 19, 0.12), transparent 25rem),
    radial-gradient(circle at 15% 45%, rgba(214, 167, 53, 0.07), transparent 30rem),
    var(--black);
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.business-shell {
  display: grid;
  width: min(100% - 40px, 1160px);
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.public-link:hover {
  color: var(--gold-light);
}

.public-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.account-name:hover {
  color: var(--gold-light);
}

.admin-link,
.logout-button {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.logout-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.business-hero {
  padding: 70px 0 48px;
}

.business-hero--compact {
  padding-bottom: 38px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.lead {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.section-grid {
  display: grid;
  padding-bottom: 70px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section-card {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.72);
  grid-template-columns: 52px 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 28px 18px;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.section-card::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(214, 167, 53, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(214, 167, 53, 0.02);
  content: "";
}

.section-card:hover {
  border-color: rgba(240, 207, 118, 0.7);
  background: rgba(25, 21, 16, 0.92);
  transform: translateY(-3px);
}

.section-card:focus-visible,
.public-link:focus-visible,
.brand:focus-visible,
.back-button:focus-visible {
  outline: 3px solid rgba(240, 207, 118, 0.75);
  outline-offset: 4px;
}

.section-card--featured {
  background: linear-gradient(135deg, rgba(189, 7, 19, 0.22), rgba(13, 12, 10, 0.78));
}

.section-card--wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.card-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
}

.card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  place-items: center;
  grid-column: 1;
  grid-row: 2;
}

.card-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.card-copy {
  display: grid;
  align-content: end;
  gap: 9px;
  grid-column: 2;
  grid-row: 2;
}

.card-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 400;
}

.card-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.card-arrow {
  color: var(--gold);
  font-size: 1.35rem;
  grid-column: 3;
  grid-row: 1;
}

.business-footer {
  display: flex;
  min-height: 70px;
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 16px;
  color: rgba(242, 227, 188, 0.4);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.business-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-line {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.business-shell--section {
  grid-template-rows: auto 1fr;
}

.section-main {
  position: relative;
  display: flex;
  min-height: 620px;
  overflow: hidden;
  align-items: center;
}

.section-intro {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.section-intro h1 {
  color: var(--cream);
}

.coming-soon {
  display: flex;
  width: fit-content;
  margin-top: 34px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 7, 19, 0.16);
}

.back-button {
  display: flex;
  width: min(100%, 300px);
  min-height: 54px;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--gold);
  align-items: center;
  justify-content: space-between;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transform: rotate(90deg);
}

.section-watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  color: rgba(214, 167, 53, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18rem, 45vw, 38rem);
  line-height: 1;
  user-select: none;
}

.auth-page {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  place-items: center;
}

.auth-panel {
  width: min(100%, 480px);
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.auth-brand {
  display: block;
  width: 148px;
  margin: -22px auto 18px;
}

.auth-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-panel h1 {
  font-size: clamp(2.8rem, 9vw, 4.6rem);
}

.auth-description {
  margin: 18px 0 28px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.auth-switch a {
  color: var(--gold-light);
}

.registration-success {
  display: grid;
  padding: 24px 0 4px;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.registration-success > span {
  display: grid;
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.4rem;
  place-items: center;
}

.registration-success strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.registration-success p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.registration-success .secondary-button {
  display: grid;
  width: 100%;
  text-decoration: none;
  place-items: center;
}

.auth-form,
.admin-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.admin-form label,
.employee-admin-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #080706;
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
  text-transform: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(214, 167, 53, 0.12);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.create-event-button {
  min-width: 210px;
  margin-bottom: 6px;
}

.content-section {
  padding: 42px 0 70px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.equipment-form h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
}

.result-count {
  display: grid;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  place-items: center;
}

.profile-stats {
  display: grid;
  padding-bottom: 68px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.profile-stat {
  display: grid;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.76);
  align-content: space-between;
  gap: 16px;
}

.profile-stat--accent {
  background: linear-gradient(135deg, rgba(189, 7, 19, 0.2), rgba(13, 12, 10, 0.8));
}

.profile-stat > span,
.profile-stat small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.profile-stat > span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
}

.profile-level-panel {
  margin: -34px 0 68px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(214, 167, 53, 0.72);
  background: rgba(13, 12, 10, 0.8);
}

.profile-level-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.profile-level-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
}

.profile-level-heading > div:last-child {
  display: grid;
  text-align: right;
}

.profile-level-heading > div:last-child strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.profile-level-heading > div:last-child span,
.profile-level-status {
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-level-scale {
  position: relative;
  margin-top: 42px;
}

.profile-level-line {
  position: absolute;
  top: 18px;
  right: 16.666%;
  left: 16.666%;
  display: block;
  height: 4px;
  background: rgba(214, 167, 53, 0.18);
}

.profile-level-line i {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold-light));
  transition: width 400ms ease;
}

.profile-level-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-level-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.profile-level-marker {
  display: grid;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(214, 167, 53, 0.34);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  place-items: center;
}

.profile-level-step--complete .profile-level-marker,
.profile-level-step--current .profile-level-marker {
  border-color: var(--gold-light);
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 0 5px rgba(214, 167, 53, 0.12);
}

.profile-level-step--current .profile-level-marker {
  border-color: #ed7c82;
  background: var(--red);
  color: var(--cream);
}

.profile-level-step > strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.profile-level-step > b {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.profile-level-step > small {
  color: var(--muted);
  font-size: 0.65rem;
}

.profile-level-status {
  margin: 24px 0 0;
  text-align: center;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  padding: 25px;
  border: 1px solid rgba(214, 167, 53, 0.72);
  background: rgba(13, 12, 10, 0.76);
  grid-template-columns: minmax(155px, 0.36fr) 1.6fr;
  gap: 28px;
}

.event-card__date {
  display: grid;
  align-content: start;
  gap: 7px;
}

.event-card__date strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.event-card__date span,
.event-details dt {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-card__body h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 400;
}

.event-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.event-card__title button {
  padding: 8px 10px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.event-status {
  width: fit-content;
  margin-top: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  font-size: 0.58rem !important;
  letter-spacing: 0.07em;
}

.event-status--planning {
  color: var(--gold-light) !important;
}

.event-status--agreed {
  border-color: rgba(99, 176, 111, 0.55);
  color: #9ed6a7 !important;
}

.event-status--completed {
  border-color: rgba(116, 156, 220, 0.6);
  color: #a7c5f5 !important;
}

.event-status--cancelled {
  border-color: rgba(189, 7, 19, 0.55);
  color: #ed7c82 !important;
}

.finance-overview {
  display: grid;
  padding-bottom: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finance-section-title {
  margin: 48px 0 18px;
}

.finance-section-title h2 {
  margin: 0;
}

.finance-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.finance-kpi {
  display: grid;
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(214, 167, 53, 0.72);
  background: rgba(13, 12, 10, 0.8);
  align-content: space-between;
  gap: 12px;
}

.finance-kpi > span,
.cash-flow-card > span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.finance-kpi > strong,
.cash-flow-card > strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 400;
}

.finance-kpi > small,
.cash-flow-card > small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.finance-kpi--negative > strong,
.cash-flow-card--negative > strong {
  color: #ed7c82;
}

.finance-summary-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(214, 167, 53, 0.72);
  background: rgba(13, 12, 10, 0.8);
}

.finance-summary-card h2 {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 400;
}

.finance-metrics {
  display: grid;
  border-top: 1px solid var(--line);
}

.finance-metrics span {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.finance-metrics strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.finance-metrics .finance-revenue strong {
  color: var(--gold-light);
}

.finance-breakdown {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.finance-breakdown summary {
  padding: 17px 0;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.finance-breakdown-content {
  display: grid;
  padding: 2px 0 8px;
  gap: 22px;
}

.finance-breakdown-group {
  display: grid;
}

.finance-breakdown-group h3 {
  display: flex;
  margin: 0;
  padding: 0 0 10px;
  justify-content: space-between;
  gap: 12px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.finance-breakdown-group h3 small,
.finance-breakdown-group p,
.finance-breakdown-empty {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
}

.finance-breakdown-group p,
.finance-breakdown-empty {
  margin: 0;
}

.finance-breakdown-line {
  display: flex;
  padding: 9px 0;
  border-top: 1px solid rgba(214, 167, 53, 0.13);
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.7rem;
}

.finance-breakdown-line strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  white-space: nowrap;
}

.finance-breakdown-line .finance-breakdown-income {
  color: var(--gold-light);
}

.finance-breakdown-line .finance-breakdown-expense {
  color: #ed7c82;
}

.finance-note {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.75rem;
}

.debt-finance {
  margin-bottom: 48px;
}

.debt-overview {
  display: grid;
  margin-bottom: 14px;
  border: 1px solid rgba(214, 167, 53, 0.45);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.debt-overview > span {
  display: grid;
  padding: 18px;
  border-right: 1px solid var(--line);
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.debt-overview > span:last-child {
  border-right: 0;
}

.debt-overview strong,
.debt-card-heading > strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
}

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

.debt-card {
  padding: 24px;
  border: 1px solid rgba(214, 167, 53, 0.72);
  background: rgba(13, 12, 10, 0.8);
}

.debt-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.debt-card-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.debt-metrics {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.debt-metrics > span,
.debt-payment {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.debt-metrics strong,
.debt-payment strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.debt-payment {
  display: grid;
  grid-template-columns: 1fr auto 30px;
  align-items: center;
}

.debt-payment-editor {
  margin-top: 18px;
}

.debt-payment-editor summary {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.debt-payment-editor form {
  display: grid;
  margin-top: 16px;
  gap: 12px;
}

.debt-payment-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.debt-payment-editor .primary-button {
  justify-self: start;
}

.debt-closed {
  margin: 18px 0 0;
  color: var(--gold-light);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.cash-analysis,
.finance-statuses {
  margin-bottom: 48px;
}

.cash-analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cash-flow-card {
  display: grid;
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.68);
  align-content: space-between;
  gap: 12px;
}

.cash-flow-card--income > strong {
  color: #9ed6a7;
}

.cash-flow-card--total,
.cash-flow-card--capital {
  grid-column: span 2;
  border-color: rgba(214, 167, 53, 0.72);
}

.finance-status-grid {
  display: grid;
  border: 1px solid var(--line);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.finance-status-grid span {
  display: grid;
  min-height: 110px;
  padding: 20px;
  border-right: 1px solid var(--line);
  align-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.finance-status-grid span:last-child {
  border-right: 0;
}

.finance-status-grid strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.inventory-finance {
  margin-bottom: 70px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(214, 167, 53, 0.72);
  background: rgba(13, 12, 10, 0.8);
}

.inventory-finance .section-heading h2 {
  margin: 0;
}

.inventory-finance-summary {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.inventory-finance-summary > span,
.inventory-finance-row > span {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.inventory-finance-summary strong,
.inventory-finance-row strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.inventory-finance-summary .finance-invested {
  grid-column: 1 / -1;
  color: var(--gold-light);
}

.inventory-finance-summary .finance-invested strong {
  color: var(--gold-light);
  font-size: 1.25rem;
}

.inventory-finance-note {
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.inventory-finance-list {
  display: grid;
}

.inventory-finance-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(170px, 1fr));
  gap: 24px;
  align-items: center;
}

.inventory-finance-row > div {
  display: grid;
  gap: 5px;
}

.inventory-finance-row small {
  color: var(--muted);
  font-size: 0.68rem;
}

.event-address,
.event-task {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.event-task {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.address-row button,
.line-button,
.icon-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-light);
  font: inherit;
  font-size: 0.66rem;
  cursor: pointer;
}

.event-details {
  display: grid;
  margin: 20px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-details div {
  display: grid;
  gap: 7px;
}

.event-details dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.event-details a {
  color: var(--gold-light);
  text-decoration: none;
}

.event-finance {
  display: grid;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.event-finance section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.event-finance h4 {
  margin: 0 0 4px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.event-finance section span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.7rem;
}

.event-finance section strong {
  color: var(--cream);
  white-space: nowrap;
}

.event-balance {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--gold-light);
  grid-column: 1 / -1;
  text-align: right;
}

.event-editor {
  margin-bottom: 60px;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(214, 167, 53, 0.46);
  background: rgba(13, 12, 10, 0.9);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  font-size: 1.5rem;
}

.event-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.event-form > label,
.equipment-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-wide {
  grid-column: 1 / -1;
}

.selection-fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
}

.selection-fieldset legend {
  padding: 0 8px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.selection-fieldset > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.equipment-choice {
  display: grid;
  border: 1px solid rgba(214, 167, 53, 0.13);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.employee-choice {
  display: grid;
  border: 1px solid rgba(214, 167, 53, 0.13);
  grid-template-columns: minmax(0, 1fr) 135px;
  align-items: stretch;
}

.employee-choice .choice-item {
  border: 0;
}

.employee-choice:has([name="employeeIds"]:checked) {
  border-color: var(--gold);
  background: rgba(214, 167, 53, 0.08);
}

.employee-rate {
  display: grid;
  padding: 8px 11px;
  border-left: 1px solid var(--line);
  align-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.employee-rate input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.75rem;
}

.employee-rate small {
  color: rgba(242, 222, 174, 0.62);
  font-size: 0.52rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-choice {
  display: grid;
  border: 1px solid rgba(214, 167, 53, 0.13);
  grid-template-columns: minmax(0, 1fr) 115px;
  align-items: stretch;
}

.partner-choice {
  display: grid;
  border: 1px solid rgba(214, 167, 53, 0.13);
  grid-template-columns: minmax(0, 1fr) 145px 155px;
  align-items: stretch;
}

.partner-choice .choice-item {
  border: 0;
}

.partner-choice:has([name="partnerIds"]:checked) {
  border-color: var(--gold);
  background: rgba(214, 167, 53, 0.08);
}

.partner-choice--blocked {
  opacity: 0.55;
}

.partner-choice--blocked .choice-item {
  cursor: not-allowed;
}

.partner-amount {
  display: grid;
  padding: 8px 11px;
  border-left: 1px solid var(--line);
  align-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-amount input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.75rem;
}

.partner-received {
  display: flex;
  padding: 10px 13px;
  border-left: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  cursor: pointer;
}

.partner-received input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.product-choice .choice-item {
  border: 0;
}

.product-choice:has([name="productIds"]:checked) {
  border-color: var(--gold);
  background: rgba(214, 167, 53, 0.08);
}

.product-quantity {
  display: grid;
  padding: 8px 11px;
  border-left: 1px solid var(--line);
  align-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-quantity input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.75rem;
}

.equipment-choice .choice-item {
  border: 0;
}

.equipment-choice:has([name="equipmentIds"]:checked) {
  border-color: var(--gold);
  background: rgba(214, 167, 53, 0.08);
}

.discount-toggle {
  display: flex;
  padding: 10px 13px;
  border-left: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
}

.discount-toggle input {
  width: 16px;
  min-height: 16px;
}

.discount-toggle:has(input:checked) {
  color: var(--gold-light);
}

.discount-toggle:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

.choice-item {
  display: flex;
  padding: 11px;
  border: 1px solid rgba(214, 167, 53, 0.13);
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.choice-item:has(input:checked) {
  border-color: var(--gold);
  background: rgba(214, 167, 53, 0.08);
}

.choice-item input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.choice-item span {
  display: grid;
  gap: 4px;
}

.choice-item strong {
  font-size: 0.78rem;
}

.choice-item small {
  color: var(--muted);
  font-size: 0.66rem;
}

.finance-editor {
  display: grid;
  padding-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.finance-column {
  padding: 18px;
  border: 1px solid var(--line);
}

.finance-column__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.finance-column h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.line-button {
  padding: 7px 9px;
  border: 1px solid var(--line);
}

.money-lines {
  display: grid;
  margin-top: 14px;
  gap: 8px;
}

.money-line {
  display: grid;
  align-items: center;
  gap: 8px;
}

.money-line--automatic {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  color: var(--muted);
  font-size: 0.7rem;
}

.money-line--automatic strong {
  color: var(--cream);
  white-space: nowrap;
}

.money-line--manual {
  grid-template-columns: 1fr minmax(100px, 0.4fr) 30px;
}

.money-line--manual input {
  min-height: 40px;
  font-size: 0.75rem;
}

.money-line--manual button {
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: #ed7c82;
  cursor: pointer;
}

.money-empty {
  color: var(--muted);
  font-size: 0.7rem;
}

.finance-total {
  display: block;
  margin-top: 16px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  text-align: right;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions:has(.form-revenue:not([hidden])) {
  justify-content: space-between;
}

.form-revenue {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 400;
}

.form-action-buttons {
  display: flex;
  gap: 10px;
}

.equipment-layout {
  display: grid;
  padding-bottom: 70px;
  grid-template-columns: minmax(280px, 0.7fr) 1.4fr;
  gap: 18px;
  align-items: start;
}

.equipment-form,
.equipment-register {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.76);
}

.equipment-form {
  display: grid;
  gap: 18px;
}

.equipment-list {
  display: grid;
  gap: 8px;
}

.equipment-row {
  display: grid;
  min-height: 64px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
}

.product-row {
  grid-template-columns: 32px minmax(120px, 0.7fr) minmax(260px, 1.4fr) auto;
}

.product-row .line-button {
  white-space: nowrap;
}

.operational-expenses-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(215, 169, 57, 0.4);
}

.operational-expenses-layout {
  margin-top: 18px;
}

.operational-total {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.partner-form textarea {
  min-height: 140px;
  resize: vertical;
}

.inventory-form textarea {
  min-height: 140px;
  resize: vertical;
}

.inventory-expense-row small {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.inventory-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.directory-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.equipment-row--deletable {
  grid-template-columns: 32px minmax(140px, 1fr) auto 38px;
}

.inventory-delete-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(189, 7, 19, 0.72);
  background: transparent;
  color: #ed7c82;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.inventory-delete-button:hover,
.inventory-delete-button:focus-visible {
  border-color: var(--red-bright);
  background: rgba(189, 7, 19, 0.12);
}

.partner-list {
  display: grid;
  gap: 12px;
}

.partner-card {
  display: grid;
  padding: 24px;
  border: 1px solid rgba(214, 167, 53, 0.42);
  background: rgba(3, 3, 3, 0.36);
  gap: 18px;
}

.partner-card--with-photo {
  grid-template-columns: minmax(112px, 236px) minmax(0, 1fr);
}

.partner-card__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 112px));
  align-content: start;
  gap: 8px;
}

.partner-card__photo {
  width: 100%;
  max-width: 112px;
  height: 112px;
  border: 1px solid rgba(214, 167, 53, 0.42);
  object-fit: cover;
}

.partner-card__content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.partner-photo-field input[type="file"] {
  padding: 9px;
  cursor: pointer;
}

.partner-photo-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.partner-photo-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  cursor: pointer;
}

.partner-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.partner-photo-preview__item {
  position: relative;
  min-width: 0;
  margin: 0;
}

.partner-photo-preview__item img {
  display: block;
  width: 100%;
  height: 88px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.partner-photo-preview__item button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.88);
  color: #fff;
  font: 700 1.15rem/1 Arial, sans-serif;
  place-items: center;
  cursor: pointer;
}

.partner-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.partner-card__heading h3 {
  margin: 8px 0 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.partner-percent {
  color: var(--red-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.partner-status {
  display: flex;
  width: fit-content;
  margin-top: 10px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fba68;
  box-shadow: 0 0 0 3px rgba(79, 186, 104, 0.13);
}

.partner-status--blocked {
  color: #ed7c82;
}

.partner-status--blocked i {
  background: #d92d3a;
  box-shadow: 0 0 0 3px rgba(217, 45, 58, 0.14);
}

.partner-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.partner-contact strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.partner-contact a {
  color: var(--cream);
  text-decoration-color: rgba(214, 167, 53, 0.55);
  text-underline-offset: 3px;
}

.partner-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.74rem;
}

.partner-location span {
  color: var(--red-bright);
  font-size: 1rem;
}

.partner-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.equipment-icon {
  color: var(--gold);
  font-size: 1.25rem;
}

.equipment-row > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.equipment-row > span:last-child {
  color: var(--gold-light);
  font-size: 0.82rem;
}

.equipment-row small {
  color: var(--muted);
  font-size: 0.62rem;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff7e5;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary-button {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-light);
}

.form-error {
  margin: 0;
  color: #ff727a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.employee-grid {
  display: grid;
  padding-bottom: 68px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.employee-level-scale {
  display: grid;
  margin-bottom: 34px;
  border: 1px solid rgba(214, 167, 53, 0.5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-level-scale article {
  display: grid;
  min-height: 128px;
  padding: 20px;
  border-right: 1px solid var(--line);
  align-content: space-between;
  gap: 7px;
}

.employee-level-scale article:last-child {
  border-right: 0;
}

.employee-level-scale span {
  color: #ed7c82;
  font-size: 0.65rem;
  font-weight: 700;
}

.employee-level-scale strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.employee-level-scale small,
.employee-level-progress small {
  color: var(--muted);
  font-size: 0.68rem;
}

.employee-card {
  min-height: 350px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.76);
}

.employee-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-badge {
  padding: 7px 9px;
  border: 1px solid rgba(189, 7, 19, 0.45);
  color: #ed7c82;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.employee-card h2,
.roles-panel h2,
.admin-panel h2,
.admin-list-section h2 {
  margin: 30px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
}

.employee-name {
  min-height: 2.12em;
  line-height: 1.06;
}

.employee-name span {
  display: block;
}

.rate-main {
  display: grid;
  margin: 0 0 20px;
  gap: 4px;
}

.rate-main strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.rate-main span,
.rate-note {
  color: var(--muted);
  font-size: 0.72rem;
}

.employee-level-progress {
  display: grid;
  margin-top: 20px;
  gap: 9px;
}

.employee-level-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
}

.employee-level-track {
  display: block;
  height: 4px;
  background: rgba(214, 167, 53, 0.15);
}

.employee-level-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.progression {
  display: grid;
  border-top: 1px solid var(--line);
}

.progression span {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
}

.progression strong {
  color: var(--cream);
}

.rate-note {
  margin: 18px 0 0;
  line-height: 1.5;
}

.roles-panel {
  display: grid;
  padding: 50px 0 75px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(220px, 0.7fr) 1.5fr;
  gap: 50px;
}

.roles-panel h2 {
  margin: 0;
}

.role-list {
  display: grid;
}

.role-list article {
  display: grid;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 150px 1fr;
  gap: 24px;
}

.role-list strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.role-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.loading-message {
  color: var(--muted);
}

.admin-panel,
.admin-list-section {
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.74);
}

.admin-list-section {
  margin: 18px 0 70px;
}

.registration-section {
  margin-top: 0;
  margin-bottom: 18px;
  border-color: rgba(189, 7, 19, 0.42);
  background: linear-gradient(135deg, rgba(189, 7, 19, 0.1), rgba(13, 12, 10, 0.76));
}

.employee-access-section {
  margin-top: 18px;
}

.admin-panel__heading--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.registration-count {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: #ed7c82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  place-items: center;
}

.registration-list {
  display: grid;
  gap: 12px;
}

.registration-card {
  display: grid;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.55);
  grid-template-columns: 1.4fr minmax(150px, 0.7fr) minmax(180px, 0.8fr);
  gap: 18px;
  align-items: end;
}

.registration-card__person {
  display: grid;
  gap: 8px;
  align-self: center;
}

.registration-card__person h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.registration-card__person a {
  width: fit-content;
  color: var(--gold-light);
  font-size: 0.78rem;
  text-decoration: none;
}

.pending-badge {
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid rgba(189, 7, 19, 0.5);
  color: #ed7c82;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approval-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.registration-card .approval-note,
.registration-card .form-error,
.approval-actions {
  grid-column: 1 / -1;
}

.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.approval-actions button {
  min-width: 150px;
}

.reject-button {
  border-color: rgba(242, 227, 188, 0.24);
  color: var(--muted);
}

.empty-message {
  margin: 0;
  padding: 18px 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-panel__heading h2 {
  margin: 0 0 28px;
}

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

.admin-form .field-hint,
.admin-form .form-error,
.admin-form .primary-button {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.employee-admin-row {
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  grid-template-columns: 1.4fr repeat(3, minmax(110px, 0.7fr));
  gap: 14px;
  align-items: end;
}

.employee-admin-row__name {
  display: grid;
  align-self: center;
  gap: 6px;
}

.employee-admin-row__name strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 400;
}

.employee-admin-row__name span {
  color: var(--muted);
  font-size: 0.68rem;
}

.employee-admin-row .active-toggle {
  display: flex;
  align-items: center;
}

.active-toggle input {
  width: 18px;
  min-height: 18px;
}

.employee-admin-row .form-error {
  grid-column: 1 / -2;
}

.state-page {
  display: flex;
  width: min(100% - 36px, 760px);
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.state-page h1 {
  max-width: 700px;
}

@media (max-width: 720px) {
  .business-shell {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    min-height: 82px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 0.8rem;
  }

  .public-link {
    font-size: 0;
  }

  .public-link svg {
    width: 22px;
  }

  .account-name {
    max-width: 95px;
  }

  .account-menu {
    gap: 8px;
  }

  .business-hero {
    padding: 52px 0 36px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-card--wide {
    grid-column: auto;
  }

  .section-card {
    min-height: 180px;
    padding: 20px;
  }

  .employee-grid {
    grid-template-columns: 1fr;
  }

  .employee-level-scale {
    grid-template-columns: 1fr;
  }

  .employee-level-scale article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .employee-level-scale article:last-child {
    border-bottom: 0;
  }

  .page-title-row,
  .section-heading {
    align-items: flex-start;
  }

  .page-title-row {
    flex-direction: column;
  }

  .create-event-button {
    width: 100%;
  }

  .profile-stats,
  .event-form,
  .finance-editor,
  .equipment-layout,
  .event-finance,
  .finance-overview {
    grid-template-columns: 1fr;
  }

  .profile-level-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-level-heading > div:last-child {
    text-align: left;
  }

  .profile-level-panel {
    padding: 22px 14px;
  }

  .profile-level-step > strong {
    font-size: 0.82rem;
  }

  .profile-level-step > b {
    font-size: 0.9rem;
  }

  .finance-kpis,
  .cash-analysis-grid,
  .finance-status-grid,
  .debt-overview,
  .debt-grid {
    grid-template-columns: 1fr;
  }

  .debt-overview > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .debt-overview > span:last-child {
    border-bottom: 0;
  }

  .cash-flow-card--total,
  .cash-flow-card--capital {
    grid-column: auto;
  }

  .finance-status-grid span {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inventory-finance-summary,
  .inventory-finance-row {
    grid-template-columns: 1fr;
  }

  .inventory-finance-summary .finance-invested {
    grid-column: auto;
  }

  .field-wide,
  .event-balance {
    grid-column: auto;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .form-actions {
    display: grid;
  }

  .form-action-buttons {
    display: grid;
  }

  .equipment-choice {
    grid-template-columns: 1fr;
  }

  .employee-choice {
    grid-template-columns: 1fr;
  }

  .employee-rate {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-choice {
    grid-template-columns: 1fr;
  }

  .partner-choice {
    grid-template-columns: 1fr;
  }

  .partner-card--with-photo {
    grid-template-columns: 1fr;
  }

  .partner-card__gallery {
    grid-template-columns: repeat(auto-fill, minmax(88px, 112px));
  }

  .partner-amount {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .partner-received {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .discount-toggle {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-quantity {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .equipment-form,
  .equipment-register {
    padding: 22px 16px;
  }

  .product-row {
    grid-template-columns: 32px 1fr;
  }

  .product-row > span:nth-child(3),
  .product-row .line-button {
    grid-column: 2;
  }

  .inventory-row-actions {
    grid-column: 2;
  }

  .directory-row-actions {
    grid-column: 2;
  }

  .equipment-row--deletable {
    grid-template-columns: 32px 1fr;
  }

  .equipment-row--deletable > span:nth-child(3),
  .equipment-row--deletable .inventory-delete-button {
    grid-column: 2;
  }

  .roles-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .role-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-panel,
  .admin-list-section {
    padding: 22px 16px;
  }

  .admin-form,
  .employee-admin-row,
  .registration-card {
    grid-template-columns: 1fr;
  }

  .admin-form .field-hint,
  .admin-form .form-error,
  .admin-form .primary-button,
  .employee-admin-row .form-error {
    grid-column: auto;
  }

  .registration-card .approval-note,
  .registration-card .form-error,
  .approval-actions {
    grid-column: auto;
  }

  .approval-actions {
    display: grid;
  }

  .section-main {
    min-height: calc(100svh - 83px);
  }

  .section-watermark {
    right: -0.08em;
    bottom: 0.05em;
  }
}

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