/* Shared UI: sky blue surfaces, dark blue actions, high-contrast typography. */
:root {
  --sky: #dff2fc;
  --accent: #285e7d;
  --ink: #243746;
  --muted: #536572;
  --line: #dce7ee;
  --bg: #f6fafe;
  --orange: #397da4;
}
body {
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #397da4;
  outline-offset: 3px;
}
input::placeholder,
textarea::placeholder {
  color: #746e64;
  opacity: 1;
}
.sidebar {
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  grid-template-rows: 62px 78px;
  box-shadow: none;
}
.sidebar > .logo {
  font-size: 26px;
}
.sidebar > .nav {
  max-width: none;
  gap: 8px;
}
.sidebar > .nav button {
  flex: 0 0 auto;
  min-width: 124px;
  height: 78px;
  padding: 10px 18px 14px;
  font-size: 13px;
  color: #465e6e;
}
.sidebar > .nav button.active {
  color: #285e7d;
  background: #eef7fc;
}
.sidebar > .nav button:hover {
  background: #e9f5fc;
  color: #285e7d;
}
.sidebar > .nav button .icon {
  width: 24px;
  height: 24px;
}
.sidebar > .nav button .badge-count {
  right: 12px;
  top: 7px;
  background: #e5f3fc;
  color: #285e7d;
}
.sidebar > .event-switcher {
  min-width: 220px;
  max-width: 340px;
}
.event-select-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px 10px;
  background: #f3f9fd;
}
.event-select-wrap select {
  width: 100%;
  font-size: 14px;
}
.sidebar > .event-switcher > label {
  font-size: 10px;
  margin-bottom: 4px;
}
.shell > .topbar {
  height: 62px;
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  background: #fff;
}
.demo {
  display: none;
}
.crumb {
  font-size: 13px;
}
.user-menu summary > span:nth-child(2) {
  font-size: 13px;
}
.user-menu summary small,
.user-menu-panel small {
  font-size: 12px;
}
.user-menu-panel {
  width: 250px;
}
.user-menu-panel button {
  min-height: 44px;
  font-size: 14px;
}
.avatar {
  background: #e1f1fa;
  color: #2f6687;
}
main {
  max-width: 1368px;
  padding: 36px 24px 20px;
}
.heading {
  margin-bottom: 28px;
  gap: 24px;
}
.heading h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 8px 0 10px;
}
.heading p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  color: #496a80;
  letter-spacing: 1.5px;
}
.btn {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 13px;
  line-height: 1.3;
  border-radius: 8px;
  border-color: #c8dce9;
}
.btn.primary {
  background: var(--sky);
  border-color: #acd5ed;
  color: #214c68;
  font-weight: 700;
}
.btn.primary:hover {
  background: #c9e9fa;
  border-color: #74b4d9;
}
.btn:not(.primary):hover {
  background: #eef7fc;
}
.btn.light {
  background: #fff;
  color: #285e7d;
}
.text-link,
.row-action {
  font-size: 13px;
  color: var(--accent);
  min-height: 36px;
}
.actions {
  gap: 10px;
  flex-wrap: wrap;
}
.card,
.stat,
.event-card {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px #46351e04;
}
.card {
  padding: 26px;
  margin-bottom: 24px;
  min-width: 0;
}
.card-head {
  gap: 14px;
  flex-wrap: wrap;
}
.card h3,
.card-head h3 {
  font-size: 17px;
  line-height: 1.4;
}
.muted {
  font-size: 14px !important;
  line-height: 1.75;
  color: var(--muted) !important;
}
.stats {
  gap: 18px;
}
.stat {
  padding: 22px;
  min-width: 0;
}
.stat-head {
  font-size: 13px;
  color: #5a5348;
}
.stat strong {
  font-size: 32px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.stat-head .icon,
.activity-dot {
  background: #eaf5fc;
  color: var(--accent);
}
.grid {
  gap: 24px;
}
.grid > div {
  min-width: 0;
}
.pill,
.status {
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 9px;
}
.pill {
  color: #285e7d;
  background: #eaf5fc;
}
.status.wait {
  background: #fbf0d8;
  color: #775017;
}
.status.off {
  color: #963d36;
  background: #fff0ed;
}
.hero {
  background: #dfeffc;
}
.hero-meta {
  font-size: 14px;
}
.hero-content {
  max-width: 65%;
}
.hero h2 {
  font-size: 36px;
}
.countdown span {
  font-size: 10px;
}
.next p,
.activity p,
.activity small,
.steps .step {
  font-size: 13px;
  line-height: 1.7;
}
.next {
  gap: 16px;
}
.domain {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.footer {
  font-size: 12px;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
}
.field {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.5;
}
.field input,
.field select,
.field textarea,
.search {
  font-size: 15px;
  line-height: 1.5;
  min-height: 46px;
  border: 1px solid #c5d9e7;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  padding: 11px 13px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.field input[type='checkbox'],
.field input[type='color'] {
  width: auto;
}
.field input[type='file'] {
  font-size: 13px;
  white-space: normal;
}
.field > small,
.preview-label {
  font-size: 12px;
  color: var(--muted);
}
.toolbar {
  margin-bottom: 22px;
}
.toolbar .search,
#search {
  max-width: 440px;
}
.modal-box {
  padding: 28px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  width: min(540px, calc(100vw - 32px));
}
.modal-title h2 {
  font-size: 23px;
  line-height: 1.3;
}
.close {
  min-width: 40px;
  min-height: 40px;
}
.modal-overlay {
  padding: 20px 0;
}
.empty {
  padding: 38px 22px !important;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}
.empty-start {
  max-width: 860px;
  padding: 90px 24px;
}
.empty-start h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
}
.empty-start p {
  font-size: 16px;
}
.search {
  min-width: 0;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
}
th {
  font-size: 11px;
  color: #536572;
  letter-spacing: 0.6px;
}
td {
  font-size: 14px;
  padding-block: 17px;
}
.person small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.inline-select {
  font-size: 13px;
  max-width: 175px;
  min-height: 42px;
  color: #243746;
}
.inline-select.secondary {
  color: #536572;
}
.guest-summaries {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  gap: 30px;
}
.guest-summary {
  font-size: 13px;
}
.guest-summary b {
  font-size: 22px;
}
.guest-summary small {
  font-size: 12px;
}
.guest-summary .icon {
  color: var(--accent);
}
.guest-tabs {
  justify-content: flex-start;
  overflow-x: auto;
  gap: 24px;
  background: #f1f8fc;
}
.guest-tabs button {
  font-size: 12px;
  white-space: nowrap;
  min-height: 48px;
  color: #536572;
}
.guest-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.guest-toolbar {
  gap: 15px;
  flex-wrap: wrap;
}
.guest-toolbar label {
  font-size: 13px;
}
.guest-actions,
.guest-actions-left,
.guest-actions-right {
  flex-wrap: wrap;
  gap: 10px;
}
.guest-actions .btn {
  font-size: 13px;
}
.guest-group-row {
  background: #f3f9fd;
}
.event-body h3 {
  font-size: 20px;
}
.event-body {
  padding: 24px;
}
.event-cover {
  background: #dfedf8;
  color: #39799f;
}
.event-list {
  gap: 24px;
}
.template-grid {
  gap: 20px;
}
.template-caption {
  padding: 18px;
}
.template-caption b,
.template-caption span {
  font-size: 13px;
}
.template-choice.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #afd5eb;
}
.template-admin .actions .btn {
  flex: 1 1 auto;
}
.editor-grid {
  gap: 28px;
}
.editor-preview {
  top: 24px;
}
.address-input {
  align-items: center;
}
.address-input span {
  font-size: 13px;
  color: #536572;
}
.color-fields {
  flex-wrap: wrap;
}
.invitation {
  max-width: 100%;
  overflow: hidden;
}
.invitation p {
  font-size: 15px;
}
.invitation .btn.primary {
  color: #fff;
}
.invite-signature {
  font-size: 11px;
  opacity: 0.8;
}
.mini-invitation {
  pointer-events: none;
}
.public-top {
  border-bottom: 1px solid var(--line);
}
.public-hero {
  background: radial-gradient(ellipse at 85% 20%, #c9e8fa, transparent 45%), #eaf5fc;
  margin: 40px auto 0;
  padding: 65px 36px;
}
.public-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -2px;
}
.public-hero > p {
  font-size: 16px;
  color: #536572;
}
.public-cards b {
  font-size: 15px;
}
.public-cards small {
  font-size: 13px;
  color: #536572;
}
.public-footer,
.auth-footer {
  font-size: 12px;
  color: var(--muted);
}
.auth-page {
  background: radial-gradient(ellipse at 10% 70%, #dff2fc, transparent 45%), #f6fafe;
}
.auth-intro,
.auth-switch,
.auth-back {
  font-size: 14px;
  line-height: 1.6;
}
.auth-card {
  padding: 36px;
}
.auth-aside p {
  font-size: 16px;
  color: var(--muted);
}
.auth-flowers {
  color: #39799f;
}
.auth-card .field input {
  min-height: 48px;
}
.auth-submit {
  min-height: 48px;
}
.auth-card .field input:focus {
  outline-color: #b8dcee;
  border-color: var(--accent);
}
@media (max-width: 1000px) {
  .sidebar > .nav button {
    min-width: 110px;
    padding-inline: 14px;
    font-size: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .sidebar {
    padding: 12px 16px 0;
    grid-template-rows: auto 74px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sidebar > .logo {
    grid-row: 1;
    grid-column: 1;
    font-size: 23px;
  }
  .sidebar > .event-switcher {
    grid-row: 2;
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    min-width: 0;
    text-align: left;
  }
  .sidebar:has(.event-switcher) {
    grid-template-rows: 40px auto 74px;
  }
  .sidebar:has(.event-switcher) > .nav {
    grid-row: 3;
  }
  .sidebar > .workspace {
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
  }
  .sidebar > .workspace small {
    display: none;
  }
  .sidebar > .nav {
    grid-row: 2;
    gap: 0;
    margin-inline: -4px;
    width: calc(100% + 8px);
  }
  .sidebar > .nav button {
    min-width: 105px;
    height: 74px;
    font-size: 12px;
  }
  .event-select-wrap select {
    max-width: none;
    font-size: 14px;
  }
  .sidebar > .event-switcher > label {
    font-size: 10px;
  }
  .topbar {
    padding-inline: 16px !important;
  }
  .crumb {
    max-width: 65%;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-right {
    gap: 8px;
  }
  .user-menu summary > span:nth-child(2) {
    display: none;
  }
  main {
    padding: 26px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .heading h1 {
    font-size: 27px;
  }
  .heading p {
    max-width: none;
  }
  .heading > .actions {
    justify-content: flex-start;
  }
  .card {
    padding: 20px;
  }
  .grid,
  .editor-grid,
  .event-list,
  .admin-templates {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat-head {
    font-size: 12px;
    gap: 8px;
  }
  .hero-content {
    max-width: 100%;
    padding: 24px;
  }
  .hero-art {
    opacity: 0.2;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero {
    padding-bottom: 70px;
  }
  .hero-actions {
    max-width: none;
  }
  .next {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .next button {
    margin-left: 0;
  }
  .guest-summaries {
    gap: 20px;
    padding: 20px;
  }
  .guest-tabs {
    gap: 18px;
  }
  .guest-toolbar .search {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .guest-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .template-choice {
    grid-template-columns: 105px 1fr;
  }
  .address-input input {
    min-width: 0;
  }
  .public-top {
    padding: 18px 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .public-hero {
    margin: 18px 16px;
    padding: 40px 22px;
  }
  .public-hero h1 {
    letter-spacing: -1px;
  }
  .auth-page {
    padding: 22px 16px;
  }
  .auth-layout {
    margin-top: 25px;
  }
  .auth-card {
    padding: 26px;
  }
  .auth-aside h1 {
    font-size: 36px;
  }
  .empty-start h1 {
    font-size: 34px;
  }
  .footer {
    line-height: 1.6;
  }
  .editor-preview {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Long content and focus should remain accessible in every view. */
.card .muted,
.event-body,
.domain,
.user-menu-panel small {
  overflow-wrap: anywhere;
}
.sidebar > .nav {
  scrollbar-width: thin;
  scrollbar-color: #aad2e9 transparent;
}
.template-swatch {
  overflow: hidden;
}
.template-swatch b {
  overflow-wrap: anywhere;
}
.template-grid {
  min-width: 0;
}
.template-choice {
  min-width: 0;
}
.template-swatch small {
  line-height: 1.5;
}
.guest-actions-left {
  flex: 1;
}
.auth-card h2 {
  font-size: 30px;
}
.modal-title {
  position: sticky;
  top: -28px;
  background: #fff;
  padding-block: 8px;
  z-index: 1;
}
.field input[type='checkbox'] {
  min-height: 0;
}
.check-fields input,
.check-field input {
  accent-color: var(--accent);
}
.bar-group small {
  font-size: 12px;
  color: var(--muted);
}

.mini-invitation .invitation {
  max-width: none;
}
.status:not(.off):not(.wait) {
  color: #285e47;
  background: #eaf5ee;
}
.sidebar > .nav {
  scroll-behavior: smooth;
}
/* Two header rows: identity and account controls, then event actions. */
.sidebar.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid #cbdce8;
  overflow: visible;
  background: #fff;
  box-shadow: 0 4px 14px #24374608;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid #cbdce8;
  background: #fff;
}
.brand-row > .logo {
  flex-shrink: 0;
  font-size: 26px;
}
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}
.header-tools .event-switcher {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  min-width: 0;
  width: 334px;
  max-width: 100%;
}
.event-selector-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.event-selector-actions .event-select-wrap {
  flex: 1;
  min-width: 0;
}
.event-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #acd5ed;
  border-radius: 50%;
  background: var(--sky);
  color: var(--accent);
  cursor: pointer;
}
.event-create-button:hover {
  background: #c9e9fa;
  border-color: #74b4d9;
}
.event-create-button .icon {
  width: 20px;
  height: 20px;
}
.header-tools .event-switcher > label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.header-tools .event-switcher > small {
  display: none;
}
.header-tools .event-select-wrap select {
  min-width: 0;
  max-width: none;
  font-size: 14px;
}
.header-tools .top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.header-tools .workspace {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  gap: 10px;
}
.header-tools .workspace b {
  margin: 0;
  font-size: 13px;
}
.header-tools .workspace small {
  display: none;
}
.header-tools .user-menu summary {
  min-height: 44px;
}
.header-tools .notification {
  /* Same box as the "?" button next to it */
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--si-line, #e3e9ee);
  border-radius: 10px;
  background: #fff;
}
.header-tools .notification:after {
  top: 8px;
  right: 9px;
}
.sidebar.app-header > .nav {
  display: flex;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  gap: 8px;
}
.sidebar.app-header > .nav > button {
  height: 66px;
  min-height: 66px;
  padding-block: 7px;
  gap: 4px;
  font-size: 11px;
  line-height: 1.4;
}
.sidebar.app-header > .nav > button .icon {
  width: 28px;
  height: 28px;
}
.sidebar.app-header > .nav > button:first-child {
  margin-left: auto;
}
.sidebar.app-header > .nav > button:last-child {
  margin-right: auto;
}
@media (max-width: 850px) {
  .brand-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }
  .brand-row > .logo {
    font-size: 24px;
  }
  .header-tools {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .header-tools .event-switcher {
    flex: 1;
    width: auto;
  }
  .header-tools .top-right {
    gap: 8px;
    padding-left: 12px;
    flex-shrink: 0;
  }
  .header-tools .user-menu summary > span:nth-child(2) {
    display: none;
  }
  .sidebar.app-header > .nav {
    padding-inline: 12px;
    gap: 0;
  }
  .sidebar.app-header > .nav > button {
    height: 64px;
    min-height: 64px;
  }
  .header-tools .workspace {
    flex: 1;
  }
  .header-tools:has(.workspace) {
    width: auto;
    margin-left: auto;
  }
}
@media (max-width: 400px) {
  .header-tools .top-right {
    gap: 4px;
    padding-left: 8px;
  }
  .header-tools .event-select-wrap {
    padding-inline: 7px;
  }
}

/* A distinct atmosphere for each event, within the shared sky-blue interface. */
.user-menu-panel button {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-menu-panel button[data-nav] {
  color: var(--ink);
}
.user-menu-panel button[data-nav]:hover,
.user-menu-panel button[aria-current='page'] {
  background: #eaf5fc;
  color: var(--accent);
}
.user-menu-count {
  margin-left: auto;
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eaf5fc;
  color: var(--accent);
  font-size: 12px;
  text-align: center;
}
.user-menu-panel button[data-nav] + button[data-action='logout'] {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
}
.address-status {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: -8px 0 12px;
}
.address-status[data-state='available'] {
  color: #285e47;
}
.address-status[data-state='error'] {
  color: #963d36;
}
.address-input input {
  min-width: 0;
}
.user-menu summary > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.close {
  display: grid;
  place-items: center;
}
.public-cards > div > .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.auth-flowers {
  display: flex;
  align-items: center;
  gap: 24px;
}
.auth-flowers > .icon {
  width: 44px;
  height: 44px;
}
.auth-flowers > .icon:nth-child(2) {
  width: 62px;
  height: 62px;
}
.event-theme-wedding {
  --event-bg: #f7eee7;
  --event-accent: #765137;
}
.event-theme-birthday {
  --event-bg: #e5f3fc;
  --event-accent: #285e7d;
}
.event-theme-baptism {
  --event-bg: #edf4fa;
  --event-accent: #496a83;
}
.event-theme-party {
  --event-bg: #e7e7f6;
  --event-accent: #554d7d;
}
.event-theme-business {
  --event-bg: #e2edf6;
  --event-accent: #24516f;
}
.event-theme-other {
  --event-bg: #e6f2ef;
  --event-accent: #3b6e62;
}
.event-banner {
  background: var(--event-bg);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 260px;
  padding: 0;
  isolation: isolate;
}
.event-banner .hero-content {
  max-width: none;
  padding: 22px 28px;
  align-self: center;
  min-width: 0;
}
.event-banner .pill {
  background: #ffffffc9;
  color: var(--event-accent);
  gap: 7px;
  display: inline-flex;
  align-items: center;
}
.event-banner h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  overflow-wrap: anywhere;
  margin: 12px 0 8px;
}
.event-theme-business h2 {
  font-family: Manrope, sans-serif;
  font-weight: 750;
  letter-spacing: -1px;
}
.event-caption {
  font-size: 14px;
  line-height: 1.65;
  color: var(--event-accent);
  margin: 0 0 12px;
  max-width: 420px;
}
.event-banner .hero-meta {
  color: #455d6b;
  gap: 10px;
}
.event-banner .hero-meta > span:empty {
  display: none;
}
.event-banner .hero-actions {
  flex-wrap: wrap;
  max-width: none;
  margin-top: 16px;
}
.event-banner .hero-actions .btn {
  font-size: 13px;
}
.event-art {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 48px;
}
.event-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}
.event-banner .countdown {
  bottom: 14px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px 14px;
  border: 1px solid #ffffffc9;
  background: #fffffff0;
  box-shadow: 0 4px 18px #24374608;
}
.event-banner .countdown b {
  font-size: 28px;
  line-height: 1.2;
  color: var(--event-accent);
}
.event-banner .countdown span {
  font-size: 10px;
  color: #536572;
  max-width: 100px;
  line-height: 1.5;
}
.event-cover {
  position: relative;
  background: var(--event-bg);
  height: 210px;
  overflow: hidden;
}
.event-cover > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.event-type {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: #fffffff0;
  color: var(--event-accent);
  border-radius: 6px;
  font:
    600 12px/1.5 Manrope,
    sans-serif;
}
.event-type .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 700px) {
  .event-banner {
    grid-template-columns: 1fr;
  }
  .event-banner .hero-content {
    padding: 20px 20px 0;
  }
  .event-banner h2 {
    font-size: 28px;
  }
  .event-art {
    padding: 0 12px 48px;
  }
  .event-art img {
    height: 145px;
    max-height: none;
  }
  .event-banner .countdown {
    right: 16px;
    bottom: 12px;
  }
  .event-cover {
    height: 220px;
  }
}
/* Guest identities and event-specific category management. */
.guest-form-grid,
.guest-age-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.guest-age-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guest-ages {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 22px 0;
}
.guest-ages legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0 6px;
}
.guest-ages p {
  margin: 0 0 16px;
  font-size: 12px;
}
.guest-age-grid .field {
  margin: 0;
}
.guest-age-grid small {
  display: block;
  white-space: nowrap;
  font-size: 11px;
  margin-bottom: 8px;
}
.inline-group-create {
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 24px;
}
.inline-group-create summary {
  cursor: pointer;
  color: var(--accent);
  padding: 8px 0;
  min-height: 32px;
}
.inline-group-create[open] {
  background: #f3f9fd;
  border-radius: 8px;
  padding: 10px 14px;
}
.inline-group-create .field {
  margin-block: 12px;
}
.guest-age-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 24px;
}
.guest-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guest-filter select,
.guest-bulk select {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 7px;
  font: inherit;
  max-width: 220px;
}
.guest-toolbar .search {
  flex: 1;
  min-width: 180px;
}
.guest-bulk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0 18px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.guest-bulk > span {
  margin-right: auto;
}
.guest-bulk label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guest-bulk .btn {
  min-height: 40px;
  padding: 8px 14px;
}
.btn:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.guest-count-detail {
  display: block;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.guest-table {
  min-width: 960px;
}
.guest-table th {
  white-space: nowrap;
}
.guest-group-row th {
  padding: 14px;
  text-transform: none;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  text-align: left;
}
.guest-group-row small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 10px;
}
.guest-table .person b {
  font-size: 13px;
  font-weight: 600;
}
.guest-table .person small {
  max-width: 250px;
  overflow-wrap: anywhere;
}
.group-create {
  display: flex;
  align-items: end;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.group-create .field {
  flex: 1;
  margin: 0;
}
.group-create .btn {
  min-height: 46px;
}
.group-edit-form {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.group-edit-form .field {
  font-size: 12px;
  margin-bottom: 10px;
}
.group-edit-form .actions {
  justify-content: flex-end;
}
.group-manager-list {
  max-height: 45vh;
  overflow-y: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .guest-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .guest-age-grid {
    gap: 8px;
  }
  .guest-ages {
    padding: 12px;
  }
  .guest-age-grid input {
    padding: 8px;
  }
  .guest-filter select {
    flex: 1;
    max-width: none;
  }
  .guest-bulk {
    align-items: stretch;
  }
  .guest-bulk > span {
    width: 100%;
  }
  .guest-bulk label {
    flex: 1;
    flex-wrap: wrap;
  }
  .guest-bulk select {
    max-width: 100%;
    flex: 1;
  }
  .guest-group-row small {
    display: block;
    margin: 5px 0 0;
  }
  .guest-form-grid .field {
    margin-bottom: 16px;
  }
}
@media print {
  .guest-actions,
  .guest-toolbar,
  .guest-tabs,
  .guest-bulk,
  .guest-table th:first-child,
  .guest-table td:first-child,
  .guest-table th:last-child,
  .guest-table td:last-child {
    display: none;
  }
  .guest-table .guest-group-row th {
    display: table-cell;
  }
  .guest-table {
    min-width: 0;
  }
  .guest-table .inline-select {
    border: 0;
    appearance: none;
  }
}
.preview-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.preview-switch [aria-pressed='true'] {
  background: #dff2fc;
  border-color: #7dbbde;
}
#invitation-live.mobile-preview {
  width: 375px;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 0 0 5px #344d5d;
  border-radius: 18px;
  overflow: hidden;
}
.mobile-preview .invite-content {
  padding: 24px 18px;
}
.invite-programme {
  white-space: pre-line;
}
.share-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 20px auto;
}
.recipient-list,
.delivery-list {
  max-height: 45vh;
  overflow: auto;
  margin: 20px 0;
}
.recipient-list label {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.delivery-list article {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-list small {
  display: block;
  margin: 6px 0;
  color: var(--muted);
}
.delivery-list p {
  font-size: 13px;
}
.section-config {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 20px 0;
}
.section-config [data-section-row] {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  font-size: 12px;
}
.section-config [data-section-row] > b {
  width: 100px;
}
.section-config input[type='checkbox'] {
  width: auto;
}
.gallery-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.media-gallery .gallery-tools button {
  position: static;
  background: white;
  color: var(--ink);
  font-size: 11px;
  width: auto;
  height: auto;
  padding: 6px;
  border-radius: 6px;
}
.media-gallery > div {
  overflow: visible;
}
#crop-preview {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #edf5fa;
}
#editor-save-status {
  font-size: 12px;
  color: var(--accent);
  padding: 10px;
  background: #edf7fd;
  border-radius: 6px;
}
.section-config .field {
  margin-top: 15px;
}
@media (min-width: 701px) {
  .editor-preview {
    top: 176px;
    max-height: calc(100dvh - 192px);
    overflow: auto;
    padding: 6px;
  }
  .preview-switch {
    position: sticky;
    top: 0;
    background: #f6fafe;
    padding: 8px 0;
    z-index: 2;
  }
  .editor-preview .preview-label {
    margin-top: 0;
  }
}
html {
  scroll-padding-top: 180px;
}
.entry-table {
  min-width: 1050px;
  table-layout: fixed;
}
.entry-table th:first-child {
  width: 55px;
}
.entry-table th:nth-child(6) {
  width: 135px;
}
.entry-table th:last-child {
  width: 65px;
}
.entry-table td,
.entry-table th {
  padding: 12px 7px;
  vertical-align: top;
}
.entry-table input,
.entry-table select {
  width: 100%;
  min-height: 44px;
  padding: 9px;
  border: 1px solid #bfd4e2;
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.entry-table input:focus,
.entry-table select:focus {
  outline: 2px solid #8bc9ec;
  outline-offset: 1px;
}
.entry-primary {
  background: #f1f8fd;
  border-top: 2px solid #d2e5f2;
}
.entry-companion {
  background: #fafcfe;
}
.entry-companion th {
  color: var(--muted);
  font-size: 12px;
}
.entry-hint {
  font-size: 12px;
  color: var(--muted);
}
.entry-table th small {
  display: block;
  font-size: 10px;
  white-space: normal;
}
.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
}
.entry-mobile-label {
  display: none;
}
.entry-error {
  background: #fff0f0;
  color: #8b2635;
  border: 1px solid #f0c7ce;
  border-radius: 8px;
  padding: 14px;
}
.entry-error[hidden] {
  display: none;
}
.companion-details {
  font-size: 12px;
  margin-top: 9px;
  max-width: 290px;
}
.companion-details summary {
  cursor: pointer;
  color: var(--accent);
}
.companion-details p {
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .entry-table,
  .entry-table tbody,
  .entry-table tr,
  .entry-table td,
  .entry-table th {
    display: block;
    width: auto;
    min-width: 0;
  }
  .entry-table thead {
    display: none;
  }
  .entry-table tr {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .entry-table .entry-companion {
    margin-left: 18px;
    border-left: 3px solid #c8e4f4;
  }
  .entry-table th:first-child {
    width: auto;
  }
  .entry-table td {
    padding: 6px;
  }
  .entry-mobile-label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
  }
  .entry-footer .actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .entry-footer .btn {
    flex: 1;
  }
  .entry-card {
    padding: 16px;
  }
}

/* The channel of a sending: e-mail or WhatsApp */
.dl-channel {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.dl-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line, #d5dde3);
  border-radius: 999px;
  cursor: pointer;
}
.dl-choice:has(input:checked) {
  border-color: #25a366;
  background: #e7f6ee;
}
.recipient-list[hidden],
[data-channel-note][hidden] {
  display: none;
}

/* On a narrow phone the tabs share the width (the last one was cut off, with nothing to say it scrolls); with more
   tabs than fit (the administrator's), they scroll, and a fade at the edge says there is more. */
@media (max-width: 480px) {
  .sidebar > .nav button {
    flex: 1 1 0;
    min-width: 76px;
    padding: 10px 4px 12px;
    white-space: normal;
    line-height: 1.15;
    font-size: 11px;
  }
  .sidebar > .nav button.active:after {
    left: 6px;
    right: 6px;
  }
}
.sidebar > .nav[data-more~='right'] {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.sidebar > .nav[data-more~='left'] {
  -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent);
}
.sidebar > .nav[data-more~='left'][data-more~='right'] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}

/* "Send the link by WhatsApp" when guests are registered */
.entry-wa {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid #b9e3cc;
  border-radius: 12px;
  background: #eefaf3;
  cursor: pointer;
}
.entry-wa.is-off {
  border-color: var(--line, #d5dde3);
  background: #f5f7f9;
  color: #5b6b78;
  cursor: default;
}
.entry-wa input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.entry-wa span {
  display: grid;
  gap: 3px;
}
.entry-wa small {
  font-size: 13px;
  color: #4d6a5b;
}
.entry-wa.is-off small {
  color: #5b6b78;
}
