:root {
  color-scheme: light;
  --ink: #242424;
  --muted: #6f6862;
  --line: #e7ded2;
  --soft: #fff9f1;
  --panel: #fffdf8;
  --accent: #0f8278;
  --accent-strong: #075f58;
  --aqua: #eaf7f5;
  --peach: #ffd8c2;
  --butter: #ffe7a3;
  --pink: #f7c8d8;
  --blue: #d8ecff;
  --ok: #34895b;
  --warn: #b7791f;
  --danger: #b64d4d;
  --shadow: 0 18px 44px rgba(36, 36, 36, 0.1);
  --soft-shadow: 0 10px 28px rgba(7, 95, 88, 0.1);
  --card-radius: 16px;
  --control-radius: 12px;
  --vutti-dark: #0d252b;
  --vutti-gradient: linear-gradient(135deg, #00e497, #01b5f2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(234, 247, 245, 0.72), transparent 34%),
    linear-gradient(225deg, rgba(255, 216, 194, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(255, 249, 241, 0.98)),
    var(--soft);
  color: var(--ink);
  font-family:
    "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(231, 222, 210, 0.9);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(36, 36, 36, 0.04);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--vutti-gradient);
  opacity: 0.68;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 130, 120, 0.22);
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 130, 120, 0.18);
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 28px;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.top-actions .ghost-button {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.98rem;
}

.top-actions [data-action="finish-public"] {
  order: 1;
}

.top-actions [data-action="presentation"] {
  order: 2;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  max-width: min(280px, 36vw);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-area {
  padding: clamp(16px, 3vw, 34px);
}

.workspace,
.admin-layout,
.public-layout,
.presentation-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}

.side-panel,
.form-panel,
.admin-form,
.reservations-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.side-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  min-height: 430px;
  padding: clamp(22px, 3.2vw, 34px);
  background:
    linear-gradient(145deg, rgba(234, 247, 245, 0.92), rgba(255, 253, 248, 0.72)),
    var(--panel);
}

.side-panel::before,
.side-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.side-panel::before {
  right: 24px;
  top: 26px;
  width: 72px;
  height: 54px;
  border: 2px solid rgba(15, 130, 120, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(15, 130, 120, 0.12) 44% 56%, transparent 56%),
    linear-gradient(180deg, transparent 42%, rgba(15, 130, 120, 0.12) 42% 56%, transparent 56%),
    rgba(255, 231, 163, 0.45);
  transform: rotate(8deg);
}

.side-panel::after {
  right: 92px;
  bottom: 42px;
  width: 124px;
  height: 36px;
  border-radius: 999px 999px 14px 14px;
  background: rgba(247, 200, 216, 0.32);
  transform: rotate(-7deg);
}

.side-panel > * {
  position: relative;
  z-index: 1;
}

.side-panel h1,
.page-head h1,
.public-head h1 {
  margin: 0;
  line-height: 1.08;
  font-size: clamp(1.95rem, 4.2vw, 3.35rem);
  letter-spacing: 0;
  font-weight: 900;
}

.side-panel p,
.page-head p,
.public-head p {
  color: var(--muted);
  line-height: 1.55;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.mini-metrics div,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 13px 14px;
}

.mini-metrics strong,
.mini-metrics span,
.stats-grid strong,
.stats-grid span {
  display: block;
}

.mini-metrics strong {
  color: var(--accent-strong);
  font-size: 1.45rem;
}

.mini-metrics span,
.stats-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-panel {
  padding: clamp(18px, 3vw, 28px);
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.dialog-card h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: 0;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.ai-message-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.ai-message-tools .secondary-button {
  min-width: min(260px, 100%);
}

.ai-message-tools small {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

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

.event-form.compact label:last-of-type,
.event-form.compact .wide-field,
.event-form.compact .form-actions {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-weight: 700;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 130, 120, 0.14);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.google-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.event-visual-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.mini-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(15, 130, 120, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
}

.calendar-icon::before {
  width: 20px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background:
    linear-gradient(var(--peach), var(--peach)) 0 6px / 100% 2px no-repeat;
}

.invite-icon::before {
  width: 22px;
  height: 17px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.invite-icon::after {
  width: 15px;
  height: 15px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-4px);
}

.gift-icon::before {
  width: 23px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 42%, var(--accent) 42% 55%, transparent 55%),
    linear-gradient(180deg, transparent 38%, var(--accent) 38% 50%, transparent 50%),
    var(--butter);
}

.checklist-icon::before {
  width: 20px;
  height: 23px;
  border: 2px solid var(--accent);
  border-radius: 6px;
}

.checklist-icon::after {
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--ok);
  border-bottom: 3px solid var(--ok);
  transform: rotate(-45deg);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.58);
  padding: 6px;
  margin-bottom: 12px;
}

.auth-tabs button {
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-tabs button.is-active {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 18px rgba(15, 130, 120, 0.16);
}

.primary-button,
.secondary-button,
.ghost-button,
.toolbar button,
.small-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--control-radius);
  padding: 0 16px;
  font-weight: 900;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 130, 120, 0.2);
}

.primary-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 130, 120, 0.24);
}

.secondary-button,
.toolbar button,
.ghost-button,
.small-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.secondary-button:hover,
.toolbar button:hover,
.ghost-button:hover,
.small-button:hover {
  background: var(--aqua);
  border-color: rgba(15, 130, 120, 0.24);
  transform: translateY(-1px);
}

.danger-button {
  border: 1px solid rgba(182, 77, 77, 0.18);
  background: rgba(182, 77, 77, 0.1);
  color: var(--danger);
}

.subtle-danger {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.positive-button {
  border-color: rgba(52, 137, 91, 0.2);
  background: rgba(52, 137, 91, 0.13);
  color: var(--ok);
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.page-head,
.public-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-head {
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: clamp(17px, 2.6vw, 26px);
  border: 1px solid rgba(0, 228, 151, 0.18);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(1, 181, 242, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(13, 37, 43, 0.98), rgba(7, 95, 88, 0.94));
  color: white;
  box-shadow: var(--shadow);
}

.page-head::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(0, 228, 151, 0.12);
}

.page-head > * {
  position: relative;
  z-index: 1;
}

.page-head h1,
.public-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.page-head h1,
.page-head .eyebrow {
  color: white;
}

.page-head p {
  color: rgba(255, 255, 255, 0.76);
}

.page-head .public-link,
.page-head .secondary-button,
.page-head .ghost-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  box-shadow: none;
}

.page-head .share-action {
  min-height: 52px;
  padding: 0 22px;
  border-width: 1px;
  font-size: 0.98rem;
  letter-spacing: 0;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.page-head .share-action:hover {
  transform: translateY(-2px);
}

.page-head .copy-action {
  border-color: rgba(0, 228, 151, 0.36);
  background:
    linear-gradient(135deg, rgba(15, 130, 120, 0.86), rgba(0, 228, 151, 0.34));
  color: white !important;
}

.page-head .copy-action:hover {
  border-color: rgba(0, 228, 151, 0.72);
  background:
    linear-gradient(135deg, var(--accent), rgba(0, 228, 151, 0.45));
  box-shadow: 0 22px 38px rgba(0, 228, 151, 0.18);
}

.page-head .whatsapp-action {
  border: 1px solid rgba(0, 228, 151, 0.5);
  background: linear-gradient(135deg, var(--accent), #00a884);
  color: white !important;
  box-shadow: 0 20px 38px rgba(15, 130, 120, 0.34);
}

.page-head .whatsapp-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.page-head .whatsapp-action:hover {
  border-color: rgba(0, 228, 151, 0.78);
  background: linear-gradient(135deg, var(--accent-strong), #00a884);
  box-shadow: 0 24px 44px rgba(15, 130, 120, 0.42);
}

.public-link {
  display: inline-flex;
  max-width: 100%;
  margin: 6px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 10px;
  color: var(--accent-strong) !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.builder-mode .stats-grid {
  display: none;
}

.button-row,
.toolbar,
.item-actions,
.reservation-actions,
.form-actions,
.list-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-heading-actions {
  align-items: center;
  justify-content: flex-end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stats-grid article {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 247, 245, 0.54));
  box-shadow: var(--soft-shadow);
}

.stats-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--vutti-gradient);
  opacity: 0.82;
}

.stats-grid strong {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: clamp(1.32rem, 2.8vw, 1.82rem);
}

.toolbar {
  margin-bottom: 14px;
}

.admin-form {
  margin-bottom: 14px;
  padding: 14px;
  box-shadow: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 16px;
  align-items: start;
}

.category-stack {
  display: grid;
  gap: 12px;
}

.category-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 26px rgba(36, 36, 36, 0.05);
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(234, 247, 245, 0.98), rgba(255, 231, 163, 0.24)),
    linear-gradient(90deg, rgba(0, 228, 151, 0.08), transparent 42%);
}

.category-section.is-collapsed .category-title {
  border-bottom: 0;
}

.category-title-main,
.category-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-title-main h3 {
  overflow-wrap: anywhere;
}

.category-title-actions {
  justify-content: flex-end;
}

.category-title h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
}

.category-icon {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(15, 130, 120, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 247, 245, 0.9));
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(7, 95, 88, 0.08);
}

.category-icon svg {
  width: 19px;
  height: 19px;
}

.category-toggle {
  display: grid;
  width: 31px;
  min-width: 31px;
  min-height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.items-list {
  display: grid;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 120px 130px 130px auto;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.item-row.draft {
  grid-template-columns: minmax(180px, 1fr) 145px 120px 130px auto;
  background: linear-gradient(90deg, rgba(234, 247, 245, 0.86), rgba(255, 253, 248, 0.94));
}

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

.item-row.public {
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(74px, 84px)) minmax(112px, auto);
}

.extra-placeholder {
  visibility: hidden;
}

.item-name {
  min-width: 0;
}

.item-name strong {
  display: inline;
  overflow-wrap: anywhere;
}

.priority-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(247, 200, 216, 0.6);
  color: #934457;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-pill {
  margin-left: 0;
  background: rgba(234, 247, 245, 0.95);
  color: var(--accent-strong);
}

.status-pill.warn {
  background: rgba(183, 121, 31, 0.14);
  color: var(--warn);
}

.status-pill.danger {
  background: rgba(182, 77, 77, 0.14);
  color: var(--danger);
}

.status-pill.ok {
  background: rgba(52, 137, 91, 0.13);
  color: var(--ok);
}

.welcome-pill {
  margin-top: 6px;
  background: rgba(255, 231, 163, 0.62);
  color: #7a5a13;
}

.item-row label {
  gap: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.item-row input,
.item-row select {
  padding: 8px 9px;
}

.item-row .item-actions {
  align-items: center;
  justify-content: flex-end;
}

.item-row .small-button,
.item-row .danger-button {
  min-width: 96px;
  min-height: 38px;
  padding: 0 12px;
}

.quantity-block {
  display: grid;
  gap: 2px;
}

.quantity-block span {
  color: var(--muted);
  font-size: 0.72rem;
}

.quantity-block strong {
  font-size: 1rem;
}

.reservations-panel {
  position: sticky;
  top: 82px;
  padding: 14px;
  box-shadow: none;
}

.reservation-card {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.reservation-card:last-child {
  border-bottom: 0;
}

.reservation-card strong,
.reservation-card span {
  overflow-wrap: anywhere;
}

.reservation-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.reservation-actions select {
  max-width: 148px;
  padding: 8px 9px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--card-radius);
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.public-layout {
  max-width: 980px;
}

.presentation-layout {
  display: grid;
  width: min(1240px, 100%);
  gap: 16px;
}

.presentation-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 0.96fr) minmax(320px, 0.74fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  min-height: 0;
  padding: clamp(22px, 3.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 247, 245, 0.78)),
    linear-gradient(225deg, rgba(255, 216, 194, 0.35), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.presentation-hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border-radius: var(--card-radius);
  background-image:
    linear-gradient(90deg, rgba(15, 130, 120, 0.24) 0 10px, transparent 10px),
    linear-gradient(90deg, rgba(247, 200, 216, 0.38) 0 8px, transparent 8px),
    linear-gradient(90deg, rgba(255, 231, 163, 0.5) 0 12px, transparent 12px);
  background-position:
    88% 14%,
    92% 78%,
    10% 88%;
  background-repeat: no-repeat;
  background-size:
    52px 8px,
    42px 7px,
    58px 9px;
}

.presentation-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}

.presentation-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.hero-actions {
  margin-top: 18px;
}

.hero-cta {
  min-height: 52px;
  min-width: min(100%, 260px);
  padding: 0 24px;
  font-size: 1rem;
  box-shadow: 0 14px 26px rgba(15, 130, 120, 0.22);
}

.hero-cta-secondary {
  min-height: 52px;
  min-width: min(100%, 190px);
  padding: 0 22px;
}

.product-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background:
    linear-gradient(160deg, rgba(234, 247, 245, 0.95), rgba(255, 255, 255, 0.88)),
    linear-gradient(25deg, rgba(255, 216, 194, 0.55), transparent 45%),
    white;
  padding: clamp(16px, 1.8vw, 22px);
  box-shadow: var(--soft-shadow);
}

.celebration-shapes,
.preview-illustration {
  pointer-events: none;
}

.celebration-shapes .shape {
  position: absolute;
  display: block;
}

.shape.balloon {
  top: 12px;
  right: 14px;
  width: 26px;
  height: 34px;
  border-radius: 50% 50% 46% 46%;
  background: var(--pink);
}

.shape.balloon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 33px;
  width: 1px;
  height: 30px;
  background: rgba(111, 104, 98, 0.35);
}

.shape.heart {
  top: 74px;
  right: 50px;
  width: 18px;
  height: 18px;
  background: var(--peach);
  transform: rotate(45deg);
}

.shape.heart::before,
.shape.heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.shape.heart::before {
  left: -9px;
}

.shape.heart::after {
  top: -9px;
}

.shape.star {
  left: 14px;
  top: 18px;
  width: 26px;
  height: 26px;
  background: var(--butter);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 67% 55%, 78% 92%, 50% 68%, 22% 92%, 33% 55%, 2% 35%, 39% 35%);
}

.shape.ribbon {
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 12px;
  border-radius: 8px;
  background: rgba(15, 130, 120, 0.18);
  transform: rotate(-8deg);
}

.preview-illustration {
  position: relative;
  min-height: 178px;
  margin-bottom: 0;
}

.preview-device {
  position: absolute;
  left: 50%;
  top: 24px;
  width: min(218px, 72%);
  height: 126px;
  border: 2px solid var(--accent-strong);
  border-radius: var(--control-radius);
  background: white;
  transform: translateX(-38%);
  box-shadow: 0 14px 24px rgba(7, 95, 88, 0.13);
}

.preview-device::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -12px;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: var(--accent-strong);
}

.preview-device strong {
  display: block;
  margin: 12px 14px 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.preview-device span {
  display: block;
  height: 9px;
  margin: 9px 14px;
  border-radius: 999px;
  background: var(--aqua);
}

.preview-device em {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(52, 137, 91, 0.14);
  color: var(--ok);
  padding: 4px 8px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.preview-device span:nth-child(1) {
  width: 54%;
  background: var(--accent);
}

.preview-device span:nth-child(2) {
  width: 76%;
  background: var(--peach);
}

.preview-device span:nth-child(3) {
  width: 62%;
  background: var(--butter);
}

.preview-person {
  position: absolute;
  left: 10px;
  bottom: 14px;
  width: 62px;
  height: 78px;
}

.preview-person::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--peach);
}

.preview-person::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 50px;
  height: 50px;
  border-radius: 999px 999px 8px 8px;
  background: var(--accent);
}

.preview-person span {
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 34px;
  width: 48px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-strong);
  transform: rotate(-16deg);
}

.preview-gift {
  position: absolute;
  border: 2px solid rgba(7, 95, 88, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(7, 95, 88, 0.22) 42% 56%, transparent 56%),
    linear-gradient(180deg, transparent 40%, rgba(7, 95, 88, 0.22) 40% 52%, transparent 52%),
    var(--butter);
}

.preview-gift.large {
  right: 48px;
  bottom: 14px;
  width: 62px;
  height: 50px;
}

.preview-gift.small {
  right: 6px;
  bottom: 40px;
  width: 40px;
  height: 34px;
  background-color: var(--pink);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-top div {
  display: grid;
  gap: 2px;
}

.preview-top strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.preview-top small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-top span {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.34) 42% 56%, transparent 56%),
    linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.34) 40% 52%, transparent 52%),
    var(--accent);
}

.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-stat-row div {
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 253, 248, 0.88);
  padding: 10px;
}

.preview-stat-row strong,
.preview-stat-row span {
  display: block;
}

.preview-stat-row strong {
  color: var(--accent-strong);
  font-size: 1.18rem;
}

.preview-stat-row span,
.preview-list span {
  color: var(--muted);
  font-size: 0.74rem;
}

.preview-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.preview-list strong {
  color: var(--accent-strong);
  border-radius: 999px;
  background: var(--aqua);
  padding: 2px 8px;
  font-size: 0.74rem;
}

.presentation-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.presentation-bands article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(234, 247, 245, 0.58));
  padding: 17px 18px;
  box-shadow: var(--soft-shadow);
}

.presentation-bands article::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 216, 194, 0.86);
  transform: rotate(-12deg);
}

.presentation-bands article:nth-child(2)::after {
  background: rgba(247, 200, 216, 0.72);
}

.presentation-bands article:nth-child(3)::after {
  background: rgba(255, 231, 163, 0.88);
}

.presentation-bands span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.presentation-bands h2 {
  margin: 8px 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.presentation-bands p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.92rem;
}

.public-head {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(0, 228, 151, 0.18);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 85% 14%, rgba(1, 181, 242, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(13, 37, 43, 0.98), rgba(7, 95, 88, 0.92));
  color: white;
  box-shadow: var(--shadow);
}

.public-head > div:not(.public-celebration) {
  position: relative;
  z-index: 1;
}

.public-head h1,
.public-head .eyebrow {
  color: white;
}

.public-head p {
  color: rgba(255, 255, 255, 0.78);
}

.public-celebration span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.public-celebration span:nth-child(1) {
  right: 22px;
  top: 18px;
  width: 38px;
  height: 50px;
  border-radius: 50% 50% 46% 46%;
  background: rgba(247, 200, 216, 0.72);
}

.public-celebration span:nth-child(1)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 48px;
  width: 1px;
  height: 52px;
  background: rgba(111, 104, 98, 0.28);
}

.public-celebration span:nth-child(2) {
  right: 78px;
  bottom: 20px;
  width: 70px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 231, 163, 0.74);
  transform: rotate(-8deg);
}

.public-celebration span:nth-child(3) {
  right: 134px;
  top: 30px;
  width: 52px;
  height: 40px;
  border: 2px solid rgba(15, 130, 120, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(15, 130, 120, 0.18) 42% 56%, transparent 56%),
    linear-gradient(180deg, transparent 40%, rgba(15, 130, 120, 0.18) 40% 52%, transparent 52%),
    rgba(255, 216, 194, 0.68);
  transform: rotate(7deg);
}

.public-meta {
  display: grid;
  min-width: 156px;
  gap: 10px;
}

.public-meta span {
  min-height: 54px;
  border: 1px solid rgba(0, 228, 151, 0.36);
  border-radius: var(--control-radius);
  background:
    linear-gradient(135deg, rgba(15, 130, 120, 0.86), rgba(0, 228, 151, 0.34));
  padding: 12px 16px;
  color: white;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.public-meta span:nth-child(2) {
  background: linear-gradient(135deg, var(--accent), #00a884);
}

.public-meta span:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 228, 151, 0.72);
  box-shadow: 0 22px 38px rgba(0, 228, 151, 0.18);
}

.notice {
  margin-bottom: 12px;
  padding: 13px 14px;
  background: rgba(182, 77, 77, 0.09);
  color: var(--danger);
  box-shadow: none;
  font-weight: 800;
}

.success-notice {
  background: rgba(52, 137, 91, 0.1);
  color: var(--ok);
}

.finish-participation {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
}

.finish-participation .primary-button {
  min-height: 48px;
  min-width: min(100%, 250px);
  font-size: 0.96rem;
}

.success-panel {
  position: relative;
  overflow: hidden;
  width: min(640px, 100%);
  margin: clamp(18px, 5vw, 54px) auto 0;
  border: 1px solid rgba(0, 228, 151, 0.18);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 228, 151, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(13, 37, 43, 0.98), rgba(7, 95, 88, 0.92));
  color: white;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}

.success-gift {
  position: relative;
  width: 112px;
  height: 92px;
  margin: 0 auto 16px;
}

.success-gift::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 76px;
  height: 56px;
  border: 2px solid rgba(7, 95, 88, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(7, 95, 88, 0.2) 43% 56%, transparent 56%),
    linear-gradient(180deg, transparent 36%, rgba(7, 95, 88, 0.2) 36% 50%, transparent 50%),
    var(--butter);
}

.success-gift::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 64px;
  height: 16px;
  border-radius: 12px;
  background: var(--peach);
  transform: rotate(-10deg);
}

.success-gift span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.success-gift span:nth-child(1) {
  left: 6px;
  top: 12px;
  width: 34px;
  height: 8px;
  background: var(--pink);
  transform: rotate(24deg);
}

.success-gift span:nth-child(2) {
  right: 8px;
  top: 5px;
  width: 38px;
  height: 8px;
  background: var(--aqua);
  transform: rotate(-18deg);
}

.success-gift span:nth-child(3) {
  right: 21px;
  bottom: 27px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.success-panel h1 {
  margin: 0;
  color: white;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.success-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.58;
}

.success-panel .secondary-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

dialog {
  width: min(460px, calc(100vw - 24px));
  border: 0;
  border-radius: var(--card-radius);
  padding: 0;
  background: transparent;
}

#category-dialog {
  width: min(780px, calc(100vw - 24px));
}

dialog::backdrop {
  background: rgba(32, 32, 29, 0.34);
  backdrop-filter: blur(4px);
}

.dialog-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(234, 247, 245, 0.52)),
    var(--panel);
  padding: 16px;
  box-shadow: var(--shadow);
}

.dialog-card header,
.dialog-card menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.category-dialog-card {
  width: min(760px, calc(100vw - 24px));
}

.compact-heading {
  margin-bottom: 10px;
}

.compact-heading h2 {
  font-size: 1.05rem;
}

.modal-items {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-alert {
  border: 1px solid rgba(182, 77, 77, 0.26);
  border-radius: var(--control-radius);
  background: rgba(182, 77, 77, 0.1);
  color: var(--danger);
  padding: 12px 13px;
  font-weight: 800;
}

.modal-item-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 105px 110px 120px auto;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
}

.modal-item-row label {
  color: var(--muted);
  font-size: 0.76rem;
}

.modal-item-row .danger-button {
  min-height: 44px;
}

.icon-button {
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  max-width: min(360px, calc(100vw - 36px));
  transform: translateY(18px);
  border-radius: var(--control-radius);
  background: var(--ink);
  color: white;
  padding: 13px 15px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .workspace,
  .content-grid,
  .presentation-hero,
  .presentation-bands {
    grid-template-columns: 1fr;
  }

  .presentation-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .presentation-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .product-preview {
    width: min(520px, 100%);
    justify-self: center;
  }

  .side-panel {
    min-height: auto;
  }

  .reservations-panel {
    position: static;
  }

  .item-row,
  .item-row.public {
    grid-template-columns: 1fr 1fr;
  }

  .item-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar,
  .page-head,
  .public-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .button-row,
  .toolbar {
    width: 100%;
  }

  .top-actions button,
  .button-row button,
  .toolbar button {
    flex: 1 1 150px;
  }

  .main-area {
    padding: 14px;
  }

  .presentation-layout {
    gap: 14px;
  }

  .presentation-hero {
    padding: 20px;
  }

  .presentation-hero h1 {
    font-size: clamp(1.86rem, 10vw, 2.55rem);
  }

  .presentation-hero p {
    font-size: 0.96rem;
  }

  .hero-cta {
    width: 100%;
  }

  .field-grid,
  .event-form.compact,
  .auth-tabs,
  .stats-grid,
  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .item-row,
  .item-row.public,
  .modal-item-row {
    grid-template-columns: 1fr;
  }

  .section-heading.inline {
    align-items: start;
    flex-direction: column;
  }

  .ai-message-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-message-tools small {
    text-align: left;
  }
}
