@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --teal: #009ba3;
  --teal-dark: #007980;
  --teal-ink: #005b60;
  --white: #ffffff;
  --black: #000000;
  --ink: #132122;
  --muted: #637273;
  --pale: #f3f6f7;
  --line: #dce5e6;
  --danger: #b42318;
  --warning: #a15c00;
  --success: #087443;
  --shadow: 0 22px 60px rgba(14, 53, 56, 0.12);
  --radius: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--pale);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea { font: inherit; }
button,
a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(0, 155, 163, .35); outline-offset: 3px; }

.loading-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  text-align: center;
}
.loading-screen p { color: var(--muted); font-size: .8rem; font-weight: 600; }
.loading-line {
  width: 180px;
  height: 3px;
  margin: 22px auto 12px;
  overflow: hidden;
  background: var(--line);
}
.loading-line span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--teal);
  animation: loading 1.2s ease-in-out infinite;
}
@keyframes loading { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .24em;
}
.brand-mark strong {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark--loading { margin: auto; font-size: 1.25rem; }

.public-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(0, 155, 163, .12), transparent 28rem),
    var(--pale);
}
.route-line {
  position: absolute;
  z-index: 0;
  top: 0;
  left: clamp(20px, 4vw, 64px);
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--teal), rgba(0,155,163,.08));
}
.route-line::before,
.route-line::after {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  background: var(--white);
  content: "";
  transform: translateX(-50%);
}
.route-line::before { top: 110px; }
.route-line::after { bottom: 90px; }
.public-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 25px 0;
}
.public-header a { color: var(--muted); font-size: .75rem; font-weight: 700; text-decoration: none; }
.public-header a:hover { color: var(--teal); }
.registration-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, .72fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 96px);
  margin: auto;
  padding: 40px 0 80px;
}
.event-story { padding-left: clamp(20px, 4vw, 52px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--teal);
  content: "";
}
.event-route-name {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(.88rem, 1.3vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .22em;
}
.event-route-name strong {
  color: var(--teal);
  font-weight: 800;
  letter-spacing: -.02em;
}
.event-route-name i {
  margin-left: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: .52rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-story h1 {
  max-width: 630px;
  margin: 0;
  color: var(--black);
  font-size: clamp(2.65rem, 5.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .94;
}
.event-lead {
  max-width: 590px;
  margin: 23px 0 25px;
  color: #425051;
  font-size: clamp(.84rem, 1.25vw, 1rem);
  line-height: 1.68;
}
.event-bottom {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 21px;
  align-items: stretch;
  max-width: 590px;
}
.event-cover {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 15px 34px rgba(18, 53, 56, .14);
  transform: rotate(-1.2deg);
}
.event-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.event-cover figcaption {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  padding: 7px 6px;
  border-radius: 7px;
  color: var(--white);
  background: rgba(0, 0, 0, .78);
  font-size: .46rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
}
.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  max-width: none;
  margin: 0;
}
.event-facts div {
  padding: 13px 0;
  border-top: 1px solid #ccd8d9;
}
.event-facts dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.event-facts dd { margin: 0; font-size: .72rem; font-weight: 650; line-height: 1.48; }
.registration-card {
  position: relative;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid rgba(0, 155, 163, .15);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.card-step {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--teal);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.registration-card h2 {
  max-width: 370px;
  margin: 4px 0 10px;
  color: var(--black);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -.04em;
  line-height: 1.08;
}
.card-intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  color: #354344;
  font-size: .7rem;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfdadb;
  border-radius: 11px;
  color: var(--black);
  background: var(--white);
  outline: 0;
  transition: border .18s, box-shadow .18s;
}
.field textarea { min-height: 90px; padding-top: 13px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,155,163,.1);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 1em; margin: 0; color: var(--danger); font-size: .65rem; font-weight: 600; }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 2px;
}
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.consent-row label { color: #445253; font-size: .67rem; line-height: 1.55; }
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  font-weight: 750;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.primary-button { color: var(--white); background: var(--teal); box-shadow: 0 10px 24px rgba(0,155,163,.2); }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.secondary-button:hover { border-color: var(--teal); color: var(--teal-dark); }
.danger-button { color: var(--danger); background: #fff1f0; }
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #748283;
  font-size: .61rem;
  line-height: 1.4;
}
.form-note::before { content: "●"; color: var(--success); font-size: .7rem; }
.form-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--danger);
  background: #fff1f0;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.45;
}
.closed-note {
  padding: 20px;
  border-left: 3px solid var(--teal);
  color: #354344;
  background: var(--pale);
  line-height: 1.6;
}
.confirmation { text-align: center; }
.confirmation-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-size: 2rem;
  box-shadow: 0 0 0 10px rgba(0,155,163,.08);
}
.confirmation h2 { margin-inline: auto; }
.confirmation-name { margin: 16px 0 4px; color: var(--black); font-size: 1.15rem; font-weight: 800; }
.confirmation-activity { margin: 0 0 20px; color: var(--teal-dark); font-size: .8rem; font-weight: 700; }
.confirmation-message { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.confirmation-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.duplicate-note {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #cce7e8;
  border-radius: 10px;
  color: var(--teal-ink);
  background: #eefafb;
  font-size: .67rem;
  line-height: 1.55;
  text-align: left;
}

.verify-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle at 50% 0, rgba(0,155,163,.15), transparent 32rem), var(--pale);
}
.verify-card {
  width: min(540px, 100%);
  padding: clamp(28px, 6vw, 54px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.verify-seal {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 30px auto 25px;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 1.8rem;
}
.verify-seal.is-invalid { border-color: var(--danger); color: var(--danger); }
.verify-card h1 { margin: 0 0 10px; color: var(--black); font-size: 1.85rem; letter-spacing: -.04em; }
.verify-card > p { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.verify-data { margin: 28px 0; text-align: left; }
.verify-data div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.verify-data dt { color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.verify-data dd { margin: 0; font-size: .78rem; font-weight: 650; }

/* Admin */
.admin-body { min-height: 100vh; background: #edf2f2; }
.admin-login {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
}
.admin-login__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(38px, 7vw, 86px);
  color: var(--white);
  background: #061e20;
}
.admin-login__brand::after {
  position: absolute;
  right: -18%;
  bottom: -12%;
  width: 70%;
  aspect-ratio: 1;
  border: 2px solid var(--teal);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(0,155,163,.08), 0 0 0 140px rgba(0,155,163,.04);
}
.admin-login__brand .brand-mark { color: var(--white); }
.admin-login__brand h1 { position: relative; z-index: 1; max-width: 580px; margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -.065em; line-height: .95; }
.admin-login__brand p { position: relative; z-index: 1; max-width: 430px; color: #afc4c5; font-size: .85rem; line-height: 1.7; }
.admin-login__form { display: grid; place-items: center; padding: 30px; }
.auth-card { width: min(420px, 100%); }
.auth-card .eyebrow { margin-bottom: 28px; }
.auth-card h2 { margin: 0 0 9px; font-size: 2rem; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 30px; color: var(--muted); font-size: .78rem; line-height: 1.6; }

.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 18px 20px;
  color: #d8e4e4;
  background: #071f21;
}
.admin-sidebar .brand-mark { margin: 6px 12px 38px; color: var(--white); }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 9px;
  color: #9eb5b6;
  background: transparent;
  text-align: left;
  font-size: .72rem;
  font-weight: 650;
}
.admin-nav button::before { width: 5px; height: 5px; border-radius: 50%; background: #506c6e; content: ""; }
.admin-nav button:hover,
.admin-nav button.is-active { color: var(--white); background: rgba(0,155,163,.15); }
.admin-nav button.is-active::before { background: #1fd3dc; box-shadow: 0 0 0 4px rgba(31,211,220,.11); }
.sidebar-user { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user strong { display: block; color: var(--white); font-size: .7rem; }
.sidebar-user span { display: block; margin: 4px 0 12px; color: #789294; font-size: .6rem; }
.sidebar-user button { padding: 0; border: 0; color: #a9babb; background: none; font-size: .65rem; }
.admin-main { min-width: 0; padding: 34px clamp(22px, 4vw, 56px) 60px; }
.admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-topbar h1 { margin: 0; color: var(--black); font-size: clamp(1.65rem, 3vw, 2.6rem); letter-spacing: -.045em; }
.admin-topbar p { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.admin-topbar select { min-width: 210px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font-size: .7rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { padding: 22px; border: 1px solid #dce5e5; border-radius: 14px; background: var(--white); }
.metric-card span { color: var(--muted); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 16px; color: var(--black); font-size: 2rem; letter-spacing: -.05em; }
.metric-card.is-accent { color: var(--white); background: var(--teal); border-color: var(--teal); }
.metric-card.is-accent span,
.metric-card.is-accent strong { color: var(--white); }
.admin-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.panel { overflow: hidden; border: 1px solid #dce5e5; border-radius: 14px; background: var(--white); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 21px; border-bottom: 1px solid #e4ebeb; }
.panel-header h2 { margin: 0; color: var(--black); font-size: .9rem; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: .62rem; }
.panel-body { padding: 20px; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); }
.funnel div { position: relative; padding: 20px 12px; text-align: center; }
.funnel div:not(:last-child)::after { position: absolute; top: 50%; right: -5px; color: #9badad; content: "→"; transform: translateY(-50%); }
.funnel strong { display: block; color: var(--black); font-size: 1.5rem; }
.funnel span { color: var(--muted); font-size: .58rem; font-weight: 650; }
.area-bars { display: grid; gap: 13px; }
.area-bar__meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: .62rem; }
.area-bar__track { height: 6px; overflow: hidden; border-radius: 20px; background: var(--pale); }
.area-bar__track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.recent-list { display: grid; }
.recent-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border: 0; }
.recent-item strong { display: block; font-size: .68rem; }
.recent-item span { color: var(--muted); font-size: .58rem; }

.certificate-flow {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #cfe0e0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(18,54,56,.07);
}
.certificate-flow > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 16px;
  color: var(--white);
  background: #092d30;
}
.certificate-flow > header h2 { margin: 4px 0 0; font-size: 1.05rem; letter-spacing: -.025em; }
.certificate-flow > header p { max-width: 500px; margin: 0; color: #b9d0d1; text-align: right; font-size: .62rem; line-height: 1.55; }
.flow-kicker { color: #42d1d8; font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.certificate-flow__steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr .45fr;
  gap: 1px;
  background: #dfe8e8;
}
.certificate-step {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 17px 18px;
  background: var(--white);
}
.certificate-step > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #2c4041;
  font-size: .64rem;
  font-weight: 800;
}
.certificate-step > span b {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-size: .56rem;
}
.certificate-step select {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid #cfdada;
  border-radius: 8px;
  color: #203334;
  background: #fbfcfc;
  font-size: .68rem;
  font-weight: 650;
}
.certificate-step select:disabled { color: #869394; background: #f1f4f4; }
.certificate-step small { color: #718081; font-size: .53rem; line-height: 1.45; }
.certificate-step--people { text-align: center; }
.certificate-step--people > span { justify-content: center; }
.certificate-step--people > strong {
  color: var(--teal-ink);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -.06em;
}
.certificate-flow__warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
  color: #744700;
  background: #fff7e8;
  font-size: .61rem;
  font-weight: 700;
}
.certificate-flow__warning button {
  padding: 0;
  border: 0;
  color: var(--teal-ink);
  background: none;
  font-size: .61rem;
  font-weight: 800;
  text-decoration: underline;
}
.certificate-flow__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid #e1e8e8;
}
.certificate-flow__actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.certificate-flow__actions .primary-button,
.certificate-flow__actions .secondary-button {
  min-height: 43px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: .64rem;
}
.certificate-flow__actions button:disabled { cursor: not-allowed; opacity: .42; }
.certificate-flow__actions p { max-width: 475px; margin: 0; color: #69797a; font-size: .54rem; line-height: 1.55; }
.certificate-flow__actions p strong { color: var(--teal-ink); }
.participant-selectionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid #d9e3e3;
  border-radius: 9px;
  color: #506162;
  background: #f8fafa;
  font-size: .61rem;
  font-weight: 650;
}
.participant-selectionbar > span strong { color: var(--teal-ink); font-size: .8rem; }
.participant-selectionbar > div { display: flex; gap: 7px; }
.participant-row-actions {
  display: grid;
  gap: 7px;
  min-width: 180px;
}
.participant-row-actions > .small-button { width: max-content; }
.certificate-file-actions {
  display: flex;
  gap: 6px;
}
.certificate-file-actions .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding-inline: 9px;
  white-space: nowrap;
}
.certificate-unavailable {
  color: #718081;
  font-size: .55rem;
  font-weight: 650;
}
.certificate-unavailable.is-warning {
  max-width: 155px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #86500a;
  background: #fff4df;
  line-height: 1.35;
}
.participant-selectionbar button:disabled { cursor: default; opacity: .45; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar input,
.toolbar select {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #d5dfdf;
  border-radius: 8px;
  background: var(--white);
  font-size: .66rem;
}
.toolbar input[type="search"] { min-width: 240px; flex: 1; }
.small-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d7e1e1;
  border-radius: 8px;
  color: #283738;
  background: var(--white);
  font-size: .64rem;
  font-weight: 700;
}
.small-button:hover { border-color: var(--teal); color: var(--teal-dark); }
.small-button.is-primary { border-color: var(--teal); color: var(--white); background: var(--teal); }
.small-button.is-danger { color: var(--danger); }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .63rem; }
.data-table th { padding: 12px 13px; border-bottom: 1px solid #dfe8e8; color: var(--muted); background: #f8fafa; text-align: left; font-size: .56rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { padding: 13px; border-bottom: 1px solid #e9eeee; vertical-align: middle; }
.data-table tr:hover td { background: #fbfdfd; }
.data-table strong { display: block; color: var(--black); font-size: .65rem; }
.data-table small { color: var(--muted); font-size: .55rem; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 20px; color: #344647; background: #eaf0f0; font-size: .54rem; font-weight: 700; }
.status-pill[data-status="attended"],
.status-pill[data-status="generated"],
.status-pill[data-status="sent"],
.status-pill[data-status="downloaded"],
.status-pill[data-status="registration_open"],
.status-pill[data-status="completed"] { color: var(--success); background: #e9f8f1; }
.status-pill[data-status="failed"],
.status-pill[data-status="generation_error"],
.status-pill[data-status="revoked"] { color: var(--danger); background: #fff0ef; }
.status-pill[data-status="processing"],
.status-pill[data-status="queued"],
.status-pill[data-status="correction_required"] { color: var(--warning); background: #fff7e8; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.pagination span { color: var(--muted); font-size: .6rem; }
.pagination div { display: flex; gap: 7px; }

.certificate-commandbar {
  position: sticky;
  z-index: 20;
  top: 14px;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d8e3e3;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(23,58,60,.08);
  backdrop-filter: blur(12px);
}
.template-switcher {
  display: grid;
  min-width: 260px;
  flex: 1;
  gap: 5px;
}
.template-switcher label,
.template-settings label {
  color: #536364;
  font-size: .64rem;
  font-weight: 700;
}
.template-switcher select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cfdada;
  border-radius: 9px;
  color: #1e3031;
  background: var(--white);
  font-size: .72rem;
  font-weight: 650;
}
.editor-history-actions,
.editor-save-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.editor-history-actions button {
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid #d6e0e0;
  border-radius: 8px;
  color: #405253;
  background: #f7f9f9;
  font-size: .64rem;
  font-weight: 700;
}
.editor-history-actions button:disabled { cursor: default; opacity: .38; }
.editor-save-actions { margin-left: auto; }
.editor-save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  color: #526263;
  white-space: nowrap;
  font-size: .62rem;
  font-weight: 700;
}
.editor-save-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.editor-save-state[data-state="dirty"] i { background: #d98300; }
.editor-save-state[data-state="saving"] i {
  background: var(--teal);
  animation: editor-pulse .8s ease-in-out infinite alternate;
}
@keyframes editor-pulse { to { opacity: .3; transform: scale(.75); } }
.template-settings {
  display: grid;
  grid-template-columns: 1.1fr 1fr .55fr;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce5e5;
  border-radius: 12px;
  background: var(--white);
}
.template-settings .field { gap: 5px; }
.template-settings label { font-size: .56rem; }
.template-settings input,
.template-settings select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: .62rem;
}
.template-settings--simple {
  grid-template-columns: 1.4fr 1fr .55fr;
  margin-bottom: 12px;
  padding: 12px;
}
.editor-surface {
  overflow: hidden;
  border: 1px solid #d8e2e2;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(18,54,56,.07);
}
.editor-toolbelt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #e1e8e8;
  background: #fbfcfc;
}
.editor-toolbelt > div:first-child {
  display: grid;
  gap: 2px;
}
.editor-toolbelt strong { color: #213435; font-size: .76rem; }
.editor-toolbelt span { color: #718081; font-size: .59rem; }
.element-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.element-add-actions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d3dfdf;
  border-radius: 8px;
  color: #304647;
  background: var(--white);
  font-size: .61rem;
  font-weight: 700;
}
.element-add-actions button:hover { border-color: var(--teal); color: var(--teal-ink); background: #f1fbfb; }
.element-add-actions b {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  place-items: center;
  border-radius: 5px;
  color: var(--teal-ink);
  background: #e4f5f5;
}
.element-strip {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid #e1e8e8;
}
.element-strip > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  max-width: 210px;
  min-height: 37px;
  padding: 5px 9px;
  border: 1px solid #dbe4e4;
  border-radius: 8px;
  color: #405253;
  background: #f7f9f9;
  font-size: .59rem;
  font-weight: 650;
}
.element-strip > button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.element-strip > button.is-active {
  border-color: var(--teal);
  color: var(--teal-ink);
  background: #edf9f9;
  box-shadow: inset 0 0 0 1px rgba(0,155,163,.12);
}
.element-strip > button.is-hidden { opacity: .48; }
.element-kind {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: var(--teal-ink);
  background: #dcf1f2;
  font-size: .55rem;
  font-weight: 800;
}
.element-kind[data-kind="image"] {
  color: #704514;
  background: #fff0d9;
  font-size: .46rem;
}
.editor-layout--simple {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 320px;
  align-items: start;
  min-height: 690px;
}
.editor-stage-wrap {
  min-width: 0;
  min-height: 690px;
  padding: 22px;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.75), transparent 38%),
    #dfe7e7;
}
.stage-caption {
  position: sticky;
  z-index: 5;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 540px;
  margin: 0 0 15px;
  color: #536465;
}
.stage-caption span { color: #253738; font-size: .7rem; font-weight: 750; }
.stage-caption small { font-size: .56rem; }
.certificate-stage {
  position: relative;
  overflow: hidden;
  margin: auto;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(18,45,47,.17);
  transform-origin: top left;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.certificate-stage::after { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(0,155,163,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,155,163,.08) 1px, transparent 1px); background-size: 20px 20px; content: ""; }
.certificate-element {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: visible;
  border: 1px dashed transparent;
  cursor: move;
  user-select: none;
  touch-action: none;
}
.certificate-element__content {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 4;
}
.certificate-element[hidden] { display: none !important; }
.certificate-element:hover,
.certificate-element.is-active {
  border-color: var(--teal);
  background: rgba(255,255,255,.38);
  box-shadow: 0 0 0 2px rgba(0,155,163,.14);
}
.certificate-element[data-type="qr"] .certificate-element__content {
  display: grid;
  place-items: center;
  border: 5px solid #151a1a;
  color: #151a1a;
  background:
    linear-gradient(90deg, #151a1a 25%, transparent 25% 50%, #151a1a 50% 75%, transparent 75%),
    linear-gradient(#151a1a 25%, #fff 25% 50%, #151a1a 50% 75%, #fff 75%);
  background-size: 16px 16px;
}
.certificate-element[data-type="image"] .certificate-element__content {
  display: grid;
  place-items: center;
}
.certificate-element[data-type="image"] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px dashed #98aaab;
  color: #627576;
  background: rgba(255,255,255,.72);
  font-size: 10px;
}
.element-resize-handle {
  position: absolute;
  z-index: 5;
  right: -8px;
  bottom: -8px;
  display: none;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 2px 7px rgba(10,50,52,.28);
  cursor: nwse-resize;
  touch-action: none;
}
.certificate-element.is-active .element-resize-handle { display: block; }
.qr-placeholder {
  display: grid;
  width: 32px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: #151a1a;
  font-size: 10px;
  font-weight: 800;
}
.editor-inspector {
  position: sticky;
  top: 86px;
  min-height: 690px;
  border-left: 1px solid #dce5e5;
  background: var(--white);
}
.inspector-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #e2e9e9;
}
.inspector-heading > div { display: grid; gap: 3px; }
.inspector-heading strong { color: #243738; font-size: .72rem; }
.inspector-heading small { color: #718081; font-size: .54rem; line-height: 1.4; }
.inspector-empty {
  display: grid;
  gap: 6px;
  padding: 35px 22px;
  color: #617172;
  text-align: center;
}
.inspector-empty strong { color: #2d4142; font-size: .74rem; }
.inspector-empty span { font-size: .61rem; line-height: 1.6; }
.property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px; }
.property-grid > .is-wide { grid-column: 1 / -1; min-width: 0; }
.property-grid .field { gap: 4px; }
.property-grid .field.is-wide { grid-column: 1 / -1; }
.property-grid .field label,
.control-label { color: #465859; font-size: .58rem; font-weight: 700; }
.property-grid input,
.property-grid select {
  min-height: 39px;
  padding: 0 9px;
  border: 1px solid #d4dfdf;
  border-radius: 8px;
  background: var(--white);
  font-size: .64rem;
}
.property-grid textarea {
  min-height: 132px;
  padding: 11px;
  resize: vertical;
  border: 1px solid #cbdada;
  border-radius: 9px;
  font-size: .68rem;
  line-height: 1.55;
}
.property-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,155,163,.1); outline: 0; }
.field-help {
  color: #738283;
  font-size: .53rem;
  line-height: 1.45;
}
.format-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 38px) 1fr repeat(2, 44px);
  gap: 5px;
  padding: 7px;
  border: 1px solid #dbe5e5;
  border-radius: 10px;
  background: #f4f8f8;
}
.format-toolbar button {
  min-height: 35px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #324748;
  background: transparent;
  font-size: .64rem;
}
.format-toolbar button:hover,
.format-toolbar button.is-active {
  border-color: #bcdada;
  color: var(--teal-ink);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(28,62,64,.1);
}
.text-presets {
  display: grid;
  gap: 7px;
}
.text-presets > div {
  display: grid;
  grid-template-columns: .75fr 1.15fr 1.2fr;
  gap: 5px;
}
.text-presets button,
.layer-actions button {
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid #d6e1e1;
  border-radius: 7px;
  color: #415657;
  background: #ffffff;
  font-size: .54rem;
  font-weight: 700;
}
.text-presets button:hover,
.layer-actions button:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
  background: #f0fafa;
}
.image-control {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid #dbe5e5;
  border-radius: 10px;
  background: #f7fafa;
}
.image-control__preview {
  display: grid;
  width: 92px;
  height: 76px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d5e0e0;
  border-radius: 8px;
  color: #6a7b7c;
  background: #ffffff;
  font-size: .54rem;
}
.image-control__preview img { width: 100%; height: 100%; object-fit: contain; }
.image-control > div:last-child { display: grid; gap: 5px; }
.image-control strong { color: #2b4243; font-size: .64rem; }
.image-control span { color: #6b7c7d; font-size: .53rem; line-height: 1.4; }
.image-control button { min-height: 34px; padding: 0 9px; font-size: .54rem; }
.variable-picker {
  padding: 11px;
  border: 1px solid #e0e8e8;
  border-radius: 9px;
  background: #f6f9f9;
}
.variable-picker > span {
  display: block;
  margin-bottom: 7px;
  color: #526263;
  font-size: .55rem;
  font-weight: 750;
}
.variable-picker > div { display: flex; flex-wrap: wrap; gap: 5px; }
.variable-picker button {
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid #cfe2e3;
  border-radius: 6px;
  color: var(--teal-ink);
  background: var(--white);
  font-size: .53rem;
  font-weight: 700;
}
.variable-picker button:hover { border-color: var(--teal); background: #eefafa; }
.simple-format {
  display: grid;
  gap: 7px;
}
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 9px;
  background: #eef3f3;
}
.segmented-control button {
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  color: #536465;
  background: transparent;
  font-size: .54rem;
  font-weight: 700;
}
.segmented-control button.is-active {
  color: var(--teal-ink);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(28,62,64,.12);
}
.color-field > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 4px 9px;
  border: 1px solid #d4dfdf;
  border-radius: 8px;
}
.color-field input {
  width: 36px;
  min-height: 28px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.color-field span { color: #566768; font-size: .58rem; font-weight: 700; }
.qr-help {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 9px;
  color: #536465;
  background: #eef8f8;
}
.qr-help strong { color: var(--teal-ink); font-size: .64rem; }
.qr-help span { font-size: .57rem; line-height: 1.55; }
.advanced-properties {
  margin-top: 2px;
  border-top: 1px solid #e1e8e8;
  border-bottom: 1px solid #e1e8e8;
}
.advanced-properties summary {
  padding: 11px 2px;
  color: #425455;
  cursor: pointer;
  font-size: .61rem;
  font-weight: 750;
}
.advanced-properties > p {
  margin: -4px 0 11px;
  color: #7a8889;
  font-size: .52rem;
}
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-bottom: 12px;
}
.advanced-grid .is-wide { grid-column: 1 / -1; }
.visibility-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: #435354;
  font-size: .58rem;
  font-weight: 700;
}
.visibility-control input { width: 16px; min-height: 16px; accent-color: var(--teal); }
.layer-actions {
  display: grid;
  gap: 7px;
}
.layer-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.property-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.property-actions .secondary-button,
.property-actions .danger-button { min-height: 38px; padding: 0 9px; border-radius: 8px; font-size: .57rem; }
.editor-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.editor-empty strong { color: #273b3c; font-size: 1rem; }
.editor-empty span { max-width: 540px; }
.template-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(8,32,34,.32);
}
.template-dialog::backdrop { background: rgba(10,30,31,.55); backdrop-filter: blur(4px); }
.template-dialog form { display: grid; gap: 15px; padding: 22px; }
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--teal-ink);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dialog-heading button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #536465;
  background: #eff4f4;
  font-size: 1.2rem;
}
.template-dialog h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.template-dialog p { margin: -8px 0 2px; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.template-dialog .field { gap: 6px; }
.template-dialog .field label { font-size: .62rem; }
.template-dialog input,
.template-dialog select { min-height: 44px; padding: 0 11px; border: 1px solid #d3dede; border-radius: 9px; font-size: .7rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 3px; }
.form-panel { max-width: 920px; }
.form-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-section .is-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.empty-state { padding: 60px 30px; color: var(--muted); text-align: center; font-size: .75rem; line-height: 1.7; }
.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--white);
  background: #123234;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  font-size: .68rem;
  font-weight: 650;
  animation: toast-in .25s ease;
}
.toast.is-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1100px) {
  .registration-layout { grid-template-columns: 1fr 420px; gap: 45px; }
  .event-story h1 { font-size: clamp(3rem, 6.5vw, 4.6rem); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-layout--simple { grid-template-columns: 1fr; }
  .editor-inspector {
    position: relative;
    top: auto;
    min-height: 0;
    border-top: 1px solid #dce5e5;
    border-left: 0;
  }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .route-line { left: 18px; }
  .public-header { width: calc(100% - 32px); }
  .registration-layout { display: block; width: calc(100% - 32px); padding: 40px 0 60px; }
  .event-story { padding-left: 15px; }
  .event-story h1 { max-width: 660px; font-size: clamp(2.8rem, 12vw, 4.8rem); }
  .event-lead { font-size: .9rem; }
  .event-bottom { max-width: 660px; }
  .registration-card { margin-top: 42px; }
  .admin-login { display: block; }
  .admin-login__brand { min-height: 300px; padding: 40px 28px; }
  .admin-login__brand h1 { font-size: 3rem; }
  .admin-login__form { padding: 50px 24px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: relative; height: auto; padding: 18px; }
  .admin-sidebar .brand-mark { margin: 0 0 16px; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { width: max-content; white-space: nowrap; }
  .sidebar-user { display: none; }
  .admin-main { padding: 24px 16px 50px; }
  .certificate-flow > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .certificate-flow > header p { text-align: left; }
  .certificate-flow__steps { grid-template-columns: 1fr 1fr; }
  .certificate-step--people { grid-column: 1 / -1; }
  .certificate-flow__actions { align-items: flex-start; flex-direction: column; }
  .template-settings { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .certificate-commandbar { position: relative; top: auto; align-items: stretch; flex-wrap: wrap; }
  .template-switcher { min-width: 100%; }
  .editor-save-actions { flex: 1; justify-content: flex-end; }
  .editor-toolbelt { align-items: flex-start; flex-direction: column; }
  .editor-layout--simple { display: block; }
  .editor-stage-wrap { min-height: 0; }
  .editor-inspector { min-height: 0; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .public-header > a { display: none; }
  .event-route-name { font-size: .78rem; letter-spacing: .16em; }
  .event-route-name i { font-size: .45rem; }
  .event-story h1 { font-size: clamp(2.65rem, 13vw, 3.55rem); }
  .event-bottom { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .event-cover { min-height: 150px; border-width: 4px; border-radius: 13px; }
  .event-facts { grid-template-columns: 1fr; gap: 0; }
  .event-facts div { padding: 9px 0; }
  .event-facts div:nth-child(n+4) { display: none; }
  .registration-card { padding: 26px 20px; border-radius: 18px; }
  .card-step { top: 24px; right: 20px; }
  .confirmation-actions { flex-direction: column; }
  .admin-topbar { align-items: stretch; flex-direction: column; }
  .admin-topbar select { width: 100%; }
  .certificate-flow__steps { grid-template-columns: 1fr; }
  .certificate-step--people { grid-column: auto; }
  .certificate-flow__actions > div,
  .certificate-flow__actions button { width: 100%; }
  .participant-selectionbar { align-items: stretch; flex-direction: column; }
  .participant-selectionbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .editor-history-actions button span,
  .editor-save-state { display: none; }
  .editor-save-actions { flex: 0; margin-left: auto; }
  .element-add-actions { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); }
  .element-add-actions button:last-of-type { grid-column: 1 / -1; }
  .stage-caption { align-items: flex-start; flex-direction: column; min-width: 500px; gap: 4px; }
  .property-grid { grid-template-columns: 1fr; }
  .property-grid .is-wide,
  .advanced-grid .is-wide { grid-column: auto; }
  .advanced-grid { grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 16px; }
  .metric-card strong { font-size: 1.55rem; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel div:nth-child(2)::after { display: none; }
  .form-section { grid-template-columns: 1fr; }
  .form-section .is-wide { grid-column: auto; }
  .verify-data div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
