html {
  font-size: 14px;
}

:root {
  --minddesk-event-accent: #87384f;
  --minddesk-gold: #d3a344;
  --minddesk-gold-light: #f2d58d;
  --minddesk-dark: #0b1220;
  --minddesk-ink: #17212b;
  --minddesk-paper: #fffcf6;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 252, 246, .9), 0 0 0 0.25rem rgba(135, 56, 79, .24);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% -10%, rgba(216, 171, 72, .18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(135, 56, 79, .16), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #090a0d 220px, #efe6d6 220px, #efe6d6 100%);
  color: #17212b;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.event-stage-background {
  background-color: #090a0d;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 11, .72) 0%, rgba(9, 10, 13, .54) 34%, rgba(239, 230, 214, .9) 70%, rgba(239, 230, 214, .96) 100%),
    linear-gradient(90deg, rgba(5, 7, 11, .55) 0%, rgba(5, 7, 11, .2) 46%, rgba(5, 7, 11, .5) 100%),
    url("/img/backgrounds/event-stage-1920.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.top-menu-bar {
  background:
    radial-gradient(circle at 16% -20%, rgba(222, 174, 73, .14), transparent 32%),
    linear-gradient(180deg, #0b1220 0%, #090a0d 58%, #06070a 100%);
  border-bottom: 1px solid rgba(218, 171, 72, .62);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  flex: 0 0 auto;
  padding: 8px 0;
}

.top-menu-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
  min-height: 68px;
}

.top-menu-left,
.top-menu-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.top-menu-actions {
  justify-content: flex-end;
}

.brand-icon-link {
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-icon {
  background:
    radial-gradient(circle at 50% 42%, rgba(218, 171, 72, .12), transparent 68%),
    rgba(9, 10, 13, .62);
  border: 1px solid rgba(218, 171, 72, .52);
  border-radius: 10px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(255, 255, 255, .04);
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .42));
  height: 52px;
  object-fit: contain;
  padding: 4px;
  width: 52px;
}

.hamburger-button,
.top-action-button {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(218, 171, 72, .54);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  color: #f4ead9;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}

.hamburger-button {
  height: 44px;
  width: 44px;
}

.top-action-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: .86rem;
  font-weight: 800;
}

.hamburger-button:hover,
.hamburger-button:focus,
.top-action-button:hover,
.top-action-button:focus {
  background: rgba(218, 171, 72, .14);
  color: #ffffff;
  transform: translateY(-1px);
}

.hamburger-button .navbar-toggler-icon {
  background-image: none;
  border-bottom: 2px solid #f4ead9;
  border-top: 2px solid #f4ead9;
  height: 16px;
  position: relative;
  width: 20px;
}

.hamburger-button .navbar-toggler-icon::before {
  border-top: 2px solid #f4ead9;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 5px;
}

.top-menu-title {
  display: grid;
  justify-items: center;
  line-height: 1;
  text-align: center;
}

.top-menu-title span {
  color: rgba(244, 234, 217, .72);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.top-menu-title strong {
  color: #f2d58d;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 880;
  letter-spacing: 0;
}

.top-menu-user {
  color: rgba(244, 234, 217, .72);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-shell {
  flex: 1 0 auto;
}

.content-main {
  backdrop-filter: blur(6px);
  background: rgba(255, 252, 246, .88);
  border: 1px solid rgba(140, 100, 36, .34);
  border-radius: 8px;
  box-shadow:
    0 18px 42px rgba(32, 37, 45, .12),
    inset 0 1px 0 rgba(255, 255, 255, .64);
  margin-bottom: 20px;
  margin-top: 20px;
  padding: 24px;
}

.content-main-stage {
  backdrop-filter: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 28px;
  margin-top: 28px;
  padding: 0;
}

.app-notification-stack {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.app-tip {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, .98), rgba(250, 244, 234, .96));
  border: 1px solid rgba(140, 100, 36, .28);
  border-left: 5px solid var(--minddesk-gold);
  border-radius: 8px;
  box-shadow:
    0 12px 26px rgba(32, 37, 45, .12),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  color: var(--minddesk-ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 58px;
  overflow: hidden;
  padding: 13px 16px 13px 14px;
}

.app-tip::before {
  align-items: center;
  background: var(--minddesk-gold);
  border-radius: 999px;
  color: #0b1220;
  content: "i";
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
  width: 28px;
}

.app-tip-body {
  min-width: 0;
}

.app-tip strong {
  color: #17212b;
  display: block;
  font-size: .9rem;
  font-weight: 860;
  line-height: 1.25;
  margin: 0;
}

.app-tip p,
.app-tip ul {
  color: rgba(23, 33, 43, .78);
  font-size: .95rem;
  line-height: 1.45;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.app-tip ul {
  padding-left: 18px;
}

.app-tip-success {
  border-left-color: #2f855a;
}

.app-tip-success::before {
  background: #2f855a;
  color: #ffffff;
  content: "ok";
  font-size: .62rem;
  letter-spacing: 0;
}

.app-tip-error {
  border-left-color: var(--minddesk-event-accent);
}

.app-tip-error::before {
  background: var(--minddesk-event-accent);
  color: #ffffff;
  content: "!";
}

.app-tip-info {
  border-left-color: #2b6cb0;
}

.app-tip-info::before {
  background: #2b6cb0;
  color: #ffffff;
}

.status-bar {
  background:
    linear-gradient(180deg, #06070a 0%, #090a0d 42%, #0b1220 100%);
  border-top: 1px solid rgba(218, 171, 72, .54);
  box-shadow:
    0 -10px 28px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  color: #f4ead9;
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 0;
}

.status-bar-inner {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 26px;
  text-align: center;
}

.offcanvas {
  background: linear-gradient(180deg, var(--minddesk-paper) 0%, #f6f0e5 100%);
  border-right: 1px solid rgba(140, 100, 36, .32);
  color: var(--minddesk-ink);
}

.offcanvas-header {
  border-bottom: 1px solid rgba(140, 100, 36, .22);
}

.offcanvas-title {
  color: var(--minddesk-ink);
  font-weight: 850;
  letter-spacing: 0;
}

.btn-close:focus {
  box-shadow: 0 0 0 .25rem rgba(135, 56, 79, .18);
}

.app-menu {
  display: grid;
  gap: 8px;
}

.app-menu a {
  border-radius: 8px;
  color: #17212b;
  display: block;
  font-weight: 740;
  padding: 10px 12px;
  text-decoration: none;
}

.app-menu a:hover,
.app-menu a:focus {
  background: rgba(135, 56, 79, .09);
  color: #87384f;
}

.app-menu-group {
  border-top: 1px solid #e6ebf0;
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 12px;
}

.app-menu-group span {
  color: #667085;
  font-size: .74rem;
  font-weight: 800;
  padding: 0 12px;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(180deg, #f1d489 0%, #d3a344 100%);
  border-color: #d5aa50;
  box-shadow: 0 10px 22px rgba(27, 37, 48, .14);
  color: #17120d;
  font-weight: 800;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #f5dda0 0%, #dcaf55 100%);
  border-color: #e1b85f;
  color: #100d09;
}

.btn-outline-primary {
  background: rgba(255, 252, 246, .72);
  border-color: rgba(140, 100, 36, .42);
  color: #8a5f21;
  font-weight: 760;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(218, 171, 72, .16);
  border-color: rgba(140, 100, 36, .7);
  color: #17120d;
}

.btn-outline-secondary {
  background: rgba(255, 252, 246, .72);
  border-color: rgba(140, 100, 36, .34);
  color: #6b6258;
  font-weight: 760;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(135, 56, 79, .08);
  border-color: rgba(135, 56, 79, .46);
  color: var(--minddesk-event-accent);
}

.app-menu .btn-outline-secondary {
  background: rgba(255, 252, 246, .58);
  border-color: rgba(140, 100, 36, .42);
  color: #6b5125;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(135, 56, 79, .6);
  box-shadow: 0 0 0 .2rem rgba(135, 56, 79, .15);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.event-app-home {
  max-width: 720px;
  margin: 48px auto;
  padding: 28px;
  border: 1px solid rgba(140, 100, 36, .34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(135, 56, 79, .12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, .96), rgba(246, 240, 229, .92));
  backdrop-filter: blur(10px);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .76);
}

.event-home-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-home-brand img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: contain;
  background: #030303;
  border: 1px solid rgba(218, 171, 72, .5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.event-home-brand span {
  color: #87384f;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-app-home h1 {
  margin: 8px 0 10px;
  font-size: 2.2rem;
}

.event-app-home p {
  color: #6b6258;
}

.auth-stage {
  align-items: center;
  display: grid;
  min-height: min(560px, calc(100vh - 190px));
  padding: 32px 0;
}

.auth-card {
  backdrop-filter: blur(12px);
  background:
    radial-gradient(circle at 92% 8%, rgba(135, 56, 79, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 246, .96), rgba(246, 240, 229, .92));
  border: 1px solid rgba(140, 100, 36, .34);
  border-radius: 8px;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .76);
  color: var(--minddesk-ink);
  margin: 0 auto;
  max-width: 440px;
  padding: 28px;
  width: 100%;
}

.auth-card h1 {
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.auth-card-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.auth-card-brand img {
  background: #030303;
  border: 1px solid rgba(218, 171, 72, .5);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
  height: 48px;
  object-fit: contain;
  padding: 4px;
  width: 48px;
}

.auth-card-brand span {
  color: var(--minddesk-event-accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-shell {
  max-width: 1120px;
  margin: 28px auto 56px;
}

.event-dashboard-home {
  max-width: 1180px;
}

.event-dashboard-home .portal-header {
  color: #f4ead9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.event-dashboard-home .portal-kicker {
  color: #d7a7b6;
}

.event-dashboard-home .portal-header h1 {
  color: #f4ead9;
}

.event-dashboard-home .portal-user span {
  color: rgba(244, 234, 217, .78);
}

.portal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.portal-kicker {
  color: #87384f;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-header h1 {
  margin: 4px 0 0;
  font-size: 2rem;
}

.portal-user {
  display: grid;
  gap: 2px;
  min-width: 180px;
  text-align: right;
}

.portal-user span {
  color: #6b6258;
  font-size: 0.9rem;
}

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

.portal-metrics div {
  padding: 16px;
  border: 1px solid rgba(140, 100, 36, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 246, .94), rgba(246, 240, 229, .9));
  box-shadow: 0 18px 42px rgba(18, 32, 50, .1);
}

.portal-metrics span {
  display: block;
  color: #6b6258;
  font-size: 0.85rem;
}

.portal-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

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

.event-home-tile {
  --tile-tint: rgba(11, 18, 32, .72);
  --tile-position: center;
  align-content: end;
  aspect-ratio: 16 / 10;
  background-color: #0b1220;
  background-image:
    linear-gradient(180deg, rgba(10, 8, 6, .08), var(--tile-tint)),
    url("/img/backgrounds/event-stage-960.jpg");
  background-position: var(--tile-position);
  background-size: cover;
  border: 1px solid rgba(218, 171, 72, .34);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
  color: #ffffff;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  padding: 24px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.event-home-tile:hover,
.event-home-tile:focus {
  border-color: rgba(218, 171, 72, .72);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .42);
  color: #ffffff;
  transform: translateY(-1px);
}

.event-home-tile span,
.event-home-tile em {
  color: rgba(255, 255, 255, .78);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.event-home-tile span {
  font-size: .84rem;
}

.event-home-tile strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.04;
  margin-top: 4px;
}

.event-home-tile em {
  font-size: .78rem;
  margin-top: 10px;
}

.event-home-tile-events {
  --tile-position: 42% 30%;
  --tile-tint: rgba(31, 39, 54, .78);
}

.event-home-tile-calendar {
  --tile-position: 70% 48%;
  --tile-tint: rgba(20, 32, 52, .76);
}

.event-home-tile-guests {
  --tile-position: 28% 65%;
  --tile-tint: rgba(86, 58, 46, .76);
}

.event-home-tile-contact {
  --tile-position: 70% 46%;
  --tile-tint: rgba(25, 70, 64, .76);
}

.event-home-tile-operation {
  --tile-position: 58% 48%;
  --tile-tint: rgba(135, 56, 79, .76);
}

.event-home-tile-reports {
  --tile-position: 78% 55%;
  --tile-tint: rgba(63, 52, 87, .78);
}

.event-home-tile-settings {
  --tile-position: 18% 40%;
  --tile-tint: rgba(89, 78, 56, .78);
}

.event-hub-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-hub-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(135, 56, 79, .1), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 246, .96), rgba(246, 240, 229, .92));
  border: 1px solid rgba(140, 100, 36, .32);
  border-radius: 8px;
  box-shadow:
    0 18px 42px rgba(18, 32, 50, .1),
    inset 0 1px 0 rgba(255, 255, 255, .74);
  color: var(--minddesk-ink);
  display: grid;
  min-height: 132px;
  padding: 18px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.event-hub-card:hover,
.event-hub-card:focus {
  border-color: rgba(135, 56, 79, .46);
  box-shadow: 0 22px 52px rgba(18, 32, 50, .14);
  color: var(--minddesk-ink);
  transform: translateY(-1px);
}

.event-hub-card span {
  color: var(--minddesk-event-accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-hub-card strong {
  align-self: end;
  font-size: 1.38rem;
  line-height: 1.1;
}

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

.event-report-summary div {
  background: rgba(255, 252, 246, .72);
  border: 1px solid rgba(140, 100, 36, .24);
  border-radius: 8px;
  padding: 14px;
}

.event-report-summary span {
  color: #6b6258;
  display: block;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-report-summary strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-top: 4px;
}

.portal-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 18px 0;
}

.portal-filter label {
  grid-column: 1 / -1;
  margin-bottom: -6px;
  color: #6b6258;
  font-weight: 700;
}

.event-list-filter {
  grid-template-columns: minmax(160px, .8fr) minmax(136px, .62fr) minmax(136px, .62fr) minmax(220px, 1fr) auto;
}

.event-list-filter label {
  grid-column: auto;
  margin-bottom: 6px;
}

.event-list-filter-actions,
.event-list-actions {
  display: flex;
  gap: 6px;
}

.event-list-filter-actions {
  align-items: end;
}

.event-list-actions {
  align-items: center;
  flex-wrap: wrap;
  min-width: 660px;
}

.event-list-delete-form {
  display: inline-flex;
  margin: 0;
}

.calendar-content-main {
  max-width: min(1780px, calc(100vw - 32px));
  padding-top: 16px;
  padding-bottom: 16px;
}

.event-calendar-workspace {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 140px);
}

.event-calendar-toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1.1fr) minmax(180px, .7fr) minmax(180px, .7fr);
}

.event-calendar-toolbar label {
  color: #6b6258;
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.event-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 74px;
  overflow: auto;
}

.event-calendar-legend span {
  align-items: center;
  background: rgba(255, 252, 246, .82);
  border: 1px solid rgba(140, 100, 36, .24);
  border-radius: 999px;
  color: #39322c;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
}

.event-calendar-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.event-calendar-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: calc(100vh - 318px);
}

.event-calendar-board {
  height: calc(100vh - 318px);
  min-height: 680px;
  overflow: hidden;
  padding: 14px;
}

#eventCalendar {
  height: 100%;
}

.event-calendar-fallback {
  align-items: center;
  color: #6b6258;
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 420px;
}

.event-calendar-board .fc {
  color: var(--minddesk-ink);
  font-family: inherit;
}

.event-calendar-board .fc .fc-toolbar {
  gap: 10px;
}

.event-calendar-board .fc .fc-toolbar-title {
  color: #211a16;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
}

.event-calendar-board .fc .fc-button {
  background: rgba(255, 252, 246, .94);
  border-color: rgba(140, 100, 36, .42);
  border-radius: 8px;
  color: #332b24;
  font-weight: 800;
  min-height: 38px;
  text-transform: none;
}

.event-calendar-board .fc .fc-button:hover,
.event-calendar-board .fc .fc-button:focus {
  background: #efe6d6;
  border-color: rgba(135, 56, 79, .5);
  color: #211a16;
}

.event-calendar-board .fc .fc-button-primary:not(:disabled).fc-button-active,
.event-calendar-board .fc .fc-button-primary:not(:disabled):active {
  background: var(--minddesk-event-accent);
  border-color: var(--minddesk-event-accent);
  color: #ffffff;
}

.event-calendar-board .fc .fc-col-header-cell {
  background: rgba(239, 230, 214, .58);
}

.event-calendar-board .fc .fc-col-header-cell-cushion,
.event-calendar-board .fc .fc-daygrid-day-number {
  color: #3a3028;
  font-weight: 800;
  text-decoration: none;
}

.event-calendar-board .fc .fc-scrollgrid,
.event-calendar-board .fc td,
.event-calendar-board .fc th {
  border-color: rgba(140, 100, 36, .24);
}

.event-calendar-board .fc .fc-day-today {
  background: rgba(218, 171, 72, .14);
}

.event-calendar-board .fc .fc-event {
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(18, 32, 50, .12);
  overflow: hidden;
}

.md-calendar-event-content {
  display: grid;
  gap: 1px;
  line-height: 1.15;
  padding: 2px 4px;
}

.md-calendar-event-venue {
  font-size: .68rem;
  font-weight: 800;
  opacity: .86;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.md-calendar-event-title {
  font-size: .76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-day-agenda {
  align-content: start;
  display: grid;
  gap: 12px;
}

.event-day-agenda-header span {
  color: var(--minddesk-event-accent);
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-day-agenda-header strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.12;
  margin-top: 3px;
}

.event-day-agenda-list {
  display: grid;
  gap: 9px;
}

.event-day-agenda-item {
  background: rgba(255, 252, 246, .76);
  border: 1px solid rgba(140, 100, 36, .22);
  border-left: 5px solid var(--minddesk-event-accent);
  border-radius: 8px;
  color: var(--minddesk-ink);
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  text-decoration: none;
}

.event-day-agenda-item:hover,
.event-day-agenda-item:focus {
  border-color: rgba(135, 56, 79, .36);
  color: var(--minddesk-ink);
}

.event-day-agenda-item span {
  color: #6b6258;
  font-size: .78rem;
  font-weight: 800;
}

.event-day-agenda-item strong {
  line-height: 1.18;
}

.event-day-agenda-item em {
  color: #6b6258;
  font-size: .78rem;
  font-style: normal;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-panel {
  padding: 18px;
  border: 1px solid rgba(140, 100, 36, .32);
  border-radius: 8px;
  background: rgba(255, 252, 246, .94);
  box-shadow:
    0 18px 42px rgba(18, 32, 50, .1),
    inset 0 1px 0 rgba(255, 255, 255, .74);
}

.portal-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.portal-panel h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.portal-form {
  display: grid;
  gap: 10px;
}

.portal-form label,
.portal-guest-row label {
  color: #6b6258;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.portal-input-action {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.portal-input-action .btn {
  min-width: 92px;
  white-space: nowrap;
}

.portal-field-error {
  color: var(--minddesk-event-accent);
  display: block;
  font-size: .8rem;
  font-weight: 760;
  line-height: 1.35;
  min-height: 1.08rem;
  overflow-wrap: anywhere;
  padding-top: 4px;
}

.portal-field-error:empty {
  padding-top: 0;
}

.input-validation-error {
  border-color: rgba(135, 56, 79, .72);
  box-shadow: 0 0 0 .18rem rgba(135, 56, 79, .12);
}

.portal-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding-top: 24px;
}

.portal-checks label {
  color: #25211d;
  font-size: 0.9rem;
  font-weight: 500;
}

.portal-guest-editor {
  display: grid;
  gap: 10px;
}

.portal-choice-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(37, 33, 29, 0.1);
  border-radius: 8px;
  background: #fff;
}

.portal-choice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid rgba(37, 33, 29, 0.08);
}

.portal-choice-row:last-child {
  border-bottom: 0;
}

.portal-choice-row small {
  display: block;
  color: #6b6258;
}

.portal-choice-row em {
  color: #6b6258;
  font-style: normal;
  font-size: 0.84rem;
}

.portal-guest-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.3fr) minmax(120px, 1fr) 92px auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(37, 33, 29, 0.1);
  border-radius: 8px;
  background: #fff;
}

.portal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.portal-inline-form {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) 84px minmax(150px, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 520px;
}

.portal-table-panel {
  min-width: 0;
}

.portal-span-wide {
  grid-column: 1 / -1;
}

.portal-detail-list {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.portal-detail-list dt {
  color: #6b6258;
  font-weight: 700;
}

.portal-detail-list dd {
  margin: 0;
}

.portal-text-preview,
.portal-html-preview {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(37, 33, 29, .1);
  border-radius: 8px;
  color: #25211d;
  margin: 0;
  padding: 12px;
}

.portal-text-preview {
  font: inherit;
  white-space: pre-wrap;
}

.portal-html-preview h3,
.portal-html-preview h4 {
  margin: 0 0 8px;
}

.portal-html-preview ul,
.portal-html-preview ol {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-user {
    text-align: left;
  }

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

  .event-home-tile-grid,
  .event-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-home-tile {
    min-height: 170px;
    padding: 18px;
  }

  .portal-filter,
  .event-calendar-toolbar,
  .event-calendar-layout,
  .portal-grid,
  .portal-form-row,
  .portal-input-action,
  .portal-guest-row,
  .portal-inline-form {
    grid-template-columns: 1fr;
  }

  .portal-inline-form {
    min-width: 0;
  }

  .portal-checks {
    padding-top: 0;
  }
}

.event-public-body {
  --event-accent: #87384f;
  --event-accent-strong: #1d7f54;
  --event-accent-muted: #6b6258;
  --event-card-bg: rgba(255, 252, 246, 0.94);
  --event-card-border: rgba(140, 100, 36, 0.28);
  --event-page-bg:
    radial-gradient(circle at 16% 0%, rgba(218, 171, 72, .22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(135, 56, 79, .22), transparent 32%),
    linear-gradient(180deg, #0b1220 0%, #141016 38%, #efe6d6 38%, #efe6d6 100%);
  background: #efe6d6;
  color: #25211d;
  display: block;
  min-height: 100vh;
}

.event-theme-city-minimal {
  --event-accent: #285e70;
  --event-accent-strong: #164e63;
  --event-accent-muted: #59616a;
  --event-card-bg: rgba(250, 252, 252, 0.95);
  --event-card-border: rgba(35, 46, 55, 0.16);
  --event-page-bg:
    linear-gradient(135deg, rgba(238, 242, 242, 0.94), rgba(224, 231, 235, 0.92)),
    linear-gradient(45deg, rgba(40, 94, 112, 0.18), rgba(111, 85, 65, 0.14));
}

.event-theme-sea-classic {
  --event-accent: #155e63;
  --event-accent-strong: #0f766e;
  --event-accent-muted: #626c72;
  --event-card-bg: rgba(249, 252, 251, 0.95);
  --event-card-border: rgba(21, 94, 99, 0.18);
  --event-page-bg:
    linear-gradient(135deg, rgba(231, 245, 242, 0.94), rgba(244, 238, 226, 0.9)),
    linear-gradient(45deg, rgba(15, 118, 110, 0.18), rgba(150, 93, 63, 0.14));
}

.event-page {
  min-height: 100vh;
  padding: 32px 16px;
  background: var(--event-page-bg);
  background-size: cover;
  background-position: center;
}

.event-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--event-card-border);
  border-radius: 8px;
  background: var(--event-card-bg);
  box-shadow: 0 24px 60px rgba(37, 33, 29, 0.12);
}

.event-food-only-shell {
  width: min(620px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--event-card-border);
  border-radius: 8px;
  background: var(--event-card-bg);
  box-shadow: 0 24px 60px rgba(37, 33, 29, .12);
}

.event-food-only-header h1 {
  color: #25211d;
  font-size: clamp(1.65rem, 8vw, 3.1rem);
  line-height: 1.02;
  margin: 0;
  text-align: center;
}

.event-food-only-menu {
  align-self: center;
  border-top: 1px solid var(--event-card-border);
  border-bottom: 1px solid var(--event-card-border);
  padding: 24px 0;
}

.event-food-only-menu h2 {
  color: var(--event-accent);
  font-size: clamp(1.35rem, 6vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 16px;
  text-align: center;
}

.event-food-only-brand {
  color: var(--event-accent-muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  body.event-stage-background {
    background-image:
      linear-gradient(180deg, rgba(5, 7, 11, .72) 0%, rgba(9, 10, 13, .58) 36%, rgba(239, 230, 214, .92) 72%, rgba(239, 230, 214, .98) 100%),
      linear-gradient(90deg, rgba(5, 7, 11, .48) 0%, rgba(5, 7, 11, .2) 50%, rgba(5, 7, 11, .48) 100%),
      url("/img/backgrounds/event-stage-960.jpg");
    background-attachment: scroll;
    background-position: center top;
  }

  .top-menu-bar {
    padding: 7px 0;
  }

  .top-menu-inner {
    gap: 8px;
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    min-height: 56px;
  }

  .top-menu-left {
    gap: 8px;
  }

  .brand-icon {
    height: 42px;
    width: 42px;
  }

  .hamburger-button {
    height: 40px;
    width: 40px;
  }

  .top-action-button {
    font-size: .8rem;
    min-height: 38px;
    padding: 0 11px;
  }

  .top-menu-title strong {
    font-size: 1.2rem;
  }

  .top-menu-title span {
    font-size: .68rem;
  }

  .top-menu-user {
    display: none;
  }

  .content-main {
    margin-top: 14px;
    padding: 16px;
  }

  .content-main-stage {
    margin-bottom: 18px;
    padding: 0 10px;
  }

  .auth-stage {
    min-height: calc(100vh - 168px);
    padding: 18px 0;
  }

  .auth-card,
  .event-app-home {
    margin: 24px auto;
    padding: 22px;
  }
}

.event-brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--event-accent);
  text-transform: uppercase;
}

.event-page h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.event-page h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.event-page p {
  max-width: 58ch;
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.eyebrow,
.event-host,
.event-date,
.event-subtitle,
.event-venue span {
  color: var(--event-accent-muted);
}

.eyebrow {
  margin-top: 18px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

.event-host {
  font-size: 1.2rem;
  font-weight: 600;
}

.event-date {
  margin-bottom: 28px;
  font-weight: 700;
}

.event-section {
  padding: 22px 0;
  border-top: 1px solid var(--event-card-border);
}

.event-invitation-image {
  display: block;
  width: 100%;
  max-height: 340px;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.event-invitation-body {
  white-space: pre-line;
}

.event-food-menu h3,
.event-food-menu h4 {
  color: var(--event-accent);
  font-size: 1.05rem;
  margin: 16px 0 6px;
}

.event-food-menu h3:first-child,
.event-food-menu h4:first-child {
  margin-top: 0;
}

.event-food-menu ul,
.event-food-menu ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 22px;
}

.event-food-menu li {
  line-height: 1.5;
}

.event-food-menu-text {
  white-space: pre-line;
}

.event-parties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 24px;
}

.event-parties span {
  min-width: 84px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--event-accent) 28%, transparent);
  border-radius: 8px;
  color: var(--event-accent);
  font-weight: 700;
  text-align: center;
}

.event-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--event-accent-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.event-whatsapp:hover {
  color: #fff;
  filter: brightness(0.92);
}

body.event-food-menu-body {
  --event-accent: #7a5a35;
  --event-accent-muted: #75706a;
  --event-card-border: rgba(42, 47, 51, .12);
  background: #f6f7f4;
  color: #202428;
}

.event-food-menu-body .event-page {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 247, 244, .98)),
    linear-gradient(135deg, rgba(122, 90, 53, .08), rgba(39, 93, 83, .06));
  display: grid;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 52px) 16px;
}

.event-food-menu-body .event-food-only-shell {
  background: #ffffff;
  border: 1px solid rgba(42, 47, 51, .12);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(32, 36, 40, .09);
  display: grid;
  gap: clamp(24px, 5vw, 38px);
  grid-template-rows: auto auto auto;
  margin: 0 auto;
  max-width: 540px;
  min-height: auto;
  padding: clamp(28px, 7vw, 52px) clamp(22px, 6vw, 46px);
  width: min(100%, 540px);
}

.event-food-menu-body .event-food-only-header {
  border-bottom: 1px solid rgba(42, 47, 51, .1);
  padding-bottom: clamp(18px, 4vw, 28px);
}

.event-food-menu-body .event-food-only-header h1 {
  color: #202428;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 3.7rem);
  font-weight: 400;
  line-height: 1.02;
  margin: 0;
  text-align: center;
}

.event-food-menu-body .event-food-only-menu {
  align-self: auto;
  border: 0;
  padding: 0;
}

.event-food-menu-body .event-food-only-menu h2 {
  color: #7a5a35;
  font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 0 0 18px;
  text-align: center;
  text-transform: uppercase;
}

.event-food-menu-body .event-food-only-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-food-menu-body .event-food-only-list li {
  border-top: 1px solid rgba(42, 47, 51, .1);
  color: #202428;
  font-size: clamp(1.05rem, 4.6vw, 1.28rem);
  line-height: 1.45;
  padding: 15px 4px;
  text-align: center;
}

.event-food-menu-body .event-food-only-list li:first-child {
  border-top: 0;
}

.event-food-menu-body .event-food-menu {
  color: #202428;
  font-size: clamp(1.05rem, 4.6vw, 1.28rem);
  line-height: 1.55;
}

.event-food-menu-body .event-food-html-frame {
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  display: block;
  height: min(760px, calc(100vh - 220px));
  min-height: 620px;
  overflow: hidden;
  width: 100%;
}

.event-food-menu-body .event-food-menu-text {
  color: #202428;
  font-size: clamp(1.05rem, 4.6vw, 1.28rem);
  line-height: 1.55;
  margin: 0;
  max-width: none;
  text-align: center;
}

.event-food-menu-body .event-food-only-brand {
  border-top: 1px solid rgba(42, 47, 51, .1);
  color: #75706a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding-top: 18px;
  text-align: center;
  text-transform: uppercase;
}

body.event-guestbook-body {
  --event-accent: #7c3450;
  --event-accent-muted: #716a64;
  background: #f7f3ee;
  color: #202428;
}

.event-guestbook-body .event-page {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(247, 243, 238, .98)),
    linear-gradient(135deg, rgba(124, 52, 80, .1), rgba(45, 98, 83, .08));
  display: grid;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 52px) 16px;
}

.event-guestbook-shell {
  background: #ffffff;
  border: 1px solid rgba(42, 47, 51, .12);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(32, 36, 40, .09);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 560px;
  padding: clamp(26px, 6vw, 46px);
  width: min(100%, 560px);
}

.event-guestbook-header {
  border-bottom: 1px solid rgba(42, 47, 51, .1);
  padding-bottom: 20px;
  text-align: center;
}

.event-guestbook-header span {
  color: #7c3450;
  display: block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.event-guestbook-body .event-guestbook-header h1 {
  color: #202428;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
}

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

.event-guestbook-form label {
  color: #332c28;
  font-size: .92rem;
  font-weight: 800;
}

.event-guestbook-form label span {
  color: #716a64;
  display: block;
  font-size: .76rem;
  font-weight: 700;
  margin-top: 2px;
}

.event-guestbook-form input,
.event-guestbook-form textarea {
  background: #fbfaf8;
  border: 1px solid rgba(42, 47, 51, .16);
  border-radius: 8px;
  color: #202428;
  font: inherit;
  line-height: 1.45;
  outline: 0;
  padding: 13px 14px;
  width: 100%;
}

.event-guestbook-form textarea {
  min-height: 170px;
  resize: vertical;
}

.event-guestbook-form input:focus,
.event-guestbook-form textarea:focus {
  border-color: rgba(124, 52, 80, .54);
  box-shadow: 0 0 0 3px rgba(124, 52, 80, .12);
}

.event-guestbook-form button {
  background: #7c3450;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  min-height: 48px;
  padding: 0 18px;
}

.event-public-message {
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
  padding: 13px 14px;
}

.event-public-message-success {
  background: #edf7ef;
  border: 1px solid rgba(42, 122, 67, .2);
  color: #1f6a3c;
}

.event-public-message-error {
  background: #fff1f0;
  border: 1px solid rgba(166, 51, 42, .2);
  color: #9a2d26;
}

.event-guestbook-brand {
  border-top: 1px solid rgba(42, 47, 51, .1);
  color: #716a64;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding-top: 18px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .event-home-tile-grid,
  .event-hub-grid,
  .event-report-summary {
    grid-template-columns: 1fr;
  }

  .event-page {
    padding: 16px 10px;
  }

  .event-shell {
    padding: 22px;
  }

  .event-food-menu-body .event-page {
    padding: 12px;
  }

  .event-food-menu-body .event-food-only-shell {
    box-shadow: 0 12px 34px rgba(32, 36, 40, .08);
    min-height: calc(100vh - 24px);
  }

  .event-food-menu-body .event-food-html-frame {
    height: calc(100vh - 218px);
    min-height: 560px;
  }

  .event-guestbook-body .event-page {
    padding: 12px;
  }

  .event-guestbook-shell {
    box-shadow: 0 12px 34px rgba(32, 36, 40, .08);
    min-height: calc(100vh - 24px);
  }
}
