:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: #f6f7f9;
  --surface-strong: #1d1d1f;
  --line: rgba(60, 60, 67, 0.14);
  --line-strong: rgba(60, 60, 67, 0.28);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-strong: #424245;
  --primary: #007aff;
  --primary-dark: #0057d9;
  --amber: #b87516;
  --rose: #b42318;
  --blue: #2563eb;
  --green: #15834f;
  --violet: #6941c6;
  --shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-ring: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  --body-top: #fbfbfd;
  --body-bottom: #eef1f5;
  --topbar-bg: rgba(251, 251, 253, 0.78);
  --panel-soft: rgba(246, 247, 249, 0.82);
  --field-bg: rgba(255, 255, 255, 0.92);
  --table-head: rgba(246, 247, 249, 0.86);
  --hover-bg: rgba(0, 122, 255, 0.07);
  --cover-bg: #e5e7eb;
  --description: #303034;
  --sticky-bg: rgba(251, 251, 253, 0.86);
  --admin-profile-bg: #1d1d1f;
  --brand-start: #007aff;
  --brand-end: #5856d6;
  --glass-bg: rgba(255, 255, 255, 0.76);
  --elevated-bg: rgba(255, 255, 255, 0.88);
  --control-bg: rgba(255, 255, 255, 0.94);
  --control-border: rgba(60, 60, 67, 0.16);
  --control-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --active-bg: rgba(0, 122, 255, 0.1);
  --active-border: rgba(0, 122, 255, 0.24);
  --focus-ring: rgba(0, 122, 255, 0.18);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151413;
  --surface: rgba(34, 33, 32, 0.94);
  --surface-soft: #292827;
  --surface-strong: #f7f5f2;
  --line: rgba(245, 242, 238, 0.12);
  --line-strong: rgba(245, 242, 238, 0.24);
  --text: #f5f3f0;
  --muted: #aaa6a2;
  --muted-strong: #e2ded9;
  --primary: #e1262c;
  --primary-dark: #ff686d;
  --amber: #ff8588;
  --rose: #ff686d;
  --blue: #e4e0dc;
  --green: #e4e0dc;
  --violet: #e4e0dc;
  --shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.3);
  --shadow-ring: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --body-top: #252321;
  --body-bottom: #10100f;
  --topbar-bg: rgba(21, 20, 19, 0.88);
  --panel-soft: rgba(43, 41, 39, 0.9);
  --field-bg: rgba(24, 23, 22, 0.94);
  --table-head: rgba(44, 42, 40, 0.9);
  --hover-bg: rgba(225, 38, 44, 0.11);
  --cover-bg: #302e2c;
  --description: #d8d4d0;
  --sticky-bg: rgba(21, 20, 19, 0.94);
  --admin-profile-bg: #090909;
  --brand-start: #f04449;
  --brand-end: #b91f25;
  --glass-bg: rgba(34, 33, 32, 0.84);
  --elevated-bg: rgba(39, 37, 35, 0.94);
  --control-bg: rgba(45, 43, 41, 0.94);
  --control-border: rgba(245, 242, 238, 0.16);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --active-bg: rgba(225, 38, 44, 0.15);
  --active-border: rgba(239, 68, 73, 0.4);
  --focus-ring: rgba(239, 68, 73, 0.3);
}

html[data-theme="forest"] {
  --bg: #eef5ef;
  --surface: rgba(255, 255, 251, 0.9);
  --surface-soft: #edf5ef;
  --surface-strong: #10251c;
  --line: rgba(34, 76, 52, 0.17);
  --line-strong: rgba(34, 76, 52, 0.31);
  --text: #13231b;
  --muted: #5f7368;
  --muted-strong: #41594a;
  --primary: #1f7a4d;
  --primary-dark: #145a39;
  --amber: #a66c16;
  --green: #167244;
  --violet: #5f4bb6;
  --body-top: #fbfdf9;
  --body-bottom: #dfece2;
  --topbar-bg: rgba(255, 255, 251, 0.8);
  --panel-soft: rgba(244, 249, 244, 0.84);
  --field-bg: rgba(255, 255, 251, 0.92);
  --table-head: rgba(241, 248, 242, 0.86);
  --hover-bg: rgba(31, 122, 77, 0.1);
  --cover-bg: #d3e2d7;
  --description: #253a2d;
  --sticky-bg: rgba(255, 255, 251, 0.96);
  --admin-profile-bg: #10251c;
  --brand-start: #1f7a4d;
  --brand-end: #10251c;
  --glass-bg: rgba(255, 255, 251, 0.76);
  --elevated-bg: rgba(255, 255, 251, 0.88);
  --control-bg: rgba(255, 255, 251, 0.94);
  --control-border: rgba(34, 76, 52, 0.17);
  --control-shadow: 0 1px 2px rgba(16, 42, 25, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --active-bg: rgba(31, 122, 77, 0.12);
  --active-border: rgba(31, 122, 77, 0.28);
  --focus-ring: rgba(31, 122, 77, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background:
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 38%, var(--body-bottom) 100%);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 232, 0.86);
  background: var(--topbar-bg);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.topbar-inner.brand-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.topbar-inner.brand-center .brand {
  grid-column: 2;
  justify-self: center;
  max-width: min(360px, 48vw);
  justify-content: center;
}

.topbar-inner.brand-center .nav-actions {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--surface-strong);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 124, 117, 0.24);
}

.brand-logo {
  width: auto;
  max-width: 180px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions,
.row-actions,
.inline-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button-row {
  margin-top: 18px;
}

.button-row.compact {
  margin-top: 0;
}

.btn {
  --btn-bg: #fff;
  --btn-text: var(--text);
  --btn-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

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

.btn.primary {
  --btn-bg: linear-gradient(135deg, #0e7c75, #0b6b66);
  --btn-border: var(--primary);
  --btn-text: #fff;
  box-shadow: 0 12px 24px rgba(14, 124, 117, 0.18);
}

.btn.dark {
  --btn-bg: var(--surface-strong);
  --btn-border: var(--surface-strong);
  --btn-text: #fff;
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: var(--muted-strong);
}

.btn.danger {
  --btn-bg: #fff7f5;
  --btn-border: #ffd7d1;
  --btn-text: var(--rose);
}

.btn.whatsapp {
  --btn-bg: linear-gradient(180deg, #25d366 0%, #16a34a 100%);
  --btn-border: rgba(22, 163, 74, 0.72);
  --btn-text: #fff;
}

.btn.small {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 13px;
}

.btn.icon {
  width: 40px;
  padding: 0;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

html[data-theme="dark"] .btn {
  --btn-bg: #292725;
  --btn-border: #4b4845;
  --btn-text: #f5f3f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .btn:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .btn.primary {
  --btn-bg: linear-gradient(135deg, #f04449, #c91f26);
  --btn-border: #f04449;
  --btn-text: #fff;
}

html[data-theme="dark"] .btn.dark {
  --btn-bg: #e6edf5;
  --btn-border: #e6edf5;
  --btn-text: #0b1117;
}

html[data-theme="dark"] .btn.ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: #d8e1ec;
}

html[data-theme="dark"] .btn.ghost:hover {
  --btn-bg: #302e2c;
  --btn-border: #4b4845;
  --btn-text: #fff;
}

html[data-theme="dark"] .btn.danger {
  --btn-bg: #351b1b;
  --btn-border: #87343a;
  --btn-text: #ffd7d8;
}

html[data-theme="dark"] .btn.whatsapp {
  --btn-bg: #351b1b;
  --btn-border: #87343a;
  --btn-text: #fff;
}

html[data-theme="dark"] .btn[disabled] {
  --btn-bg: #201f1e;
  --btn-border: #393735;
  --btn-text: #a9a6a2;
  opacity: 1;
  box-shadow: none;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.admin-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  background: var(--admin-profile-bg);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-profile-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  color: #9df2df;
}

.admin-profile-mark svg {
  width: 21px;
  height: 21px;
}

.admin-profile-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.admin-profile strong,
.admin-profile span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile strong {
  font-size: 14px;
  font-weight: 900;
}

.admin-profile span {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 750;
}

.sidebar-section {
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.sidebar-title {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted-strong);
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-list {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.event-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.event-list button > span {
  display: block;
  min-width: 0;
}

.event-list button:hover,
.event-list button.active {
  border-color: #cdd8e2;
  background: #f5f8fa;
}

html[data-theme="dark"] .event-list button:hover,
html[data-theme="dark"] .event-list button.active {
  border-color: #5a3436;
  background: #302526;
  color: #f8fafc;
}

.event-list button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.event-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #d9e2ec;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}

.event-list-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list-sub {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tabs {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.admin-tabs button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  font-weight: 900;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  border-color: #cdd8e2;
  background: #f5f8fa;
  color: var(--surface-strong);
}

html[data-theme="dark"] .admin-tabs button:hover,
html[data-theme="dark"] .admin-tabs button.active {
  border-color: #5a3436;
  background: #302526;
  color: #f8fafc;
}

.admin-tabs button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.admin-tabs svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.content-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.admin-tab-panel[hidden],
.sidebar-section[hidden] {
  display: none !important;
}

.page-heading {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(217, 225, 232, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

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

.kicker {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-heading h1 {
  max-width: 760px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

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

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

.stat {
  display: grid;
  align-content: space-between;
  min-height: 126px;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-icon.green {
  background: #eaf8ef;
  color: var(--green);
}

.stat-icon.blue {
  background: #edf4ff;
  color: var(--blue);
}

.stat-icon.amber {
  background: #fff5e5;
  color: var(--amber);
}

.stat-icon.violet {
  background: #f2edff;
  color: var(--violet);
}

.stat-value {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.stat-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.94);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.panel-title {
  display: grid;
  gap: 4px;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.panel-body {
  padding: 20px;
}

.auth-page {
  display: grid;
  place-items: start center;
}

.auth-panel {
  width: min(520px, 100%);
}

.auth-message {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 13px;
}

.auth-message {
  border: 1px solid #f3d6a3;
  background: #fff8eb;
  color: var(--amber);
  font-weight: 800;
}

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

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.field.disabled input,
.field.disabled select {
  opacity: 0.62;
}

label,
.label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d3dd;
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebdcc;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--field-bg);
  box-shadow: 0 0 0 3px rgba(14, 124, 117, 0.14);
}

input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.participant-wizard {
  gap: 18px;
}

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

.wizard-progress.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.step-pill strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--field-bg);
  color: var(--muted-strong);
  font-size: 12px;
}

.step-pill.active {
  border-color: color-mix(in srgb, var(--primary) 42%, white);
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary-dark);
}

.step-pill.active strong {
  background: var(--primary);
  color: #fff;
}

.form-step {
  display: grid;
  gap: 14px;
}

.form-step[hidden] {
  display: none;
}

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

.guest-step-copy {
  display: grid;
  gap: 4px;
}

.guest-step-copy h3,
.guest-step-copy p {
  margin: 0;
}

.guest-step-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.choice-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.choice-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 42%, white);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.choice-card input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}

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

.choice-card strong {
  font-size: 14px;
}

.choice-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.field-error {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.review-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.review-box div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-box strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-fields {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

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

.custom-field-editor {
  display: grid;
  gap: 10px;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 108px 124px 40px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.custom-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 140px 100px 142px 40px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.participant-field-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.participant-field-option {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.participant-field-option > span {
  display: grid;
  gap: 3px;
}

.participant-field-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.city-required-option {
  margin-top: 4px;
}

.custom-field-row .checkbox-label,
.custom-field-row .btn.icon {
  align-self: end;
}

.custom-checkbox-field {
  justify-content: start;
}

.custom-answer-list {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.custom-answer-list strong {
  color: var(--muted-strong);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-label input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--primary);
}

.preview-strip {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.preview-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--cover-bg);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
}

.preview-meta {
  display: grid;
  gap: 8px;
}

.preview-title {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d4dee7;
  border-radius: var(--radius);
  background: var(--table-head);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.badge.success {
  border-color: #badfcb;
  background: #effaf3;
  color: var(--green);
}

.badge.warn {
  border-color: #f3d6a3;
  background: #fff8eb;
  color: var(--amber);
}

.badge.danger {
  border-color: #ffd7d1;
  background: #fff5f3;
  color: var(--rose);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 170px;
  gap: 12px;
}

.file-tool {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.file-tool h3,
.file-tool p {
  margin: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.settings-preview,
.settings-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.brand-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--surface-strong);
  font-weight: 900;
}

.brand-preview.brand-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.logo-preview img {
  max-width: min(320px, 100%);
  max-height: 96px;
  object-fit: contain;
}

.logo-preview-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.logo-preview-empty svg {
  width: 20px;
  height: 20px;
}

.theme-options {
  display: grid;
  gap: 10px;
}

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

.position-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  cursor: pointer;
}

.position-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.position-option svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
}

.position-option.active,
.position-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.position-option strong,
.position-option small {
  display: block;
}

.position-option strong {
  font-size: 13px;
  font-weight: 900;
}

.position-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.theme-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  cursor: pointer;
}

.theme-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-option.active,
.theme-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option strong {
  font-size: 13px;
  font-weight: 900;
}

.theme-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.theme-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.44);
}

.theme-swatch.light {
  background: linear-gradient(135deg, #ffffff 0 45%, #0e7c75 45% 70%, #172033 70%);
}

.theme-swatch.dark {
  background: linear-gradient(135deg, #171615 0 48%, #e1262c 48% 72%, #f5f3f0 72%);
}

.theme-swatch.forest {
  background: linear-gradient(135deg, #fffffb 0 45%, #1f7a4d 45% 72%, #10251c 72%);
}

.update-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
}

.update-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.update-status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.update-status.success {
  border-color: #badfcb;
  background: #effaf3;
  color: var(--green);
}

.update-status.danger {
  border-color: #ffd7d1;
  background: #fff5f3;
  color: var(--rose);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  background: var(--table-head);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: var(--panel-soft);
}

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

.participant-name {
  font-weight: 900;
  color: var(--surface-strong);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.public-page {
  min-height: 100vh;
  padding-bottom: var(--rsvp-space, 92px);
  background: var(--bg);
}

.public-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 0;
}

.cover-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cover-bg);
  box-shadow: var(--shadow);
}

.cover-frame img {
  width: 100%;
  aspect-ratio: 16 / 6.5;
  object-fit: cover;
}

.public-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  width: min(980px, calc(100% - 32px));
  margin: 22px auto 0;
  align-items: start;
}

.event-main,
.event-side,
.ticket-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.event-main {
  padding: 24px;
}

.event-main h1 {
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.08;
}

.participant-results {
  min-width: 0;
}

.admin-content,
.admin-tab-panel {
  min-width: 0;
}

.mobile-event-switcher,
.mobile-edit-toggle {
  display: none;
}

.validator-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.modal.scanner-modal {
  width: min(560px, 100%);
}

.scanner-content {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.scanner-header h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.scanner-stage {
  position: relative;
  height: min(44dvh, 360px);
  min-height: 180px;
  overflow: hidden;
  border-radius: 8px;
  background: #090909;
}

.scanner-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-reticle {
  position: absolute;
  width: min(65%, 250px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1000px #0004;
}

.scanner-live-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #0009;
  color: #fff;
  font-size: 12px;
}

.scanner-live-label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.scanner-live-label[hidden] { display: none; }

.scanner-feedback {
  display: grid;
  gap: 5px;
  padding: 14px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}

.scanner-feedback strong { font-size: 20px; }
.scanner-feedback span { font-size: 14px; }
.scanner-feedback[data-status="success"] { background: #123d2b; border-color: #2cb775; color: #e2ffef; }
.scanner-feedback[data-status="duplicate"] { background: #40321a; border-color: #bb912f; color: #fff1cd; }
.scanner-feedback[data-status="error"] { background: #401e21; border-color: #d15760; color: #ffe9eb; }
.scanner-stage[data-scan-state="success"] .scanner-reticle { border-color: #4ade80; }
.scanner-stage[data-scan-state="error"] .scanner-reticle { border-color: #fb7185; }

.scanner-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scanner-toolbar > div { flex: 1; display: grid; gap: 2px; }
.scanner-toolbar strong { font-size: 24px; }
.scanner-toolbar span { font-size: 12px; color: var(--muted); }
.scanner-toolbar .btn span { color: inherit; font-size: 14px; }
.scanner-toolbar .btn[hidden] { display: none; }
.scanner-history { list-style: none; margin: 0; padding: 0; }
.scanner-history li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.scanner-history li > div { display: grid; gap: 3px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scanner-history li > div > span { color: var(--muted); }
.scan-history-mark { color: #35ba7d; }
.scan-history-mark.duplicate { color: #cfa748; }

.users-panel,
.users-content {
  min-width: 0;
}

.users-section {
  padding: 24px;
}

.users-section + .users-section {
  border-top: 1px solid var(--line);
}

.users-section h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.users-section td {
  overflow-wrap: anywhere;
}

.event-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.event-title-row h1 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.event-free-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 6px;
  background: #15803d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

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

.meta-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.meta-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--primary);
}

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

.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 3px;
  font-weight: 900;
}

.meta-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.meta-item .btn.small {
  margin-top: 10px;
}

.event-description {
  color: var(--description);
  line-height: 1.65;
}

.event-description p {
  margin: 0 0 14px;
}

.event-description strong {
  color: var(--surface-strong);
}

.event-side {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.side-block {
  display: grid;
  gap: 12px;
}

.organizer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.organizer img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--cover-bg);
}

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

.session-pill {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.session-pill strong {
  font-size: 13px;
}

.session-pill span {
  color: var(--muted);
  font-size: 12px;
}

.sticky-cta {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  z-index: 18;
  border-top: 1px solid var(--line);
  background: var(--sticky-bg);
  box-shadow: 0 -12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(980px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.sticky-cta-title {
  font-weight: 900;
}

.sticky-cta-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.58);
}

.modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 20px;
}

.ticket-page {
  min-height: 100vh;
  padding: 32px 16px 52px;
  background: var(--bg);
}

.ticket-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.ticket-sheet {
  overflow: hidden;
}

.ticket-cover {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  background: var(--cover-bg);
}

.ticket-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  padding: 24px;
}

.ticket-details {
  display: grid;
  align-content: start;
  gap: 18px;
}

.ticket-code {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 900;
}

.qr-box {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 270px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  min-width: 0;
}

.qr-box canvas,
.qr-box img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.qr-target {
  width: min(100%, 284px);
  aspect-ratio: 1;
  padding: 32px;
  background: #fff;
  color: #000;
}

.delete-confirmation {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--rose) 24%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--rose) 8%, var(--elevated-bg));
  color: var(--muted-strong);
}

.delete-confirmation strong {
  color: var(--surface-strong);
  font-weight: 750;
}

.delete-confirmation code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: grid;
  gap: 4px;
  min-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid #badfcb;
  border-radius: var(--radius);
  background: #effaf3;
  color: #14532d;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.error {
  border-color: #ffd7d1;
  background: #fff5f3;
  color: var(--rose);
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Premium interface layer */
html {
  background: var(--body-bottom);
  text-rendering: geometricPrecision;
}

body {
  background:
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 46%, var(--body-bottom) 100%);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(24px);
}

.topbar-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 68px;
}

.brand {
  font-weight: 700;
}

.brand-mark,
.admin-profile-mark,
.event-thumb,
.meta-icon,
.organizer img {
  border-radius: var(--radius);
}

.brand-mark {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 28%, transparent);
}

.brand-logo {
  height: 34px;
  max-width: 210px;
}

.nav-actions,
.row-actions,
.inline-actions,
.button-row {
  gap: 10px;
}

.btn {
  --btn-bg: var(--control-bg);
  --btn-border: var(--control-border);
  --btn-text: var(--text);
  min-height: 42px;
  padding: 0 16px;
  border-color: var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  box-shadow: var(--control-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  border-color: color-mix(in srgb, var(--primary) 26%, var(--btn-border));
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  --btn-bg: linear-gradient(180deg, #188cff 0%, #007aff 100%);
  --btn-border: rgba(0, 122, 255, 0.72);
  --btn-text: #fff;
  box-shadow: 0 14px 32px rgba(0, 122, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn.dark {
  --btn-bg: linear-gradient(180deg, #2c2c2e 0%, #1d1d1f 100%);
  --btn-border: rgba(29, 29, 31, 0.72);
  --btn-text: #fff;
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: var(--muted-strong);
  box-shadow: none;
}

.btn.ghost:hover {
  --btn-bg: var(--hover-bg);
  --btn-border: var(--line);
  --btn-text: var(--text);
  box-shadow: none;
}

.btn.danger {
  --btn-bg: color-mix(in srgb, var(--rose) 8%, var(--elevated-bg));
  --btn-border: color-mix(in srgb, var(--rose) 24%, var(--line));
  --btn-text: var(--rose);
}

.btn[disabled] {
  opacity: 0.62;
}

html[data-theme="dark"] .btn {
  --btn-bg: var(--control-bg);
  --btn-border: var(--control-border);
  --btn-text: var(--text);
  box-shadow: var(--control-shadow);
}

html[data-theme="dark"] .btn.primary {
  --btn-bg: linear-gradient(180deg, #f04449 0%, #c91f26 100%);
  --btn-border: rgba(240, 68, 73, 0.76);
  --btn-text: #fff;
}

html[data-theme="dark"] .btn.dark {
  --btn-bg: linear-gradient(180deg, #f5f5f7 0%, #dfe4ea 100%);
  --btn-border: rgba(245, 245, 247, 0.7);
  --btn-text: #151413;
}

html[data-theme="dark"] .btn.danger {
  --btn-bg: rgba(251, 113, 133, 0.13);
  --btn-border: rgba(251, 113, 133, 0.28);
  --btn-text: #fecdd3;
}

html[data-theme="dark"] .btn.whatsapp {
  --btn-bg: #351b1b;
  --btn-border: #87343a;
  --btn-text: #fff;
}

.page {
  width: min(1240px, calc(100% - 40px));
  padding: 32px 0 64px;
}

.admin-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.sidebar {
  top: 88px;
  gap: 14px;
}

.admin-profile,
.sidebar-section,
.page-heading,
.panel,
.event-main,
.event-side,
.ticket-sheet,
.modal,
.table-wrap,
.file-tool,
.preview-strip,
.review-box,
.choice-card,
.session-row,
.brand-preview,
.logo-preview,
.update-status,
.qr-box {
  border-color: var(--line);
  background: var(--glass-bg);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
  backdrop-filter: saturate(160%) blur(18px);
}

.admin-profile {
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--admin-profile-bg) 88%, var(--primary)) 0%, var(--admin-profile-bg) 100%);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-profile strong {
  font-weight: 750;
}

.admin-profile span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.admin-profile-mark {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sidebar-section {
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 16px;
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
}

.sidebar-title,
.stat-label,
label,
.label,
th,
.review-box span,
.meta-label {
  letter-spacing: 0;
}

.sidebar-title,
.stat-label,
.meta-label,
th {
  font-weight: 800;
}

.event-list,
.admin-tabs {
  gap: 6px;
  padding: 8px;
}

.event-list button,
.admin-tabs button {
  border-color: transparent;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-weight: 700;
}

.event-list button:hover,
.event-list button.active,
.admin-tabs button:hover,
.admin-tabs button.active,
html[data-theme="dark"] .event-list button:hover,
html[data-theme="dark"] .event-list button.active,
html[data-theme="dark"] .admin-tabs button:hover,
html[data-theme="dark"] .admin-tabs button.active {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--text);
}

.event-list button.active,
.admin-tabs button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.event-thumb {
  background: var(--cover-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.event-list-title,
.participant-name,
.preview-title,
.sticky-cta-title,
.meta-value {
  font-weight: 750;
}

.content-stack {
  gap: 24px;
}

.page-heading {
  gap: 20px;
  padding: 26px;
}

.page-heading-main {
  align-items: center;
}

.kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--surface-strong);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
}

h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.02;
}

.page-heading h1 {
  font-size: clamp(30px, 3vw, 42px);
}

h2 {
  font-size: 23px;
}

.stat-grid {
  gap: 16px;
}

.stat {
  min-height: 132px;
  padding: 18px;
  border-color: var(--line);
  background: var(--elevated-bg);
  box-shadow: var(--shadow-ring);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--active-border);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.stat-icon {
  width: 36px;
  height: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-icon.green {
  background: color-mix(in srgb, var(--green) 12%, var(--elevated-bg));
}

.stat-icon.blue {
  background: color-mix(in srgb, var(--blue) 12%, var(--elevated-bg));
}

.stat-icon.amber {
  background: color-mix(in srgb, var(--amber) 13%, var(--elevated-bg));
}

.stat-icon.violet {
  background: color-mix(in srgb, var(--violet) 13%, var(--elevated-bg));
}

.stat-value {
  font-size: 36px;
  font-weight: 760;
}

.panel-header {
  padding: 20px 22px;
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
}

.panel-body {
  padding: 22px;
}

.auth-page {
  min-height: calc(100vh - 68px);
  align-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.auth-panel {
  width: min(540px, 100%);
}

.auth-panel .panel-header {
  padding: 30px 30px 22px;
}

.auth-panel .panel-body {
  padding: 24px 30px 30px;
}

.auth-panel h1 {
  font-size: clamp(38px, 5.4vw, 54px);
}

.auth-message {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  background: color-mix(in srgb, var(--amber) 10%, var(--elevated-bg));
  color: var(--amber);
}

.form-grid,
.settings-grid,
.update-grid,
.filters {
  gap: 16px;
}

.field {
  gap: 7px;
}

label,
.label {
  color: var(--muted-strong);
  font-weight: 750;
}

input,
select,
textarea {
  min-height: 46px;
  border-color: var(--control-border);
  background: var(--field-bg);
  box-shadow: var(--control-shadow);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 64%, var(--control-border));
  box-shadow: 0 0 0 4px var(--focus-ring), var(--control-shadow);
}

.step-pill,
.badge,
.ticket-code,
.session-pill,
.theme-option,
.position-option {
  border-color: var(--line);
  background: var(--elevated-bg);
}

.step-pill.active,
.choice-card:has(input:checked),
.theme-option.active,
.theme-option:has(input:checked),
.position-option.active,
.position-option:has(input:checked) {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--primary-dark);
}

.step-pill.active strong {
  background: var(--primary);
}

.preview-strip {
  padding: 16px;
  background: var(--elevated-bg);
}

.preview-cover,
.cover-frame,
.ticket-cover {
  background: var(--cover-bg);
}

.preview-cover,
.cover-frame {
  box-shadow: var(--shadow-soft);
}

.badge.success,
.update-status.success {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--elevated-bg));
}

.badge.warn,
.auth-message {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  background: color-mix(in srgb, var(--amber) 10%, var(--elevated-bg));
}

.badge.danger,
.toast.error,
.update-status.danger {
  border-color: color-mix(in srgb, var(--rose) 28%, var(--line));
  background: color-mix(in srgb, var(--rose) 10%, var(--elevated-bg));
}

.table-wrap {
  background: var(--elevated-bg);
}

th {
  background: var(--table-head);
}

tbody tr:hover {
  background: var(--hover-bg);
}

.empty-state {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--elevated-bg) 78%, transparent);
}

.public-page,
.ticket-page {
  background:
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 48%, var(--body-bottom) 100%);
}

html[data-theme="dark"] .public-page,
html[data-theme="dark"] .ticket-page {
  background:
    radial-gradient(ellipse 760px 420px at 50% 0, rgba(191, 31, 38, 0.14), transparent 72%),
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 48%, var(--body-bottom) 100%);
}

.public-hero {
  width: min(1180px, calc(100% - 40px));
  padding-top: 24px;
}

.cover-frame {
  border-color: var(--line);
  aspect-ratio: 16 / 5.2;
}

.cover-frame img {
  height: 100%;
  aspect-ratio: auto;
}

.public-content {
  gap: 24px;
  width: min(1040px, calc(100% - 40px));
  margin-top: 26px;
}

.event-main {
  padding: 28px;
}

.event-main h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.event-side {
  top: 88px;
  padding: 20px;
}

.event-meta-grid {
  gap: 16px;
  margin: 26px 0;
  padding: 22px 0;
}

.meta-icon {
  background: var(--active-bg);
  color: var(--primary);
}

.event-description {
  color: var(--description);
}

.session-pill {
  background: var(--elevated-bg);
}

.sticky-cta {
  border-top-color: var(--line);
  background: var(--sticky-bg);
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.1);
  backdrop-filter: saturate(180%) blur(22px);
}

.modal-backdrop {
  background: rgba(10, 11, 14, 0.54);
  backdrop-filter: blur(8px);
}

.modal-header,
.modal-body,
.ticket-content {
  padding: 24px;
}

.ticket-page {
  padding-top: 40px;
}

.ticket-code {
  font-weight: 750;
}

.qr-box {
  background: var(--elevated-bg);
}

.toast {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--elevated-bg));
  color: var(--green);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .admin-layout,
  .public-content,
  .ticket-content {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .event-side {
    position: static;
  }

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

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

  .settings-grid,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .cover-frame {
    aspect-ratio: 16 / 8.5;
  }
}

@media (max-width: 720px) {
  .toast.admin-toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); right: 12px; min-width: 0; max-width: calc(100vw - 24px); overflow-wrap: anywhere; }
  .admin-page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .admin-page .admin-layout { gap: 12px; }
  .admin-page .admin-profile,
  .admin-page .events-section { display: none; }
  .admin-page .admin-menu-section { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--surface-soft); padding: 5px 8px calc(5px + env(safe-area-inset-bottom, 0px)); }
  .admin-menu-section .sidebar-header { display: none; }
  .admin-menu-section .admin-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 0; }
  .admin-menu-section .admin-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 62px; padding: 7px 2px; border-radius: 6px; }
  .admin-menu-section .admin-tabs button span { font-size: 10px; line-height: 14px; white-space: normal; text-align: center; }
  .admin-menu-section .admin-tabs button svg { width: 20px; height: 20px; }
  .mobile-event-switcher { display: flex; align-items: flex-end; gap: 8px; }
  .mobile-event-switcher .field { flex: 1; min-width: 0; }
  .mobile-event-switcher .btn { width: 46px; height: 46px; }
  .mobile-edit-toggle { display: inline-flex; }
  .event-editor-panel { order: 3; }
  .event-editor-panel:not(.is-editing) > .panel-body { display: none; }
  .participants-panel { order: 2; }
  .admin-page .page-heading { order: 1; padding: 16px; }
  .admin-page .page-heading h1 { font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
  .admin-page .page-heading-main .row-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; }
  .admin-page .page-heading .row-actions .scan-entry-btn span { display: inline; white-space: normal; }
  .admin-page .scan-entry-btn { min-height: 46px; padding: 10px 8px; font-size: 12px; white-space: normal; }
  .admin-page .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-page .stat { padding: 12px; min-width: 0; min-height: 112px; }
  .admin-page .stat-icon { display: none; }
  .admin-page .stat-value { font-size: 27px; }
  .admin-page .stat-label { font-size: 11px; }
  .admin-page .stat-note { font-size: 11px; }
  .admin-page .panel-body,
  .admin-page .panel-header,
  .admin-page .users-section { padding: 16px; }
  .admin-page .participants-panel > .panel-header { display: flex; flex-direction: row; align-items: center; gap: 10px; }
  .admin-page .users-panel > .panel-header { flex-direction: row; align-items: center; }
  .admin-page .panel-title { min-width: 0; }
  .admin-page .panel-title p { overflow-wrap: anywhere; }
  .users-panel table { min-width: 0; }
  .users-panel th:nth-child(2),
  .users-panel td:nth-child(2) { display: none; }
  .admin-page .participants-panel .panel-title { min-width: 0; }
  .admin-page .participants-panel .panel-title h2 { font-size: 20px; }
  .admin-page .participants-panel .panel-title p { font-size: 11px; }
  .admin-page .participants-panel .row-actions { flex-wrap: nowrap; }
  .admin-page .row-actions .btn { min-width: 42px; min-height: 44px; }
  .participants-panel .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .participants-panel .filters input { grid-column: 1 / -1; }
  .validator-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .validator-controls input { grid-column: 1 / -1; }
  .validator-controls .btn { min-width: 0; min-height: 46px; padding: 10px 8px; font-size: 12px; }
  .participant-results .table-wrap { border: 0; border-radius: 0; }
  .participant-results table,
  .participant-results tbody { display: block; width: 100%; min-width: 0; }
  .participant-results thead { display: none; }
  .participant-results tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .participant-results td { display: block; min-width: 0; padding: 6px 0; border: 0; overflow-wrap: anywhere; white-space: normal; }
  .participant-results td:first-child,
  .participant-results td:last-child { grid-column: 1 / -1; }
  .participant-results td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font: 600 10px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
  .participant-results .inline-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
  .participant-results .inline-actions .btn { min-height: 44px; width: 100%; }
  .scanner-modal { width: 100%; max-height: calc(100dvh - 16px); margin: 0; }
  .scanner-modal .modal-header { padding: 14px 16px; }
  .scanner-content { padding: 14px; gap: 12px; }
  .scanner-stage { height: min(42dvh, 330px); }
  .scanner-feedback strong { font-size: 18px; }
  .topbar-inner,
  .page,
  .public-hero,
  .public-content,
  .sticky-cta-inner {
    width: min(100% - 24px, 1180px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  .topbar-inner.brand-center {
    grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
    gap: 8px;
  }

  .topbar-inner.brand-center .brand-logo {
    max-width: min(144px, 42vw);
  }

  .nav-actions .btn span,
  .row-actions .btn span {
    display: none;
  }

  .page {
    padding-top: 18px;
  }

  .page-heading-main,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .form-grid.three,
  .preview-strip,
  .event-meta-grid,
  .wizard-progress,
  .guest-choice,
  .review-box {
    grid-template-columns: 1fr;
  }

  .session-row,
  .custom-field-row,
  .participant-field-options {
    grid-template-columns: 1fr;
  }

  .session-row .btn.icon,
  .custom-field-row .btn.icon {
    width: 100%;
  }

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

  .event-main,
  .ticket-content {
    padding: 18px;
  }

  .sticky-cta {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .sticky-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 10px 0;
  }

  .sticky-cta-inner > div {
    min-width: 0;
  }

  .sticky-cta-title {
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sticky-cta-sub {
    display: none;
  }

  .sticky-cta .btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .public-page {
    padding-bottom: var(--rsvp-space, calc(128px + env(safe-area-inset-bottom, 0px)));
  }

  .cover-frame img,
  .ticket-cover {
    aspect-ratio: 4 / 3;
  }
}

.brand-logo.brand-logo-ge {
  padding: 3px 7px;
  border-radius: 6px;
  background: #111110;
}

.public-page .btn.rsvp-confirm,
.sticky-cta .btn.rsvp-confirm,
.modal .btn.rsvp-confirm {
  --btn-bg: linear-gradient(135deg, #1f9c66, #117447);
  --btn-border: #32b67c;
  --btn-text: #fff;
  box-shadow: 0 14px 32px rgba(17, 116, 71, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .public-page .btn.rsvp-confirm,
html[data-theme="dark"] .sticky-cta .btn.rsvp-confirm,
html[data-theme="dark"] .modal .btn.rsvp-confirm {
  --btn-bg: linear-gradient(135deg, #20a36a, #117447);
  --btn-border: #41c889;
  --btn-text: #fff;
}

.cover-frame {
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  background: #111110;
}

.cover-frame picture {
  display: block;
  max-width: 100%;
}

.cover-frame picture img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 760px);
  aspect-ratio: auto;
  margin: 0 auto;
  object-fit: contain;
}

.lineup-artwork {
  max-width: 560px;
  margin: 28px auto 0;
}

.lineup-artwork img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.organizer img[src*="logo-ge.webp"] {
  padding: 5px;
  background: #111110;
  object-fit: contain;
}

/* ===== Leitor de QR: check no centro da tela e busca manual ===== */
.scan-flash {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}

.scan-flash svg {
  width: min(46vmin, 220px);
  height: min(46vmin, 220px);
  overflow: visible;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
}

.scan-flash-disc { fill: #22c55e; }
.scan-flash[data-kind="duplicate"] .scan-flash-disc { fill: #f59e0b; }
.scan-flash[data-kind="error"] .scan-flash-disc { fill: #ef4444; }

.scan-flash-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.scan-flash.show { animation: scan-flash-pop 620ms ease-out both; }
.scan-flash.show .scan-flash-mark { animation: scan-flash-draw 240ms ease-out both; }

@keyframes scan-flash-pop {
  0%   { opacity: 0; transform: scale(0.55); }
  16%  { opacity: 1; transform: scale(1.06); }
  28%  { transform: scale(1); }
  72%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.94); }
}

@keyframes scan-flash-draw {
  from { stroke-dashoffset: 60; }
  to   { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-flash.show { animation: scan-flash-fade 620ms linear both; }
  .scan-flash.show .scan-flash-mark { animation: none; }
  @keyframes scan-flash-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
}

.scanner-manual-toggle {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.scanner-manual-toggle.active { border-color: var(--primary); }

.scanner-manual {
  display: grid;
  gap: 10px;
}

.scanner-manual[hidden] { display: none; }

.scanner-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--field-bg, var(--surface-soft));
  color: var(--muted);
}

.scanner-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18); }

.scanner-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* evita o zoom automático no iPhone */
}

.scanner-search input[type="search"]:focus { border: 0; outline: 0; box-shadow: none; }

.scanner-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scanner-results:empty { display: none; }

.scanner-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.scanner-result:hover, .scanner-result:focus-visible { border-color: var(--primary); outline: 0; }
.scanner-result:active { transform: scale(0.99); }
.scanner-result-who { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.scanner-result-who strong { font-size: 16px; }
.scanner-result-who small { color: var(--muted); font-size: 12px; }
.scanner-result-who small:empty { display: none; }

.scanner-result-go {
  flex: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: #15834f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.scanner-result.entered .scanner-result-go { background: transparent; border: 1px solid #bb912f; color: #bb912f; }
.scanner-search-hint { margin: 0; color: var(--muted); font-size: 13px; }
.scanner-search-hint:empty { display: none; }
