/* ============================================================
   99 FRAMES — crayon / kids-craft design system
   ============================================================ */

:root {
  /* colours pulled straight from the crayon art */
  --green:    #36c23a;
  --green-d:  #25a52b;
  --yellow:   #ffce1f;
  --yellow-d: #eeb100;
  --blue:     #2f93ea;
  --blue-d:   #1d7ed6;
  --orange:   #f2872f;
  --ink:      #2c2a27;
  --ink-soft: #6b665d;

  --paper:    #ffffff;
  --cream:    #fffdf6;
  --line:     #efe8d6;

  --font-display: 'Gloria Hallelujah', 'Comic Sans MS', cursive;
  --font-hand:    'Patrick Hand', 'Comic Sans MS', cursive;
  --font-label:   'Fredoka', 'Patrick Hand', sans-serif;

  --bg: var(--cream);

  /* default button personality (overridden by .shape-* / .border-*) */
  --btn-radius: 63% 37% 58% 42% / 55% 63% 37% 45%;
  --btn-padx: 1.5em;
  --btn-skew: -1.2deg;
}

/* background tints (tweakable) */
.bg-cream { --bg: #fffdf6; }
.bg-sky   { --bg: #eaf6ff; }
.bg-white { --bg: #ffffff; }
.bg-mint  { --bg: #effaef; }

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: var(--font-hand);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- scattered character decorations (fixed, behind content) ---- */
.bg-deco {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .9;
  transition: opacity .3s ease;
}
.bg-deco.hide { opacity: 0; }
.bg-deco img { display: block; width: 100%; height: auto; }

.deco-frog { left: -40px;  bottom: -10px; width: clamp(180px, 22vw, 330px); animation: floatA 7s ease-in-out infinite; }
.deco-duck { right: -30px; top: 84px;     width: clamp(150px, 18vw, 270px); animation: floatB 6s ease-in-out infinite; transform: scaleX(-1); }

@keyframes floatA { 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-12px) rotate(2deg);} }
@keyframes floatB { 0%,100%{ transform: scaleX(-1) translateY(0) rotate(0deg);} 50%{ transform: scaleX(-1) translateY(-10px) rotate(-2deg);} }

/* ============================================================
   CLOUD BUTTONS  — misshapen stretched ovals
   ============================================================ */
.cloud-btn {
  --fill: var(--green);
  --edge: var(--green-d);
  --txt: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
  padding: .8em var(--btn-padx);
  color: var(--txt);
  background: var(--fill);
  border: 3.5px solid var(--edge);
  border-radius: var(--btn-radius);
  box-shadow: 0 6px 0 var(--edge), 0 12px 20px rgba(0,0,0,.10);
  cursor: pointer;
  text-decoration: none;
  transform: rotate(var(--btn-skew));
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.cloud-btn:hover {
  transform: rotate(calc(var(--btn-skew) * -1)) translateY(-3px) scale(1.04);
  box-shadow: 0 10px 0 var(--edge), 0 18px 26px rgba(0,0,0,.14);
}
.cloud-btn:active {
  transform: translateY(3px) rotate(0deg) scale(.99);
  box-shadow: 0 2px 0 var(--edge), 0 6px 10px rgba(0,0,0,.12);
}
.cloud-btn:disabled { opacity: .55; cursor: default; filter: grayscale(.3); }

.btn-green  { --fill: var(--green);  --edge: var(--green-d);  --txt: #fff; }
.btn-yellow { --fill: var(--yellow); --edge: var(--yellow-d); --txt: #3a3318; }
.btn-blue   { --fill: var(--blue);   --edge: var(--blue-d);   --txt: #fff; }
.btn-white  { --fill: #fff;          --edge: var(--line);     --txt: var(--ink); }
.btn-orange { --fill: var(--orange); --edge: #d96e15;         --txt: #fff; }

/* prompt state — submit button turns into a gentle "what's missing" nudge */
.cloud-btn.btn-prompt {
  --txt: var(--blue-d);
  --edge: var(--blue);
  animation: btn-nudge .45s ease;
}
.cloud-btn.btn-prompt:disabled { opacity: 1; filter: none; }
@keyframes btn-nudge {
  0% { transform: scale(.96); }
  40% { transform: scale(1.03) rotate(-.5deg); }
  70% { transform: scale(.99) rotate(.4deg); }
  100% { transform: scale(1); }
}

.cloud-btn.big   { font-size: 1.45rem; padding: .85em 1.7em; }
.cloud-btn.small { font-size: .92rem; padding: .6em 1.1em; }

/* ---- shape personalities (set on app root) ---- */
.shape-blob  { --btn-radius: 63% 37% 58% 42% / 55% 63% 37% 45%; --btn-skew: -1.2deg; }
.shape-cloud { --btn-radius: 46% 54% 47% 53% / 64% 62% 38% 36%; --btn-skew: 0deg; --btn-padx: 1.8em; }
.shape-pill  { --btn-radius: 49% 51% 50% 50% / 72% 72% 28% 28%; --btn-skew: 1.5deg; --btn-padx: 2em; }
.shape-wobble .cloud-btn { border-radius: 26px 20px 30px 18px / 22px 28px 18px 26px; filter: url(#crayon); --btn-skew: -.6deg; }
.shape-wobble .cloud-btn:hover { filter: url(#crayon); }

/* alternate border feel */
.border-soft .cloud-btn { box-shadow: 0 8px 18px rgba(0,0,0,.14); border-width: 0; }
.border-soft .cloud-btn:hover { box-shadow: 0 14px 26px rgba(0,0,0,.18); }
.border-soft .cloud-btn:active { box-shadow: 0 4px 10px rgba(0,0,0,.16); }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-root { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* HOME = centered card with a guaranteed gap under the nav (contents unchanged) */
.app-root.home { min-height: 100vh; min-height: 100dvh; }
.app-root.home main { flex: 1 1 auto; display: flex; padding: 0; min-height: 0; }
.app-root.home .shell { display: flex; flex: 1; }
.app-root.home .foot { display: none; }
.home-wrap { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 0 32px; }
.app-root.home .hero { width: 100%; }
.app-root.home .wordmark { width: min(380px, 64vmin); }
.app-root.home .hero-pair img.frog { width: clamp(120px, 28vmin, 230px); }
.app-root.home .hero-pair img.duck { width: clamp(95px, 22vmin, 181px); }

.shell { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
}
.nav-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--ink);
  text-decoration: none; cursor: pointer;
  margin-right: auto;
  transform: rotate(-2deg);
}
.brand .nines { color: var(--blue); }
.brand:hover { transform: scale(1.06); }

.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  padding: .35em .85em;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  border: 2.5px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, color .14s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); transform: scale(1.08); background: #fff; }
.tab.active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 0 var(--line);
  transform: rotate(-1.5deg);
}

/* ---- page card ---- */
main { flex: 1; padding: 18px 0 70px; }
.card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 34px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 14px 40px rgba(60,50,20,.08);
  position: relative;
}
.card + .card { margin-top: 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--ink-soft); }
a.inline { color: var(--blue-d); }

.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }

/* squiggle divider */
.squiggle { width: 140px; height: 14px; display: block; margin: 6px 0 18px; color: var(--green); }
.center .squiggle { margin-left: auto; margin-right: auto; }

/* footer */
.foot {
  text-align: center; padding: 26px 0 34px;
  font-size: .95rem; color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 2px dotted var(--line); cursor: pointer; }
.foot a:hover { color: var(--ink); }

/* ============================================================
   HOME hero
   ============================================================ */
.hero { text-align: center; }
.wordmark { width: min(440px, 78%); height: auto; margin: 0 auto 6px; display: block; }
.hero-sub { font-size: 1.35rem; }
.byline { font-family: var(--font-display); font-size: 1.4rem; }
.byline-top { margin-top: 0; margin-bottom: 6px; }
.app-root.home .hero { padding-top: 18px; }
.app-root.home .hero .wordmark { margin-top: 14px; }
.byline .nines { color: var(--blue); }

.hero-pair { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 8px 0 4px; }
.hero-pair img { height: auto; }
/* frog & duck were cropped from the same drawing at one scale — keep that ratio
   (frog crop 805px wide, duck 634px wide → duck ≈ 0.79× the frog) */
.hero-pair img.frog { width: clamp(165px, 30vw, 268px); }
.hero-pair img.duck { width: clamp(130px, 23.6vw, 211px); transform: scaleX(1); }

/* quick facts chips */
.facts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fact {
  background: #fff; border: 2.5px solid var(--line);
  border-radius: 40% 60% 55% 45% / 60% 50% 50% 40%;
  padding: 10px 18px; font-size: 1.05rem;
  box-shadow: 0 5px 0 var(--line);
}
.fact b { font-family: var(--font-label); font-weight: 600; display: block; font-size: .72rem; color: var(--blue-d); letter-spacing: .03em; text-transform: uppercase; }

/* ============================================================
   EVENT page
   ============================================================ */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin: 8px 0 6px; }
.how-list {
  text-align: center; margin: 10px 0 4px;
  background: var(--cream); border: 2.5px solid var(--line);
  border-radius: 24px; padding: 34px 28px;
}
.how-list p { font-size: 1.5rem; line-height: 1.55; color: var(--ink); margin: 0 0 1.2em; text-wrap: balance; }
.how-list p:last-child { margin-bottom: 0; }
.event-cell {
  background: var(--cream); border: 2.5px solid var(--line);
  border-radius: 24px; padding: 18px 20px;
}
.event-cell .k { font-family: var(--font-label); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--blue-d); }
.event-cell .v { font-size: 1.25rem; }
.poster {
  border-radius: 22px; border: 3px solid var(--line); overflow: hidden;
  background: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

/* ============================================================
   FORM
   ============================================================ */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-label); font-weight: 600; font-size: 1rem; margin-bottom: 5px; }
.field .req { color: var(--orange); }
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  padding: .6em .8em;
  border: 3px solid var(--line);
  border-radius: 16px 14px 18px 12px / 14px 16px 12px 18px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,147,234,.16); background:#fff; }
.field input::placeholder { color: #b9b2a4; opacity: 1; }
.field input.err { border-color: var(--orange); background: #fff7f0; }
.field .hint { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.field .msg-err { font-size: .9rem; color: var(--orange); margin-top: 4px; }
.field .ig-wrap { position: relative; }
.field .ig-wrap .at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 1.15rem; }
.field .ig-wrap input { padding-left: 1.9em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){
  .two-col { grid-template-columns: 1fr; gap: 0; }
  /* keep type at a comfortable, non-zooming size on phones */
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field textarea { font-size: 16px; }
  .field label { font-size: .98rem; }
  /* contact heading: title on its own line, note tucked under it */
  .contact-head { gap: 2px; margin-bottom: 10px; }
  .contact-note { width: 100%; }
  /* photo pickers: fixed squares, centered as a group */
  .photo-grid { gap: 10px; }
  .photo-thumb, .dropzone.mini { width: 112px; height: 112px; flex: 0 0 112px; }
}

/* photo dropzone */
.dropzone {
  border: 3.5px dashed var(--blue);
  border-radius: 28px;
  background: #f3f9ff;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.dropzone:hover { background: #e8f3ff; transform: rotate(-.5deg); }
.dropzone.drag { background: #e0effd; border-color: var(--green); transform: scale(1.01); }
.dropzone.err { border-color: var(--orange); background: #fff7f0; }
.dropzone .big-plus { font-family: var(--font-display); font-size: 2.4rem; color: var(--blue); line-height: 1; }
.dropzone .dz-sub { color: var(--ink-soft); font-size: .98rem; }
.preview-wrap { position: relative; display: inline-block; }
.preview-wrap img { max-width: 100%; max-height: 320px; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.preview-wrap .change { margin-top: 12px; }

/* success */
.success { text-align: center; }
.success .checkmark {
  width: 110px; height: 110px; margin: 0 auto 14px;
  background: var(--green);
  border-radius: 50% 50% 48% 52% / 58% 60% 40% 42%;
  display: grid; place-items: center;
  box-shadow: 0 8px 0 var(--green-d);
  animation: pop .4s cubic-bezier(.2,1.4,.5,1) both;
}
.success .checkmark::after {
  content: "";
  width: 42px; height: 22px;
  border-left: 9px solid #fff; border-bottom: 9px solid #fff;
  border-radius: 2px;
  transform: translateY(-6px) rotate(-45deg);
}
@keyframes pop { from { transform: scale(0) rotate(-20deg);} to { transform: scale(1) rotate(0);} }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.polaroid {
  width: 100%;
  max-width: 360px;
  margin: 0;
  background: #fff;
  padding: 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
.polaroid img { width: 100%; display: block; border-radius: 3px; background: var(--cream); }
.polaroid .cap { font-family: var(--font-display); font-size: .95rem; padding: 9px 4px 2px; text-align: center; }
.polaroid .cap small { display: block; font-family: var(--font-hand); color: var(--blue-d); font-size: .9rem; }

.empty-state { text-align: center; padding: 30px 10px; }
.empty-state img { width: 150px; height: auto; opacity: .9; margin-bottom: 6px; }

/* frog loader — shown during loading/waiting */
.frog-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 10px; text-align: center; }
.frog-loader-img { width: 96px; height: auto; }
.frog-loader-img.sm { width: 64px; }
.frog-loader-img.lg { width: 130px; }
.frog-loader-label { font-family: var(--font-hand); color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
@keyframes frog-breathe { 0%,100% { transform: scale(1);} 50% { transform: scale(1.06);} }
@keyframes frog-hop {
  0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); }
  20%      { transform: translateY(0) scaleY(.82) scaleX(1.1); }
  45%      { transform: translateY(-22px) scaleY(1.08) scaleX(.94); }
  70%      { transform: translateY(0) scaleY(.88) scaleX(1.08); }
  85%      { transform: translateY(0) scaleY(1.02) scaleX(.99); }
}
@media (prefers-reduced-motion: reduce) {
  .frog-loader-img { animation: none; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0;
}
.admin-bar .brand { margin-right: 0; }
.pill-count {
  font-family: var(--font-display);
  background: var(--blue); color: #fff;
  border-radius: 50% / 60%;
  padding: 6px 16px; font-size: 1rem;
  box-shadow: 0 5px 0 var(--blue-d);
}
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 18px; }
.sub-card {
  background: #fff; border: 2.5px solid var(--line);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
}
.sub-card .ph { background: var(--cream); aspect-ratio: 4/3; overflow: hidden; }
.sub-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub-card .meta { padding: 14px 16px 16px; }
.sub-card .meta .nm { font-family: var(--font-display); font-size: 1.15rem; }
.sub-card .meta .li { font-size: 1rem; color: var(--ink-soft); margin-top: 2px; word-break: break-word; }
.sub-card .meta .li b { color: var(--blue-d); font-family: var(--font-label); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; margin-right: 4px; }
.sub-card .actions { margin-top: 12px; display: flex; gap: 8px; }
.btn-mini {
  font-family: var(--font-hand); font-size: .95rem;
  border: 2px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 12px; padding: .3em .7em; cursor: pointer;
}
.btn-mini:hover { color: var(--ink); border-color: var(--ink-soft); }
.btn-mini.danger:hover { color: #c0392b; border-color: #c0392b; }

.admin-empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.admin-empty .big-emoji { font-size: 3rem; }

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 720px) {
  .shell { padding: 0 14px; }
  .nav { box-shadow: 0 2px 0 var(--line); }
  .nav-inner { padding: 10px 0 11px; gap: 8px; }
  .brand { font-size: 1.3rem; margin-right: 0; width: 100%; justify-content: center; }
  .nav-tabs {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    row-gap: 8px;
  }
  .tab { font-size: 1rem; padding: .3em .8em; flex: 0 0 auto; }

  main { padding: 14px 0 50px; }
  .card { padding: 22px 18px; border-radius: 26px; }
  .card + .card { margin-top: 16px; }
  .stack-lg { gap: 16px; }

  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  body { font-size: 16px; }

  .event-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .how-list { padding: 26px 20px; }
  .how-list p { font-size: 1.28rem; }
  .event-cell { padding: 14px 16px; }
  .event-cell .v { font-size: 1.1rem; }

  .admin-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .admin-bar { padding: 12px 0; }

  .cloud-btn.big { font-size: 1.25rem; }
  .row { gap: 10px; }
}

@media (max-width: 440px) {
  .admin-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav-tabs { gap: 4px; }
}

/* ============================================================
   ADMIN — login gate, badges & dashboard extras
   ============================================================ */
.admin-login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login { text-align: center; max-width: 420px; width: 100%; }
.admin-login .lock { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.admin-login h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.admin-pass {
  width: 100%;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: .12em;
  padding: .7em .9em;
  margin: 14px 0 12px;
  border: 3px solid var(--line);
  border-radius: 16px 14px 18px 12px / 14px 16px 12px 18px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-pass:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,147,234,.16); background: #fff; }

.admin-h { font-family: var(--font-display); margin: 22px 0 14px; }

.badge {
  display: inline-block;
  font-family: var(--font-label); font-weight: 600;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; margin-left: 8px;
  vertical-align: middle; position: relative; top: -2px;
}
.badge-pending  { background: #fff3d6; color: #9a6a00; border: 1.5px solid #f3d489; }
.badge-approved { background: #e3f7e4; color: #1c7a2a; border: 1.5px solid #9bdca2; }

.btn-mini.approve { color: var(--green-d); border-color: #9bdca2; font-weight: 600; }
.btn-mini.approve:hover { background: #eafbeb; border-color: var(--green); color: var(--green-d); }
.btn-mini.download { color: var(--blue); border-color: #bfe0ff; }
.btn-mini.download:hover { background: #eaf5ff; border-color: var(--blue); color: var(--blue); }
.btn-mini:disabled { opacity: .5; cursor: default; }
.btn-mini[href] { text-decoration: none; display: inline-block; }

/* ---- added: host-application textarea + phone field ---- */
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 12px 14px;
  border: 2.5px solid #e7e0d2;
  border-radius: 14px;
  background: #fbf7ee;
  box-sizing: border-box;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input[type="tel"]:focus,
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,147,234,.16); background:#fff; outline: none; }
.field input[type="tel"]::placeholder,
.field textarea::placeholder { color: #b9b2a4; opacity: 1; }
.field input[type="tel"].err,
.field textarea.err { border-color: var(--orange); background: #fff7f0; }

/* ---- added: event location maps link ---- */
.event-cell .v a.map-link { color: var(--blue-d); text-decoration: none; border-bottom: 2px dotted var(--blue); }
.event-cell .v a.map-link:hover { color: var(--blue); border-bottom-style: solid; }

/* ---- added: multi-photo picker ---- */
.photo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.photo-thumb { position: relative; width: 124px; height: 124px; flex: 0 0 124px; border-radius: 16px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.14); background: #f0ece1; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .thumb-loading { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 1.4rem; }
.thumb-x {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.thumb-x:hover { background: var(--orange, #e8743b); }
.dropzone.mini { padding: 0; width: 124px; height: 124px; flex: 0 0 124px; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.dropzone.mini .big-plus { font-size: 1.8rem; }
.dropzone.mini .dz-sub { font-size: .82rem; padding: 0 6px; text-align: center; }

/* ---- added: admin host-application cards ---- */
.sub-card.app-card { display: block; }
.app-card .app-msg { margin-top: 8px; white-space: pre-wrap; line-height: 1.5; color: var(--ink); background: #fbf7ee; border-radius: 12px; padding: 10px 12px; }

/* ---- added: contact group (email / phone / IG, one required) ---- */
.contact-block {
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
  background: transparent;
}
.contact-block.err { background: transparent; }
.contact-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.contact-title { font-family: var(--font-label); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.contact-note { font-family: var(--font-hand); font-size: .92rem; color: var(--ink-soft); }
.contact-block .field:last-of-type { margin-bottom: 12px; }
.contact-err { font-size: 1rem; margin: 0 0 12px; }

/* ---- added: gallery-board single picker (matches the blue "Add photos") ---- */
.gallery-pick .photo-grid { justify-content: center; }

/* ---- added: admin badges + missing-contact note ---- */
.badge-gallery { background: #e3f7e4; color: #1c7a2a; border: 1.5px solid #9bdca2; }
.li-missing { color: var(--orange); font-style: italic; }

/* ===================== ADMIN: tabbed nav + accordions ===================== */
.admin-root { min-height: 100vh; }
.admin-nav {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 22px; background: #fff;
  border-bottom: 3px solid #efe8da; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.admin-nav .brand { font-family: var(--font-display); font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.admin-nav .brand .nines { color: var(--blue); }
.admin-nav-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.admin-tab {
  font-family: var(--font-label); font-weight: 600; font-size: .98rem;
  padding: 8px 14px; border-radius: 999px; border: 2px solid transparent;
  background: transparent; color: var(--ink-soft); cursor: pointer; text-decoration: none;
}
.admin-tab:hover { background: #f4eee2; color: var(--ink); }
.admin-tab.active { background: #eafbeb; border-color: #9bdca2; color: var(--green-d); }
.admin-tab.logout { color: #c0392b; }
.admin-tab.logout:hover { background: #fdecea; }
.admin-shell { padding-top: 24px; }

.admin-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-h-row .admin-h { margin: 0; }

.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-item { background: #fff; border: 2.5px solid #efe8da; border-radius: 16px; overflow: hidden; }
.acc-item.open { border-color: #d8e9fb; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: inherit;
}
.acc-head:hover { background: #faf6ee; }
.acc-name { font-family: var(--font-label); font-weight: 700; font-size: 1.08rem; color: var(--ink); flex: 1 1 auto; }
.acc-status { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #f1ece0; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.acc-status.is-up { color: var(--green-d); background: #eafbeb; }
.acc-meta { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.acc-chev { width: 0; height: 0; border-left: 7px solid var(--ink-soft); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s ease; flex: 0 0 auto; }
.acc-item.open .acc-chev { transform: rotate(90deg); }

.acc-body { padding: 4px 18px 18px; border-top: 2px dashed #efe8da; }
.acc-contact { margin: 12px 0; }
.acc-contact .li { font-size: .98rem; margin: 3px 0; color: var(--ink); }
.acc-contact .li b { display: inline-block; min-width: 64px; font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--blue-d); }
.acc-contact .li-missing { color: var(--ink-soft); font-style: italic; }

.acc-photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.acc-photo { position: relative; width: 132px; }
.acc-photo img { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 5px 14px rgba(0,0,0,.14); display: block; }
.acc-photo.is-gallery img { border-color: var(--green); }
.acc-photo .thumb-loading { width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; background: #f0ece1; border-radius: 12px; color: var(--ink-soft); font-size: .8rem; }
.acc-photo .tag-gallery { position: absolute; top: 6px; left: 6px; background: var(--green); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.acc-dl {
  display: block; text-align: center; margin-top: 6px; text-decoration: none;
  font-family: var(--font-label); font-weight: 600; font-size: .82rem;
  color: var(--blue-d); border: 2px solid #bfe0ff; border-radius: 10px; padding: 4px 0;
}
.acc-dl:hover { background: #eaf5ff; border-color: var(--blue); }

.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 560px){
  .admin-nav { gap: 10px; padding: 12px 14px; }
  .admin-nav-tabs { gap: 6px; }
  .admin-tab { padding: 7px 11px; font-size: .9rem; }
  .acc-meta { display: none; }
}

/* ===================== ADMIN: event ids + folders ===================== */
.id-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; color: var(--blue-d); background: #eaf3ff; border: 1.5px solid #cfe5ff;
  padding: 1px 8px; border-radius: 7px; white-space: nowrap;
}
.folder-row { width: 100%; }
.folder-row .acc-chev.right { transform: none; }
.link-back {
  background: none; border: none; color: var(--blue-d); font-family: var(--font-label);
  font-weight: 600; font-size: .92rem; cursor: pointer; padding: 0; margin: 0;
}
.link-back:hover { text-decoration: underline; }

.evt-current { background: #fff; border: 2.5px solid #efe8da; border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.evt-current-label { font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 4px; }
.evt-current-name { font-family: var(--font-label); font-weight: 500; font-size: 1.3rem; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.evt-note { margin: 10px 0 0; font-size: .9rem; }

.evt-create { background: #fff; border: 2.5px solid #efe8da; border-radius: 16px; padding: 16px 18px; }
.evt-create > label { display: block; font-family: var(--font-label); font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.evt-create-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.evt-create-row input {
  flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 2.5px solid #e3dccd;
  font-size: 1rem; font-family: inherit; background: #fffdf8;
}
.evt-create-row input:focus { outline: none; border-color: var(--blue); }
.evt-create .hint { margin-top: 8px; }

.evt-list { display: flex; flex-direction: column; gap: 8px; }
.evt-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 2.5px solid #efe8da; border-radius: 14px; padding: 12px 16px;
}
.evt-row.is-active { border-color: #9bdca2; background: #f6fff7; }
.evt-row-title { font-family: var(--font-label); font-weight: 500; color: var(--ink); flex: 1 1 auto; }
.evt-row.is-active .evt-row-title { font-weight: 700; }
.evt-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px){
  .evt-row-title { flex-basis: 100%; }
}
