*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{min-height:100vh;overflow-x:hidden;background:#050608;color:#f5f5f6;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
body.loading,body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
img{display:block;max-width:100%}
:root{--bg:#050608;--surface:#0d0f13;--surface2:#11151b;--text:#f5f5f6;--soft:#b6bac3;--muted:#747a85;--line:rgba(255,255,255,.1);--line2:rgba(255,255,255,.22);--cyan:#28d8ef;--purple:#a778ff;--lime:#c7ff6b;--warning:#ffd586;--container:min(1160px,calc(100% - 40px));--ease:260ms cubic-bezier(.22,1,.36,1)}
::selection{background:var(--cyan);color:#031014}
.loader{position:fixed;inset:0;z-index:9999;display:grid;place-content:center;background:#040507;transition:opacity .7s,visibility .7s}
.loader.hidden{opacity:0;visibility:hidden}
.loader img{width:88px;height:88px;object-fit:cover;margin:auto;border:1px solid var(--line2);border-radius:25px}
.loader>span{display:block;width:170px;height:1px;margin-top:22px;overflow:hidden;background:var(--line)}
.loader>span:after{content:"";display:block;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--cyan),var(--purple),transparent);animation:load 1.4s infinite}
.loader p{margin-top:16px;color:var(--muted);font-size:.65rem;font-weight:800;letter-spacing:.2em;text-align:center}
@keyframes load{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.background{position:fixed;inset:0;z-index:-5;overflow:hidden;pointer-events:none}
.noise{position:absolute;inset:0;opacity:.035;background-image:repeating-radial-gradient(circle at 30% 20%,rgba(255,255,255,.45) 0 1px,transparent 1px 4px);background-size:7px 7px}
.orb{position:absolute;border:1px solid rgba(255,255,255,.07);border-radius:50%}
.orb-one{top:5%;right:-18%;width:min(72vw,900px);aspect-ratio:1}
.orb-two{top:44%;left:-20%;width:560px;aspect-ratio:1}
.glow{position:absolute;top:14%;right:8%;width:380px;height:380px;border-radius:50%;background:rgba(48,170,255,.1);filter:blur(120px)}
.container,.header-inner{width:var(--container);margin-inline:auto}
.site-header{position:fixed;inset:0 0 auto;z-index:1000;border-bottom:1px solid transparent;transition:background var(--ease),border-color var(--ease),backdrop-filter var(--ease)}
.site-header.scrolled{border-color:var(--line);background:rgba(5,6,8,.84);backdrop-filter:blur(24px)}
.header-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:48px;height:48px;object-fit:cover;border:1px solid var(--line2);border-radius:15px}
.brand span{display:grid;gap:2px}
.brand strong{font-size:.81rem;font-weight:900;letter-spacing:.12em}
.brand small{color:var(--muted);font-size:.52rem;font-weight:750;letter-spacing:.14em}
.header-actions{display:flex;align-items:center;gap:10px}
.language-button{display:flex;gap:6px;align-items:center;min-height:40px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);padding:7px 12px;cursor:pointer;color:var(--muted);font-size:.64rem;font-weight:850}
.language-button .active{color:var(--lime)}
.menu-button{width:50px;height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.025);cursor:pointer}
.menu-button span{width:20px;height:1px;background:white;transition:transform var(--ease),opacity var(--ease)}
.menu-button.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-button.active span:nth-child(2){opacity:0}
.menu-button.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.site-menu{position:fixed;inset:0;z-index:900;overflow-y:auto;background:rgba(5,6,8,.98);backdrop-filter:blur(26px);opacity:0;visibility:hidden;transform:translateY(-15px);transition:.34s}
.site-menu.open{opacity:1;visibility:visible;transform:none}
.menu-inner{width:var(--container);min-height:100%;margin:auto;padding:125px 0 50px}
.menu-inner>p{margin-bottom:16px;color:var(--muted);font-size:.62rem;font-weight:850;letter-spacing:.18em}
.menu-inner>a{display:grid;grid-template-columns:48px 1fr;align-items:center;min-height:78px;border-bottom:1px solid var(--line)}
.menu-inner>a>span{color:var(--muted);font-size:.6rem;font-weight:800}
.menu-inner strong{font-size:clamp(1.7rem,5vw,3.8rem);letter-spacing:-.045em}
.menu-inner>a:hover strong{color:var(--cyan)}
.hero{min-height:100svh;display:grid;align-items:center;padding:125px 0 82px}
.hero-grid{display:grid;grid-template-columns:minmax(280px,410px) minmax(0,1fr);align-items:center;gap:clamp(44px,8vw,110px)}
.hero-logo{overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:32px;background:var(--surface);box-shadow:0 40px 110px rgba(0,0,0,.55),0 0 70px rgba(40,216,239,.06)}
.hero-logo img{width:100%;aspect-ratio:1;object-fit:cover}
.eyebrow,.section-label{margin-bottom:14px;color:var(--lime);font-size:.67rem;font-weight:850;letter-spacing:.16em}
.hero h1{margin-bottom:26px;font-size:clamp(4rem,10vw,8.6rem);font-weight:900;letter-spacing:-.085em;line-height:.76}
.hero h1 span{display:block}
.hero h1 span:last-child{color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.72)}
.hero-lead{max-width:650px;margin-bottom:18px;color:white;font-size:clamp(1.05rem,2vw,1.34rem)}
.hero-copy{max-width:620px;color:var(--soft);font-size:.95rem;line-height:1.75}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.button{min-height:54px;display:inline-flex;align-items:center;justify-content:center;gap:20px;border:1px solid transparent;border-radius:999px;padding:13px 23px;font-size:.69rem;font-weight:850;letter-spacing:.05em;transition:transform var(--ease),background var(--ease),border-color var(--ease)}
.button:hover{transform:translateY(-3px)}
.button-primary{background:white;color:#051014}
.button-secondary{border-color:var(--line2);background:rgba(255,255,255,.035)}
.section{padding:105px 0;border-top:1px solid var(--line)}
.dark-section{background:rgba(10,12,16,.78)}
.section-heading{max-width:800px;margin-bottom:42px}
.section-heading h2,.split-card h2{margin-bottom:18px;font-size:clamp(2.7rem,6vw,5.6rem);letter-spacing:-.065em;line-height:.94}
.section-heading>p:last-child{max-width:690px;color:var(--soft);line-height:1.7}
.filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.filter-tabs button{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);padding:10px 15px;cursor:pointer;color:var(--muted);font-size:.65rem;font-weight:800}
.filter-tabs button.active{border-color:var(--lime);color:var(--lime)}
.event-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.event-card{overflow:hidden;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.014))}
.event-card.hidden{display:none}
.event-image{display:grid;min-height:350px;place-items:center;border-bottom:1px solid var(--line);background:radial-gradient(circle at center,rgba(40,216,239,.12),transparent 28%),linear-gradient(145deg,#11141a,#090a0d);color:var(--muted);text-align:center;padding:24px}
.event-content{padding:25px}
.event-status{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:.58rem;font-weight:850;letter-spacing:.1em}
.event-status.upcoming{border-color:rgba(199,255,107,.35);color:var(--lime)}
.event-status.archive{color:var(--muted)}
.event-content h3{margin:20px 0 7px;font-size:1.85rem;letter-spacing:-.04em}
.event-content>p{color:var(--muted);font-size:.8rem}
.event-content dl{margin-top:20px;border-top:1px solid var(--line)}
.event-content dl>div{display:grid;grid-template-columns:145px 1fr;gap:14px;border-bottom:1px solid var(--line);padding:13px 0}
.event-content dt{color:var(--muted);font-size:.61rem;font-weight:800}
.event-content dd{margin:0;font-size:.78rem}
.event-link{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:var(--lime);font-size:.7rem;font-weight:800}
.split-card{display:grid;grid-template-columns:1fr .8fr;gap:70px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.014));padding:clamp(30px,6vw,64px)}
.split-card>div:last-child>p{color:var(--soft);line-height:1.75}
.contact-box{display:grid;gap:5px;margin-top:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025);padding:15px}
.contact-box span{color:var(--muted);font-size:.61rem;font-weight:800;letter-spacing:.08em}
.contact-box strong{overflow-wrap:anywhere;font-size:.81rem}
.url-example{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.2);padding:16px}
.url-example span{display:block;margin-bottom:7px;color:var(--muted);font-size:.58rem;font-weight:850}
.url-example code{overflow-wrap:anywhere;color:var(--lime);font-size:.7rem}
.warning{margin-top:14px;border:1px solid rgba(255,213,134,.28);border-radius:14px;background:rgba(255,213,134,.045);padding:16px}
.warning strong{color:var(--warning);font-size:.78rem}
.warning p{margin-top:5px;color:var(--muted);font-size:.73rem}
.todo-note{margin-top:14px;color:var(--muted)!important;font-size:.65rem}
.contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.contact-grid article{min-height:165px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025);padding:22px}
.contact-grid span{color:var(--lime);font-size:.61rem;font-weight:850;letter-spacing:.1em}
.contact-grid strong{overflow-wrap:anywhere;font-size:1rem}
.site-footer{border-top:1px solid var(--line);background:#030405;padding:44px 0 24px}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}
.footer-brand{display:flex;align-items:center;gap:14px}
.footer-brand img{width:56px;height:56px;object-fit:cover;border:1px solid var(--line);border-radius:17px}
.footer-brand strong{font-size:.78rem;letter-spacing:.1em}
.footer-brand p,.footer-inner>p{margin-top:4px;color:var(--muted);font-size:.63rem}
.reveal{opacity:0;transform:translateY(28px);transition:opacity .75s,transform .75s cubic-bezier(.22,1,.36,1)}
.reveal.visible{opacity:1;transform:none}
@media(max-width:900px){.hero-grid,.split-card{grid-template-columns:1fr}.hero-logo{width:min(66vw,390px);margin:auto}.hero-content{text-align:center}.hero-actions{justify-content:center}.event-grid{grid-template-columns:1fr}.footer-inner{align-items:flex-start}}
@media(max-width:640px){:root{--container:min(100% - 24px,1160px)}.header-inner{min-height:72px}.brand img{width:42px;height:42px}.brand small,.language-button{display:none}.menu-button{width:47px;height:47px}.menu-inner{padding-top:105px}.menu-inner>a{min-height:66px;grid-template-columns:38px 1fr}.menu-inner strong{font-size:clamp(1.5rem,8vw,2.35rem)}.hero{min-height:auto;padding:105px 0 76px}.hero-logo{width:min(78vw,340px);border-radius:25px}.hero h1{font-size:clamp(3.5rem,20vw,5.6rem)}.hero-actions{display:grid}.hero-actions .button{width:100%}.section{padding:76px 0}.section-heading h2,.split-card h2{font-size:clamp(2.45rem,13vw,3.9rem)}.event-image{min-height:290px}.event-content dl>div{grid-template-columns:1fr;gap:4px}.contact-grid{grid-template-columns:1fr}.split-card{gap:28px;border-radius:22px;padding:26px 20px}.footer-inner{display:grid}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* =========================================================
   PHASE 2 — WORK WITH US MODAL
   ========================================================= */

.button {
  cursor: pointer;
}

.work-button {
  margin-top: 22px;
}

.collaboration-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.collaboration-modal[hidden] {
  display: none !important;
}

.collaboration-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.86);
  backdrop-filter: blur(18px);
}

.collaboration-panel {
  position: relative;
  width: min(920px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  margin: 14px auto;
  overflow-y: auto;
  border: 1px solid var(--line2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(167, 120, 255, 0.12), transparent 30%),
    #0a0c10;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.collaboration-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.92);
  padding: 28px;
  backdrop-filter: blur(20px);
}

.collaboration-header h2,
.form-success h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.collaboration-header p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.modal-close {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 1.4rem;
}

.collaboration-form {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 28px;
}

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

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

.collaboration-form label {
  display: grid;
  gap: 8px;
}

.collaboration-form label > span,
.support-fieldset legend {
  color: white;
  font-size: 0.72rem;
  font-weight: 760;
}

.collaboration-form input,
.collaboration-form select,
.collaboration-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  color: white;
  padding: 14px 15px;
}

.collaboration-form select option {
  background: #0d0f13;
}

.collaboration-form textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.65;
}

.collaboration-form input:focus,
.collaboration-form select:focus,
.collaboration-form textarea:focus {
  border-color: var(--cyan);
  background: rgba(40, 216, 239, 0.035);
}

.collaboration-form input.invalid,
.collaboration-form select.invalid,
.collaboration-form textarea.invalid {
  border-color: #ff849a;
}

.support-fieldset {
  border: 0;
}

.support-fieldset legend {
  margin-bottom: 12px;
}

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

.support-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  cursor: pointer;
}

.support-grid input,
.confirmation input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--lime);
}

.message-field small {
  justify-self: end;
  color: var(--muted);
  font-size: 0.63rem;
}

.confirmation {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.confirmation span {
  color: var(--soft) !important;
  font-size: 0.72rem !important;
  line-height: 1.55;
}

.submit-button {
  width: 100%;
}

.form-demo-note {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.6;
}

.form-status {
  border: 1px solid rgba(255, 132, 154, 0.32);
  border-radius: 13px;
  background: rgba(255, 132, 154, 0.06);
  color: #ffacba;
  padding: 13px 15px;
  font-size: 0.78rem;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-success {
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(199, 255, 107, 0.45);
  border-radius: 50%;
  color: var(--lime);
  font-size: 1.8rem;
}

.form-success > p:not(.section-label) {
  max-width: 580px;
  margin-inline: auto;
  color: var(--soft);
}

.reference-box {
  display: grid;
  gap: 7px;
  max-width: 520px;
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 16px;
}

.reference-box span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.reference-box strong {
  overflow-wrap: anywhere;
  color: var(--lime);
  font-family: monospace;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .collaboration-panel {
    width: min(100% - 12px, 920px);
    max-height: calc(100svh - 12px);
    margin: 6px auto;
    border-radius: 20px;
  }

  .collaboration-header,
  .collaboration-form {
    padding: 20px 16px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PHASE 3 — FESTIVAL FEEDBACK MODAL
   ========================================================= */
.feedback-open-button{margin-top:20px}
.feedback-modal{position:fixed;inset:0;z-index:3100}
.feedback-modal[hidden]{display:none!important}
.feedback-backdrop{position:absolute;inset:0;background:rgba(2,3,5,.88);backdrop-filter:blur(18px)}
.feedback-panel{position:relative;width:min(920px,calc(100% - 28px));max-height:calc(100svh - 28px);margin:14px auto;overflow-y:auto;border:1px solid var(--line2);border-radius:28px;background:radial-gradient(circle at 92% 0%,rgba(40,216,239,.1),transparent 30%),#0a0c10;box-shadow:0 40px 120px rgba(0,0,0,.72)}
.feedback-modal-header{position:sticky;top:0;z-index:4;display:flex;align-items:start;justify-content:space-between;gap:30px;border-bottom:1px solid var(--line);background:rgba(10,12,16,.93);padding:28px;backdrop-filter:blur(20px)}
.feedback-modal-header h2{margin-bottom:8px;font-size:clamp(2rem,5vw,4rem);line-height:.98;letter-spacing:-.055em}
.feedback-modal-header p:last-child{color:var(--muted);font-size:.78rem}
.feedback-context{display:grid;grid-template-columns:1fr 1fr auto;gap:1px;margin:20px 28px 0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--line)}
.feedback-context>div{display:grid;gap:5px;align-content:center;min-width:0;background:rgba(255,255,255,.025);padding:16px}
.feedback-context span{color:var(--muted);font-size:.58rem;font-weight:850;letter-spacing:.1em}
.feedback-context strong{overflow-wrap:anywhere;font-size:.8rem}
.feedback-context-state{min-width:160px;grid-template-columns:auto 1fr!important;align-items:center;color:var(--warning)}
.feedback-context-state i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 12px currentColor}
.feedback-context-state.ready{color:var(--lime)}
.feedback-emergency{margin:14px 28px 0;border:1px solid rgba(255,213,134,.3);border-radius:15px;background:rgba(255,213,134,.045);padding:16px}
.feedback-emergency strong{color:var(--warning);font-size:.8rem}
.feedback-emergency p{margin-top:5px;color:var(--muted);font-size:.73rem;line-height:1.6}
.festival-feedback-form{position:relative;display:grid;gap:24px;padding:28px}
.feedback-fieldset{border:0}
.feedback-fieldset legend{margin-bottom:12px;font-size:.74rem;font-weight:780}
.feedback-option-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.feedback-option-grid label,.identity-grid label{position:relative;cursor:pointer}
.feedback-option-grid input,.feedback-category-grid input,.identity-grid input,.star-rating input{position:absolute;opacity:0;pointer-events:none}
.feedback-option-grid label>span,.identity-grid label>span{display:grid;min-height:92px;gap:5px;align-content:center;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.022);padding:15px;transition:border-color var(--ease),background var(--ease)}
.feedback-option-grid strong,.identity-grid strong{font-size:.79rem}
.feedback-option-grid small,.identity-grid small{color:var(--muted);font-size:.67rem;line-height:1.45}
.feedback-option-grid input:checked+span,.identity-grid input:checked+span{border-color:rgba(199,255,107,.55);background:rgba(199,255,107,.065)}
.safety-option input:checked+span{border-color:rgba(255,132,154,.55);background:rgba(255,132,154,.065)}
.feedback-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.feedback-category-grid label{cursor:pointer}
.feedback-category-grid label>span{display:grid;min-height:54px;place-items:center;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02);padding:10px;font-size:.69rem;font-weight:720;text-align:center}
.feedback-category-grid input:checked+span{border-color:rgba(40,216,239,.55);background:rgba(40,216,239,.065);color:var(--cyan)}
.safety-alert{margin-top:12px;border:1px solid rgba(255,132,154,.35);border-radius:14px;background:rgba(255,132,154,.055);padding:15px}
.safety-alert strong{color:#ffacba;font-size:.77rem}
.safety-alert p{margin-top:5px;color:var(--muted);font-size:.7rem}
.star-rating{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.star-rating label{display:grid;min-height:66px;place-items:center;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.02);color:var(--muted);cursor:pointer}
.star-rating label>span{font-size:1.25rem}
.star-rating label>small{font-size:.58rem}
.star-rating label.selected{border-color:rgba(199,255,107,.55);background:rgba(199,255,107,.065);color:var(--lime)}
.field-help{margin-top:8px;color:var(--muted);font-size:.64rem}
.identity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.feedback-contact-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px;border:0;background:transparent;padding:15px}
.feedback-contact-fields label{display:grid;gap:8px}
.feedback-contact-fields label>span{font-size:.7rem;font-weight:720}
.feedback-contact-fields input,.festival-feedback-form textarea{width:100%;border:1px solid var(--line);border-radius:14px;outline:none;background:rgba(255,255,255,.025);color:white;padding:14px 15px}
.feedback-contact-fields input:focus,.festival-feedback-form textarea:focus{border-color:var(--cyan)}
.feedback-success-context{display:grid;grid-template-columns:repeat(2,1fr);max-width:520px;margin:12px auto 24px;overflow:hidden;border:1px solid var(--line);border-radius:14px}
.feedback-success-context p{display:grid;gap:5px;margin:0;padding:14px}
.feedback-success-context p+p{border-left:1px solid var(--line)}
.feedback-success-context span{color:var(--muted);font-size:.58rem;font-weight:850}
.feedback-success-context strong{overflow-wrap:anywhere;font-size:.76rem}
#fb-submit:disabled{cursor:not-allowed;opacity:.42;transform:none}
@media(max-width:720px){.feedback-panel{width:min(100% - 12px,920px);max-height:calc(100svh - 12px);margin:6px auto;border-radius:20px}.feedback-modal-header,.festival-feedback-form{padding:20px 16px}.feedback-context{grid-template-columns:1fr;margin:16px 16px 0}.feedback-context-state{min-width:0}.feedback-emergency{margin:12px 16px 0}.feedback-option-grid,.identity-grid,.feedback-contact-fields{grid-template-columns:1fr}.feedback-category-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:440px){.feedback-category-grid{grid-template-columns:repeat(2,1fr)}}


/* =========================================================
   PHASE 4 — DYNAMIC PUBLIC COLLABORATIONS
   ========================================================= */

.event-empty-state {
  border: 1px dashed var(--line2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.018);
  padding: clamp(30px, 6vw, 62px);
  text-align: center;
}

.event-empty-state > span {
  display: block;
  margin-bottom: 14px;
  color: var(--lime);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.event-empty-state h3 {
  max-width: 680px;
  margin: 0 auto 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.event-empty-state p {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
}

.event-card-image {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(40, 216, 239, 0.12), transparent 28%),
    linear-gradient(145deg, #11141a, #090a0d);
}

.event-card-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.event-card-placeholder {
  display: grid;
  min-height: 350px;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.event-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.event-meta-line span + span::before {
  content: "•";
  margin-right: 12px;
  color: var(--line2);
}

.event-role-note {
  margin-top: 16px;
  border-left: 2px solid var(--cyan);
  padding-left: 13px;
  color: var(--soft);
  font-size: 0.75rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.event-link.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

@media (max-width: 640px) {
  .event-card-image,
  .event-card-image img,
  .event-card-placeholder {
    min-height: 285px;
  }
}


/* =========================================================
   PHASE 5 — FIREBASE CONNECTION STATUS
   ========================================================= */

.modal-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.modal-mode-row .section-label {
  margin-bottom: 0;
}

.storage-mode-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.storage-mode-badge.is-online {
  border-color: rgba(199, 255, 107, 0.34);
  background: rgba(199, 255, 107, 0.055);
  color: var(--lime);
}

.storage-mode-badge.is-demo {
  border-color: rgba(255, 213, 134, 0.3);
  background: rgba(255, 213, 134, 0.045);
  color: var(--warning);
}

.storage-mode-badge.is-error {
  border-color: rgba(255, 132, 154, 0.34);
  background: rgba(255, 132, 154, 0.055);
  color: #ffacba;
}

#firebase-public-status {
  border-left: 2px solid var(--line2);
  padding-left: 12px;
}

#firebase-public-status.is-online {
  border-left-color: var(--lime);
  color: var(--lime) !important;
}

#firebase-public-status.is-demo {
  border-left-color: var(--warning);
}

@media (max-width: 520px) {
  .modal-mode-row {
    display: grid;
    justify-items: start;
  }
}


/* =========================================================
   CORRECTED UI — CODED PSYTRANCE BACKGROUND
   The uploaded logo artwork is NOT used as the page background.
   ========================================================= */

.reference-header {
  background: rgba(2, 2, 12, 0.35);
  border-bottom: 1px solid rgba(163, 71, 255, 0.22);
  backdrop-filter: blur(14px);
}

.reference-header.scrolled {
  background: rgba(2, 2, 12, 0.93);
  border-color: rgba(77, 181, 255, 0.28);
}

.reference-header-inner {
  width: min(1480px, calc(100% - 42px));
  min-height: 78px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(205px, 1fr) auto minmax(205px, 1fr);
  align-items: center;
  gap: 28px;
}

.reference-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.reference-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(86, 208, 255, 0.42);
  border-radius: 14px;
  box-shadow:
    0 0 15px rgba(69, 211, 255, 0.35),
    0 0 25px rgba(211, 68, 255, 0.2);
}

.reference-brand > span {
  display: grid;
  gap: 1px;
}

.reference-brand strong {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.reference-brand small {
  color: rgba(255,255,255,.58);
  font-size: 0.48rem;
  font-weight: 760;
  letter-spacing: 0.15em;
}

.reference-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(21px, 3.2vw, 55px);
}

.reference-desktop-nav a,
.reference-desktop-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.reference-desktop-nav a::after,
.reference-desktop-nav button::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -16px;
  left: 50%;
  height: 1px;
  background: #dc4dff;
  box-shadow: 0 0 11px #dc4dff;
  transition: left var(--ease), right var(--ease);
}

.reference-desktop-nav a.active::after,
.reference-desktop-nav a:hover::after,
.reference-desktop-nav button:hover::after {
  right: 0;
  left: 0;
}

.reference-header .header-actions {
  justify-self: end;
}

.reference-header .language-button {
  min-width: 82px;
  justify-content: center;
  border-color: rgba(207, 71, 255, 0.42);
}

.reference-header .menu-button {
  display: none;
}

/* Main hero */
.coded-psy-hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 110px 0 148px;
  background: #02020b;
}

.psy-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(39, 105, 255, .28), transparent 30%),
    radial-gradient(circle at 35% 37%, rgba(205, 42, 255, .24), transparent 26%),
    radial-gradient(circle at 68% 42%, rgba(26, 212, 255, .22), transparent 28%),
    linear-gradient(180deg, #01020c 0%, #090329 42%, #120231 70%, #02020c 100%);
}

.psy-space {
  position: absolute;
  inset: 0;
  opacity: .76;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(47,218,255,.9) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(238,77,255,.82) 0 1px, transparent 1.7px);
  background-size: 79px 79px, 137px 137px, 193px 193px;
  background-position: 8px 4px, 29px 61px, 91px 12px;
  animation: codedStars 36s linear infinite;
}

@keyframes codedStars {
  to { transform: translateY(79px); }
}

.psy-nebula {
  position: absolute;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .42;
  animation: codedNebula 13s ease-in-out infinite alternate;
}

.psy-nebula-left {
  top: 8%;
  left: -18%;
  background: conic-gradient(from 40deg, transparent, #b51fff, #145dff, transparent);
}

.psy-nebula-right {
  top: 2%;
  right: -18%;
  background: conic-gradient(from -30deg, transparent, #00dfff, #7422ff, transparent);
  animation-delay: -5s;
}

@keyframes codedNebula {
  to { transform: scale(1.12) rotate(12deg); }
}

.psy-mandala {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(76vw, 840px);
  color: rgba(89, 185, 255, .42);
  filter:
    drop-shadow(0 0 8px rgba(49, 186, 255, .72))
    drop-shadow(0 0 17px rgba(205, 54, 255, .44));
  transform: translate(-50%, -50%);
  animation: codedMandala 62s linear infinite;
}

.psy-mandala g {
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

@keyframes codedMandala {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.psy-laser {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 2px;
  height: 78%;
  background: linear-gradient(to top, rgba(58,225,255,.95), transparent);
  filter: drop-shadow(0 0 9px currentColor);
  transform-origin: center bottom;
  opacity: .58;
}

.psy-laser-1 { transform: translateX(-50%) rotate(-31deg); color:#24dfff; }
.psy-laser-2 { transform: translateX(-50%) rotate(-15deg); color:#dc45ff; }
.psy-laser-3 { transform: translateX(-50%) rotate(15deg); color:#29cfff; }
.psy-laser-4 { transform: translateX(-50%) rotate(31deg); color:#ef4aff; }

.psy-stage {
  position: absolute;
  right: 0;
  bottom: 5.5%;
  left: 0;
  height: 19%;
  opacity: .82;
  clip-path: polygon(0 100%, 0 84%, 8% 84%, 12% 65%, 18% 76%, 23% 49%, 31% 74%, 39% 42%, 50% 3%, 61% 42%, 69% 74%, 77% 49%, 82% 76%, 88% 65%, 92% 84%, 100% 84%, 100% 100%);
  background:
    linear-gradient(to bottom, rgba(45,205,255,.8), rgba(178,42,255,.72) 35%, rgba(1,2,11,.96) 68%);
  filter: drop-shadow(0 0 18px rgba(63,194,255,.48));
}

.psy-stage span {
  position: absolute;
  bottom: 28%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67e8ff;
  box-shadow:
    0 0 10px #67e8ff,
    0 0 25px #cf42ff;
}

.psy-stage span:nth-child(2){transform:translateX(-120px)}
.psy-stage span:nth-child(3){transform:translateX(120px)}
.psy-stage span:nth-child(4){transform:translateX(-250px)}
.psy-stage span:nth-child(5){transform:translateX(250px)}

.psy-crowd {
  position: absolute;
  right: -2%;
  bottom: -2px;
  left: -2%;
  height: 13%;
  opacity: .98;
  background:
    radial-gradient(ellipse at 3% 100%, #000 0 20px, transparent 21px),
    radial-gradient(ellipse at 8% 100%, #000 0 28px, transparent 29px),
    radial-gradient(ellipse at 14% 100%, #000 0 21px, transparent 22px),
    radial-gradient(ellipse at 20% 100%, #000 0 30px, transparent 31px),
    radial-gradient(ellipse at 27% 100%, #000 0 24px, transparent 25px),
    radial-gradient(ellipse at 34% 100%, #000 0 32px, transparent 33px),
    radial-gradient(ellipse at 41% 100%, #000 0 25px, transparent 26px),
    radial-gradient(ellipse at 48% 100%, #000 0 34px, transparent 35px),
    radial-gradient(ellipse at 56% 100%, #000 0 26px, transparent 27px),
    radial-gradient(ellipse at 64% 100%, #000 0 32px, transparent 33px),
    radial-gradient(ellipse at 72% 100%, #000 0 23px, transparent 24px),
    radial-gradient(ellipse at 79% 100%, #000 0 31px, transparent 32px),
    radial-gradient(ellipse at 87% 100%, #000 0 25px, transparent 26px),
    radial-gradient(ellipse at 95% 100%, #000 0 30px, transparent 31px),
    linear-gradient(transparent 0 43%, #000 44%);
}

.coded-psy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,10,.44), transparent 19%, transparent 81%, rgba(0,0,10,.44)),
    linear-gradient(to bottom, rgba(0,0,8,.02), transparent 52%, rgba(0,0,8,.9) 100%);
}

.coded-hero-content {
  position: relative;
  z-index: 2;
}

.coded-brand-composition {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.coded-logo-art {
  position: relative;
  width: min(610px, 64vw);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 42px;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 18px rgba(43,211,255,.48))
    drop-shadow(0 0 34px rgba(214,66,255,.35));
  -webkit-mask-image: radial-gradient(ellipse at center, black 42%, rgba(0,0,0,.88) 61%, transparent 79%);
  mask-image: radial-gradient(ellipse at center, black 42%, rgba(0,0,0,.88) 61%, transparent 79%);
}

.coded-logo-art img {
  width: 100%;
  height: auto;
}

.coded-brand-line {
  margin: -34px auto 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(.7rem,1.2vw,.92rem);
  font-weight: 730;
  letter-spacing: .085em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(79,199,255,.75);
}

.coded-action-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  width: min(930px,100%);
  margin: 32px auto 0;
}

.coded-action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 125px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 21px;
  background: rgba(5,6,29,.66);
  padding: 22px 26px;
  color: white;
  text-align: left;
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform var(--ease),background var(--ease),box-shadow var(--ease);
}

.coded-action-card::before {
  content:"";
  position:absolute;
  inset:0;
  opacity:.25;
  background:radial-gradient(circle at 12% 22%,currentColor,transparent 44%);
}

.coded-action-card:hover {
  transform:translateY(-6px) scale(1.01);
  background:rgba(9,9,39,.85);
}

.coded-action-work {
  color:#ff68ff;
  border-color:rgba(255,81,255,.76);
  box-shadow:inset 0 0 24px rgba(255,72,235,.08),0 0 30px rgba(235,61,255,.18);
}

.coded-action-feedback {
  color:#65dfff;
  border-color:rgba(73,215,255,.78);
  box-shadow:inset 0 0 24px rgba(60,202,255,.08),0 0 30px rgba(58,199,255,.18);
}

.coded-action-icon {
  position:relative;
  z-index:1;
  display:grid;
  width:64px;
  height:64px;
  place-items:center;
  border:1px solid currentColor;
  border-radius:18px;
  filter:drop-shadow(0 0 8px currentColor);
}

.coded-action-icon svg {
  width:38px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.coded-action-copy {
  position:relative;
  z-index:1;
  display:grid;
  gap:7px;
}

.coded-action-copy strong {
  font-size:1.08rem;
}

.coded-action-copy small {
  color:rgba(255,255,255,.68);
  font-size:.76rem;
}

.coded-action-arrow {
  position:relative;
  z-index:1;
  color:currentColor;
  font-size:1.35rem;
}

.coded-hero-footer {
  position:absolute;
  right:30px;
  bottom:18px;
  left:30px;
  z-index:2;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:end;
  gap:24px;
}

.coded-audio-ui {
  justify-self:start;
  display:inline-flex;
  min-height:38px;
  align-items:center;
  gap:10px;
  border:1px solid rgba(212,81,255,.42);
  border-radius:999px;
  background:rgba(4,4,18,.56);
  padding:7px 14px;
}

.coded-audio-ui strong,
.coded-audio-ui small,
.coded-socials>span,
.coded-scroll>span {
  font-size:.57rem;
  font-weight:760;
  letter-spacing:.09em;
}

.coded-scroll {
  display:grid;
  justify-items:center;
  gap:8px;
  color:rgba(255,255,255,.74);
}

.coded-scroll i {
  position:relative;
  width:1px;
  height:34px;
  overflow:hidden;
  background:rgba(255,255,255,.18);
}

.coded-scroll i::after {
  content:"";
  position:absolute;
  inset:0;
  background:#da53ff;
  box-shadow:0 0 10px #da53ff;
  animation:codedScroll 1.8s infinite ease-in-out;
}

@keyframes codedScroll {
  from{transform:translateY(-100%)}
  to{transform:translateY(100%)}
}

.coded-socials {
  justify-self:end;
  display:flex;
  align-items:center;
  gap:11px;
}

.coded-socials a {
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  font-size:.72rem;
}

@media(max-width:1120px){
  .reference-header-inner{grid-template-columns:1fr auto}
  .reference-desktop-nav{display:none}
  .reference-header .menu-button{display:flex}
}

@media(max-width:800px){
  .coded-psy-hero{min-height:900px;padding:104px 0 148px}
  .coded-action-grid{grid-template-columns:1fr;width:min(560px,100%)}
  .coded-logo-art{width:min(580px,88vw)}
  .coded-brand-line{margin-top:-22px}
  .coded-hero-footer{grid-template-columns:1fr auto}
  .coded-socials{display:none}
  .coded-scroll{justify-self:end}
}

@media(max-width:560px){
  .reference-header-inner{width:min(100% - 22px,1480px);min-height:72px}
  .reference-brand>span{display:none}
  .reference-brand img{width:42px;height:42px}
  .reference-header .language-button{display:flex;min-width:74px}
  .coded-psy-hero{min-height:820px;padding:96px 0 128px}
  .psy-mandala{width:145vw;top:36%}
  .coded-logo-art{width:100vw;margin-left:calc(50% - 50vw);border-radius:0}
  .coded-brand-line{width:min(100% - 16px,430px);margin-top:-12px;font-size:.61rem}
  .coded-action-card{min-height:102px;gap:13px;padding:16px}
  .coded-action-icon{width:48px;height:48px;border-radius:14px}
  .coded-action-icon svg{width:30px}
  .coded-action-copy strong{font-size:.9rem}
  .coded-action-copy small{font-size:.66rem}
  .coded-hero-footer{right:14px;bottom:13px;left:14px}
  .coded-audio-ui{display:none}
  .coded-scroll{grid-column:1/-1;justify-self:center}
}


/* =========================================================
   BACKGROUND IMAGE UPDATE
   Uses assets/images/hero-bg.webp as the real Hero background.
   The logo artwork remains a separate foreground element.
   ========================================================= */

.coded-psy-hero {
  background:
    linear-gradient(
      to bottom,
      rgba(1, 2, 12, 0.08) 0%,
      rgba(1, 2, 12, 0.14) 48%,
      rgba(1, 2, 12, 0.88) 100%
    ),
    url("../assets/images/hero-bg.webp") center center / cover no-repeat;
}

/* Disable the old generated background because the new image replaces it. */
.coded-psy-hero .psy-background {
  display: none;
}

/* Improve readability while keeping the artwork seamless. */
.coded-psy-hero::after {
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(24, 179, 255, 0.03) 0%,
      rgba(3, 3, 16, 0.08) 48%,
      rgba(2, 2, 12, 0.54) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 10, 0.28),
      transparent 18%,
      transparent 82%,
      rgba(0, 0, 10, 0.28)
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      transparent 58%,
      rgba(0, 0, 10, 0.72) 100%
    );
}

/* Feather the logo artwork so its edges blend into the new background. */
.coded-logo-art {
  mix-blend-mode: screen;
  background: transparent;
  -webkit-mask-image:
    radial-gradient(
      ellipse at center,
      #000 0%,
      #000 46%,
      rgba(0, 0, 0, 0.92) 60%,
      rgba(0, 0, 0, 0.40) 73%,
      transparent 88%
    );
  mask-image:
    radial-gradient(
      ellipse at center,
      #000 0%,
      #000 46%,
      rgba(0, 0, 0, 0.92) 60%,
      rgba(0, 0, 0, 0.40) 73%,
      transparent 88%
    );
}

@media (max-width: 800px) {
  .coded-psy-hero {
    background-position: center center;
  }
}

@media (max-width: 560px) {
  .coded-psy-hero {
    background-position: 50% center;
  }
}


/* =========================================================
   PHASE 7 — INTERNAL QR GENERATOR
   Public UI remains unchanged unless ?qrtools=1 is used.
   ========================================================= */

.qr-tools-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2400;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(199, 255, 107, 0.42);
  border-radius: 999px;
  background: rgba(7, 10, 17, 0.9);
  color: var(--lime);
  padding: 10px 15px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(199, 255, 107, 0.1);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.qr-tools-launcher[hidden] {
  display: none !important;
}

.qr-tools-launcher strong {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.qr-tools-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
}

.qr-tools-modal[hidden] {
  display: none !important;
}

.qr-tools-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 6, 0.88);
  backdrop-filter: blur(18px);
}

.qr-tools-panel {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  margin: 12px auto;
  overflow-y: auto;
  border: 1px solid var(--line2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(199, 255, 107, 0.07), transparent 24%),
    radial-gradient(circle at 0% 15%, rgba(40, 216, 239, 0.08), transparent 26%),
    #090b0f;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.75);
}

.qr-tools-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.94);
  padding: 26px;
  backdrop-filter: blur(20px);
}

.qr-tools-header h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.qr-tools-header p:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.qr-tools-body {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.qr-tool-warning {
  border: 1px solid rgba(255, 213, 134, 0.3);
  border-radius: 15px;
  background: rgba(255, 213, 134, 0.045);
  padding: 15px;
}

.qr-tool-warning strong {
  color: var(--warning);
  font-size: 0.78rem;
}

.qr-tool-warning p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.qr-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 18px;
  align-items: start;
}

.qr-generator-form {
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.018);
  padding: 20px;
}

.qr-form-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 3px;
}

.qr-form-heading span,
.qr-active-section header span {
  color: var(--lime);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.qr-form-heading strong,
.qr-active-section header strong {
  font-size: 1rem;
}

.qr-generator-form label {
  display: grid;
  gap: 7px;
}

.qr-generator-form label > span {
  color: white;
  font-size: 0.7rem;
  font-weight: 760;
}

.qr-generator-form label > small {
  color: var(--muted);
  font-size: 0.61rem;
}

.qr-generator-form input,
.qr-generator-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  color: white;
  padding: 13px 14px;
}

.qr-generator-form input:focus,
.qr-generator-form textarea:focus {
  border-color: var(--cyan);
}

.qr-secondary-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.qr-secondary-button:hover:not(:disabled) {
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.06);
}

.qr-secondary-button:disabled,
.qr-preview-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.qr-preview-column {
  display: grid;
  gap: 12px;
}

.qr-preview-card {
  width: min(100%, 620px);
  margin-inline: auto;
  border: 10px solid white;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 15%, rgba(86, 63, 255, 0.12), transparent 24%),
    white;
  color: #08090d;
  padding: clamp(22px, 5vw, 42px);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.qr-preview-brand {
  display: grid;
  gap: 3px;
}

.qr-preview-brand strong {
  font-size: clamp(1.15rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.qr-preview-brand span {
  color: #565b68;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.qr-preview-card h3 {
  margin: 24px 0 7px;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

.qr-preview-card > p {
  color: #515763;
  font-size: 0.82rem;
}

.qr-canvas-wrap {
  display: grid;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 22px auto;
  place-items: center;
  border: 1px solid #e4e7eb;
  background: white;
  padding: 15px;
}

#qr-code-output {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

#qr-code-output canvas,
#qr-code-output img {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.qr-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
}

.qr-preview-meta > div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.qr-preview-meta > div + div {
  border-left: 1px solid #dfe3e8;
}

.qr-preview-meta dt {
  color: #777e8a;
  font-size: 0.53rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.qr-preview-meta dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #101218;
  font-size: 0.74rem;
  font-weight: 800;
}

.qr-preview-url {
  margin-top: 14px;
  overflow-wrap: anywhere;
  color: #69707d !important;
  font-family: monospace;
  font-size: 0.58rem !important;
}

.qr-emergency-note {
  display: block;
  margin-top: 13px;
  color: #7b3e45;
  font-size: 0.57rem;
  line-height: 1.45;
}

.qr-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.qr-preview-actions .button {
  grid-column: 1 / -1;
  width: 100%;
}

.qr-active-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.016);
  padding: 18px;
}

.qr-active-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.qr-active-section > header > div {
  display: grid;
  gap: 4px;
}

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

.qr-active-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  padding: 13px;
}

.qr-active-item > div {
  min-width: 0;
}

.qr-active-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}

.qr-active-item p {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.62rem;
}

.qr-active-item button {
  min-width: 82px;
}

.qr-active-empty {
  border: 1px dashed var(--line2);
  border-radius: 13px;
  color: var(--muted);
  padding: 22px;
  font-size: 0.7rem;
  text-align: center;
}

body.qr-tools-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .qr-tools-grid {
    grid-template-columns: 1fr;
  }

  .qr-preview-column {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .qr-tools-panel {
    width: calc(100% - 10px);
    max-height: calc(100svh - 10px);
    margin: 5px auto;
    border-radius: 20px;
  }

  .qr-tools-header,
  .qr-tools-body {
    padding: 17px 14px;
  }

  .qr-preview-card {
    border-width: 6px;
    padding: 20px 14px;
  }

  .qr-preview-actions {
    grid-template-columns: 1fr;
  }

  .qr-preview-actions .button {
    grid-column: auto;
  }

  .qr-active-item {
    grid-template-columns: 1fr;
  }

  .qr-active-item button {
    width: 100%;
  }
}


/* =========================================================
   PHASE 8 — INTERNAL PRODUCTION PREFLIGHT
   Hidden unless the URL contains ?setupcheck=1
   ========================================================= */

.setup-check-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2400;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(40, 216, 239, 0.4);
  border-radius: 999px;
  background: rgba(7, 10, 17, 0.9);
  color: var(--cyan);
  padding: 10px 15px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(40, 216, 239, 0.1);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.setup-check-launcher[hidden],
.setup-check-modal[hidden] {
  display: none !important;
}

.setup-check-launcher strong {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.setup-check-modal {
  position: fixed;
  inset: 0;
  z-index: 3250;
}

.setup-check-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 6, 0.88);
  backdrop-filter: blur(18px);
}

.setup-check-panel {
  position: relative;
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  margin: 12px auto;
  overflow-y: auto;
  border: 1px solid var(--line2);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(40, 216, 239, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 0% 15%,
      rgba(155, 53, 255, 0.08),
      transparent 26%
    ),
    #090b0f;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.75);
}

.setup-check-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.94);
  padding: 26px;
  backdrop-filter: blur(20px);
}

.setup-check-header h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.setup-check-header p:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.setup-check-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.setup-score-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
  padding: 20px;
}

.setup-score-card > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.setup-score-card span {
  color: var(--cyan);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.setup-score-card strong {
  color: white;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.8;
}

.setup-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.setup-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--violet),
      var(--cyan),
      var(--lime)
    );
  transition: width 0.35s ease;
}

.setup-score-card p {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.setup-check-section {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.016);
  padding: 17px;
}

.setup-check-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.setup-check-section > header > div {
  display: grid;
  gap: 4px;
}

.setup-check-section > header span {
  color: var(--lime);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.setup-check-section > header strong {
  font-size: 0.94rem;
}

.setup-check-list,
.setup-placeholder-list,
.setup-technical-grid {
  display: grid;
  gap: 8px;
}

.setup-check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
}

.setup-check-item-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}

.setup-check-item.is-ready .setup-check-item-icon {
  background: rgba(199, 255, 107, 0.12);
  color: var(--lime);
}

.setup-check-item.is-missing .setup-check-item-icon {
  background: rgba(255, 132, 154, 0.1);
  color: #ff9caf;
}

.setup-check-item strong {
  display: block;
  font-size: 0.7rem;
}

.setup-check-item p {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.setup-placeholder-item,
.setup-technical-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  padding: 11px;
}

.setup-placeholder-item code {
  overflow-wrap: anywhere;
  color: #ffb3c0;
  font-size: 0.65rem;
}

.setup-placeholder-empty {
  border: 1px dashed rgba(199, 255, 107, 0.35);
  border-radius: 12px;
  color: var(--lime);
  padding: 18px;
  font-size: 0.7rem;
  text-align: center;
}

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

.setup-technical-item span {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.setup-technical-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.7rem;
}

.setup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.setup-actions .button {
  width: 100%;
}

body.setup-check-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .setup-check-grid,
  .setup-technical-grid,
  .setup-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .setup-check-panel {
    width: calc(100% - 10px);
    max-height: calc(100svh - 10px);
    margin: 5px auto;
    border-radius: 20px;
  }

  .setup-check-header,
  .setup-check-body {
    padding: 17px 14px;
  }
}


/* =========================================================
   PHASE 9 — PUBLIC CONTENT READY
   Unconfirmed data stays private and no placeholder is shown publicly.
   ========================================================= */

[data-contact-card][hidden],
[data-social-group][hidden],
[data-config-link][hidden],
.contact-empty-state[hidden] {
  display: none !important;
}

.contact-empty-state {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: 9px;
  border: 1px dashed var(--line2);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(40, 216, 239, 0.06),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.012);
  padding: 30px;
  text-align: center;
}

.contact-empty-state > span {
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.contact-empty-state h3 {
  max-width: 680px;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

.contact-empty-state p {
  max-width: 590px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.event-card-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 230px;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(40, 216, 239, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 48% 54%,
      rgba(155, 53, 255, 0.15),
      transparent 44%
    ),
    #090b13;
}

.event-card-placeholder span {
  color: var(--cyan);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.event-card-placeholder strong {
  color: white;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.045em;
}


/* =========================================================
   PHASE 10 — LOCAL CONTENT MANAGER
   Hidden unless the URL contains ?contenttools=1
   ========================================================= */

.content-tools-launcher {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2450;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(207, 84, 255, 0.46);
  border-radius: 999px;
  background: rgba(7, 10, 17, 0.92);
  color: #e3a6ff;
  padding: 10px 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(207, 84, 255, 0.14);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  cursor: pointer;
}

.content-tools-launcher[hidden],
.content-tools-modal[hidden] {
  display: none !important;
}

.content-tools-launcher strong {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.content-tools-modal {
  position: fixed;
  inset: 0;
  z-index: 3300;
}

.content-tools-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 6, 0.9);
  backdrop-filter: blur(19px);
}

.content-tools-panel {
  position: relative;
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  margin: 12px auto;
  overflow-y: auto;
  border: 1px solid var(--line2);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(207, 84, 255, 0.09),
      transparent 25%
    ),
    radial-gradient(
      circle at 0% 18%,
      rgba(40, 216, 239, 0.08),
      transparent 27%
    ),
    #090b0f;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.78);
}

.content-tools-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.95);
  padding: 26px;
  backdrop-filter: blur(20px);
}

.content-tools-header h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.content-tools-header p:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.content-tools-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.content-tools-warning {
  border: 1px solid rgba(255, 213, 134, 0.3);
  border-radius: 15px;
  background: rgba(255, 213, 134, 0.045);
  padding: 15px;
}

.content-tools-warning strong {
  color: var(--warning);
  font-size: 0.78rem;
}

.content-tools-warning p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.6;
}

#content-manager-form {
  display: grid;
  gap: 18px;
}

.content-editor-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.016);
  padding: 18px;
}

.content-editor-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.content-editor-section > header > div {
  display: grid;
  gap: 4px;
}

.content-editor-section > header span {
  color: var(--lime);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.content-editor-section > header strong {
  font-size: 0.96rem;
}

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

.content-editor-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.content-editor-grid label > span {
  color: white;
  font-size: 0.67rem;
  font-weight: 740;
}

.content-editor-grid input,
.content-editor-grid textarea,
.content-editor-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.024);
  color: white;
  padding: 12px 13px;
}

.content-editor-grid input:focus,
.content-editor-grid textarea:focus,
.content-editor-grid select:focus {
  border-color: var(--cyan);
}

.content-editor-grid select option {
  background: #0c0f16;
  color: white;
}

.content-editor-span-2 {
  grid-column: 1 / -1;
}

.content-check-label {
  align-content: center;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  justify-content: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.content-check-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}

.content-editor-help {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.6;
}

.content-editor-help code {
  color: var(--cyan);
}

.content-secondary-button,
.content-danger-button,
.content-import-button {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.63rem;
  font-weight: 820;
  letter-spacing: 0.055em;
}

.content-secondary-button:hover,
.content-import-button:hover {
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.06);
}

.content-danger-button {
  border-color: rgba(255, 132, 154, 0.25);
  color: #ffadbb;
}

.content-danger-button:hover {
  background: rgba(255, 132, 154, 0.08);
}

.content-repeat-list {
  display: grid;
  gap: 12px;
}

.content-repeat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  padding: 15px;
}

.content-repeat-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.content-repeat-card > header strong {
  color: var(--cyan);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.content-remove-button {
  border: 0;
  background: transparent;
  color: #ff9daf;
  padding: 6px;
  cursor: pointer;
  font-size: 0.59rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.content-tools-status {
  border: 1px solid rgba(255, 132, 154, 0.28);
  border-radius: 13px;
  background: rgba(255, 132, 154, 0.055);
  color: #ffafbd;
  padding: 13px;
  font-size: 0.7rem;
}

.content-tools-status[data-mode="success"] {
  border-color: rgba(199, 255, 107, 0.3);
  background: rgba(199, 255, 107, 0.05);
  color: var(--lime);
}

.content-main-actions,
.content-data-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.content-main-actions .button {
  width: 100%;
}

.content-data-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-import-button {
  display: grid;
  place-items: center;
}

.content-import-button input {
  display: none;
}

.content-storage-summary {
  margin-top: 12px;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  color: var(--muted);
  padding: 13px;
  font-size: 0.67rem;
  line-height: 1.55;
}

body.content-tools-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .content-editor-grid,
  .content-main-actions,
  .content-data-actions {
    grid-template-columns: 1fr;
  }

  .content-editor-span-2 {
    grid-column: auto;
  }

  .content-editor-section > header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .content-tools-panel {
    width: calc(100% - 10px);
    max-height: calc(100svh - 10px);
    margin: 5px auto;
    border-radius: 20px;
  }

  .content-tools-header,
  .content-tools-body {
    padding: 17px 14px;
  }

  .content-tools-launcher {
    bottom: 74px;
  }
}


/* =========================================================
   PHASE 16 — PRODUCTION FINAL RESPONSIVE POLISH
   ========================================================= */

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a[role="button"],
.primary-button,
.secondary-button {
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

@media (max-width: 480px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .modal-card,
  .feedback-card {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   PHASE 16.1 — FEEDBACK LANGUAGE SWITCH
   ========================================================= */

.feedback-modal-header > div:first-child {
  min-width: 0;
}

.feedback-modal-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
}

.feedback-language-control {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.feedback-language-control > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.feedback-language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.feedback-language-switch button {
  min-width: 48px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.feedback-language-switch button:hover {
  color: #fff;
}

.feedback-language-switch button.active {
  background: var(--lime);
  color: #07100c;
  box-shadow: 0 0 18px rgba(190, 255, 86, 0.2);
}

.feedback-language-switch button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .feedback-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .feedback-modal-actions {
    position: sticky;
    top: 0;
    z-index: 6;
    gap: 8px;
  }

  .feedback-language-control > span {
    display: none;
  }

  .feedback-language-switch button {
    min-width: 44px;
    min-height: 42px;
  }

  .feedback-modal-actions .modal-close {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .feedback-modal-header {
    padding-top: 14px;
  }

  .feedback-modal-header h2 {
    font-size: clamp(1.65rem, 9.8vw, 2.45rem);
  }

  .feedback-modal-header p:last-child {
    font-size: 0.72rem;
  }

  .feedback-language-switch button {
    min-width: 40px;
    padding-inline: 8px;
  }
}


/* =========================================================
   PHASE 16.2 — SMART FEEDBACK ACCESS
   ========================================================= */
.feedback-context-picker{margin:20px 28px 0;padding:18px;border:0;background:transparent}
.feedback-context-picker-heading>span,.feedback-context-picker-heading>strong,.feedback-context-picker-heading>p{display:block}
.feedback-context-picker-heading>span{color:var(--lime);font-size:.62rem;font-weight:900;letter-spacing:.12em}
.feedback-context-picker-heading>strong{margin-top:6px;font-size:1rem}
.feedback-context-picker-heading>p{margin:6px 0 0;color:var(--muted);font-size:.76rem;line-height:1.55}
.feedback-context-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.feedback-context-picker-grid label{display:grid;gap:7px}
.feedback-context-picker-grid label>span{color:rgba(255,255,255,.76);font-size:.73rem;font-weight:800}
.feedback-context-picker-grid select{width:100%;min-height:48px;padding:0 13px;border:1px solid var(--line2);border-radius:12px;outline:none;background:#11141a;color:#fff;font:inherit}
.feedback-context-picker-grid select:focus{border-color:var(--lime);box-shadow:0 0 0 3px rgba(190,255,86,.1)}
.feedback-context-picker-grid select:disabled{cursor:not-allowed;opacity:.56}
.feedback-context-picker-status{min-height:1.25em;margin:12px 0 0;color:var(--muted);font-size:.73rem}
.feedback-context-picker-status[data-mode="success"]{color:var(--lime)}
.feedback-context-picker-status[data-mode="warning"]{color:var(--warning)}
.feedback-context-picker-status[data-mode="error"]{color:#ff9baa}
@media(max-width:720px){.feedback-context-picker{margin:16px 16px 0;padding:15px}.feedback-context-picker-grid{grid-template-columns:1fr}.feedback-context-picker-grid select{font-size:16px}}

/* =========================================================
   PHASE 16.3 — FEEDBACK LANDING PAGE CLEANUP
   ========================================================= */

.feedback-access-guide {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(
      circle at top right,
      rgba(190, 255, 86, 0.07),
      transparent 46%
    ),
    rgba(0, 0, 0, 0.18);
}

.feedback-access-guide > span {
  color: var(--lime);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feedback-access-guide-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feedback-access-guide-row strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(190, 255, 86, 0.32);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.feedback-access-guide-row p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.79rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .feedback-access-guide {
    padding: 15px;
  }

  .feedback-access-guide-row p {
    font-size: 0.76rem;
  }
}

/* =========================================================
   PHASE 16.4 — AUTOMATIC DATE SORTING & MULTI-MAP LOCATION
   ========================================================= */

.event-meta-line {
  align-items: center;
}

.event-meta-line > * {
  position: relative;
}

.event-meta-line > * + * {
  margin-left: 12px;
}

.event-meta-line > * + *::before {
  position: absolute;
  left: -13px;
  color: var(--line2);
  content: "•";
}

.event-map-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px dashed rgba(190, 255, 86, 0.38);
  background: transparent;
  padding: 0 0 2px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.event-map-trigger:hover,
.event-map-trigger:focus-visible {
  border-color: var(--lime);
  color: #fff;
}

.event-map-trigger small {
  color: var(--lime);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.map-choice-open {
  overflow: hidden;
}

.map-choice-modal[hidden] {
  display: none;
}

.map-choice-modal {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.map-choice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 3, 8, 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.map-choice-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid var(--line2);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(190, 255, 86, 0.08), transparent 42%),
    #0b0e14;
  padding: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.map-choice-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.map-choice-panel > header span {
  color: var(--lime);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.map-choice-panel h2 {
  margin: 7px 0 5px;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  line-height: 1.05;
}

#map-choice-location {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.map-choice-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.map-choice-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.map-choice-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  color: #fff;
  text-decoration: none;
}

.map-choice-link:hover,
.map-choice-link:focus-visible {
  border-color: rgba(190, 255, 86, 0.48);
  background: rgba(190, 255, 86, 0.045);
}

.map-choice-link > strong {
  font-size: 0.78rem;
}

.map-choice-link > span:last-child {
  color: var(--lime);
}

.map-choice-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.56rem;
  font-weight: 900;
}

.map-choice-logo.google { color: #9ed1ff; }
.map-choice-logo.apple { color: #fff; }
.map-choice-logo.waze { color: #6ee8ff; }
.map-choice-logo.osm { color: #bfff80; }

.map-choice-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .event-meta-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .event-meta-line > * + * {
    margin-left: 0;
  }

  .event-meta-line > * + *::before {
    display: none;
  }

  .event-map-trigger {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .map-choice-panel {
    padding: 19px 16px;
  }

  .map-choice-links {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PHASE 16.5 — EVENT LIFECYCLE & CALENDAR
   ========================================================= */

.event-status.live {
  border-color: rgba(98, 255, 175, 0.52);
  background: rgba(48, 255, 155, 0.1);
  color: #7dffbd;
  box-shadow: 0 0 20px rgba(48, 255, 155, 0.12);
}

.event-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 750;
}

.event-countdown i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(190, 255, 86, 0.62);
}

.event-countdown.live {
  color: #83ffc2;
}

.event-countdown.live i {
  background: #56ffad;
  animation: sos-live-pulse 1.4s ease-in-out infinite;
}

.event-countdown.archive {
  color: var(--muted);
}

.event-countdown.archive i {
  background: #737985;
  box-shadow: none;
}

@keyframes sos-live-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.event-action-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.event-calendar-trigger {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.calendar-choice-open {
  overflow: hidden;
}

.calendar-choice-modal[hidden] {
  display: none;
}

.calendar-choice-modal {
  position: fixed;
  z-index: 185;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.calendar-choice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 3, 8, 0.84);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.calendar-choice-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid var(--line2);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgba(111, 120, 255, 0.13),
      transparent 44%
    ),
    #0b0e14;
  padding: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.calendar-choice-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.calendar-choice-panel > header span {
  color: #aab0ff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.calendar-choice-panel h2 {
  margin: 7px 0 5px;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  line-height: 1.05;
}

#calendar-choice-event {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.calendar-choice-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.calendar-choice-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.calendar-choice-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.calendar-choice-link:hover,
.calendar-choice-link:focus-visible {
  border-color: rgba(142, 150, 255, 0.58);
  background: rgba(116, 126, 255, 0.055);
}

.calendar-choice-link > strong {
  font-size: 0.78rem;
}

.calendar-choice-link > span:last-child {
  color: #aab0ff;
}

.calendar-choice-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.58rem;
  font-weight: 900;
}

.calendar-choice-logo.google {
  color: #9ed1ff;
}

.calendar-choice-logo.outlook {
  color: #74c2ff;
}

.calendar-choice-logo.apple {
  color: #fff;
}

.calendar-choice-logo.ics {
  color: #c3c8ff;
}

.calendar-choice-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .calendar-choice-panel {
    padding: 19px 16px;
  }

  .calendar-choice-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-countdown.live i {
    animation: none;
  }
}

/* =========================================================
   PHASE 17 — PRODUCTION STABLE FREEZE
   No feature changes. This marker identifies the approved release.
   ========================================================= */
:root {
  --sos-production-release: "17.0.0";
}


/* PHASE 18 — Security release marker */
:root {
  --sos-security-release: "18.0.0";
}


/* PHASE 18.1 — App Check CSP compatibility */
:root {
  --sos-security-release: "18.1.0";
}


:root { --sos-security-release: "18.2.0"; }


:root { --sos-security-release: "18.3.0"; }


:root { --sos-notification-release: "19.0.0"; }


:root { --sos-security-release: "19.1.0"; }


:root { --sos-live-release: "20.0.0"; }


:root { --sos-workflow-release: "21.0.0"; }


:root { --sos-language-release: "21.1.0"; }


/* PHASE 22 — OFFLINE FEEDBACK QUEUE */
.offline-feedback-status{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;margin:0 20px 14px;border:1px solid rgba(84,228,247,.18);border-radius:15px;background:rgba(255,255,255,.025);padding:11px 12px}.offline-feedback-connection{display:flex;align-items:center;min-width:0;gap:10px}.offline-feedback-dot{width:9px;height:9px;border-radius:50%;background:#8c95a5;box-shadow:0 0 10px rgba(140,149,165,.35)}.offline-feedback-connection>div{display:grid;min-width:0;gap:3px}.offline-feedback-connection strong{font-size:.59rem;letter-spacing:.08em}.offline-feedback-connection span{color:var(--muted);font-size:.61rem;line-height:1.45}.offline-feedback-pending{display:grid;min-width:52px;border-left:1px solid var(--line);padding-left:12px;text-align:center}.offline-feedback-pending>span{font-size:1.05rem;font-weight:900}.offline-feedback-pending small{color:var(--muted);font-size:.47rem;font-weight:900}.offline-feedback-actions{display:flex;gap:6px}.offline-feedback-actions button{min-height:34px;border:1px solid var(--line);border-radius:10px;background:transparent;padding:0 10px;color:#fff;cursor:pointer;font:inherit;font-size:.52rem;font-weight:900}.offline-feedback-actions button:disabled{opacity:.38;cursor:default}.offline-feedback-status[data-mode=online]{border-color:rgba(86,255,174,.2)}.offline-feedback-status[data-mode=online] .offline-feedback-dot{background:#58ffad;box-shadow:0 0 12px rgba(88,255,173,.66)}.offline-feedback-status[data-mode=offline]{border-color:rgba(255,186,77,.28);background:rgba(255,171,47,.035)}.offline-feedback-status[data-mode=offline] .offline-feedback-dot{background:#ffc665}.offline-feedback-status[data-mode=syncing] .offline-feedback-dot{background:var(--cyan);animation:sos-offline-pulse .9s infinite}.feedback-context-state.offline-ready{color:#ffc768}.feedback-context-state.offline-ready i{background:#ffc768}.offline-feedback-privacy{margin:11px 0 0;border-left:2px solid rgba(255,194,93,.42);padding-left:10px;color:var(--muted);font-size:.59rem;line-height:1.55}body.has-offline-feedback [data-open-feedback]::after{content:"•";margin-left:6px;color:#ffc768}@keyframes sos-offline-pulse{50%{opacity:.35;transform:scale(.8)}}@media(max-width:720px){.offline-feedback-status{grid-template-columns:minmax(0,1fr) auto;margin:0 12px 12px}.offline-feedback-actions{grid-column:1/-1}.offline-feedback-actions button{flex:1}}@media(max-width:440px){.offline-feedback-status{grid-template-columns:1fr}.offline-feedback-pending{display:flex;gap:7px;border-left:0;border-top:1px solid var(--line);padding:9px 0 0;text-align:left}}


:root { --sos-batch-qr-release: "23.0.0"; }


:root { --sos-post-event-release: "24.0.0"; }


:root { --sos-operational-analytics-release: "26.0.0"; }


:root { --sos-production-release: "27.0.0"; }

/* =========================================================
   PHASE 27.5 — PUBLIC HOMEPAGE FOCUS
   ========================================================= */

.menu-inner > a,
.menu-inner > .menu-system-action {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.menu-inner > a {
  grid-template-columns: 48px minmax(0, 1fr);
}

.menu-inner > .menu-system-action > span:first-child,
.menu-inner > a > span:first-child {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
}

.menu-system-action-copy {
  display: grid;
  gap: 4px;
}

.menu-system-action-copy strong {
  line-height: 1.05;
}

.menu-system-action-copy small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.45;
}

.menu-system-action-arrow {
  color: var(--cyan);
  font-size: 1.4rem;
  transition: transform var(--ease);
}

.menu-inner > .menu-system-action:hover strong,
.menu-inner > a:hover strong {
  color: var(--cyan);
}

.menu-inner > .menu-system-action:hover
  .menu-system-action-arrow {
  transform: translateX(7px);
}

.coded-event-focus {
  display: flex;
  width: min(520px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px auto 0;
  border: 1px solid rgba(80, 220, 255, 0.48);
  border-radius: 18px;
  background:
    linear-gradient(
      120deg,
      rgba(0, 205, 255, 0.08),
      rgba(198, 68, 255, 0.08)
    ),
    rgba(5, 6, 29, 0.56);
  padding: 18px 21px;
  color: white;
  text-decoration: none;
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 22px rgba(72, 209, 255, 0.05),
    0 0 28px rgba(89, 191, 255, 0.12);
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.coded-event-focus:hover {
  transform: translateY(-5px);
  border-color: rgba(116, 239, 255, 0.85);
  background:
    linear-gradient(
      120deg,
      rgba(0, 205, 255, 0.13),
      rgba(198, 68, 255, 0.13)
    ),
    rgba(5, 6, 29, 0.72);
}

.coded-event-focus > span:first-child {
  display: grid;
  gap: 5px;
}

.coded-event-focus small {
  color: var(--cyan);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.coded-event-focus strong {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

.coded-event-focus > span:last-child {
  color: var(--cyan);
  font-size: 1.55rem;
}

#collaborations .section-heading {
  max-width: 820px;
  margin-bottom: 29px;
}

@media (max-width: 640px) {
  .menu-inner > a,
  .menu-inner > .menu-system-action {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .menu-inner > a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .menu-system-action-copy small {
    font-size: 0.56rem;
  }

  .coded-event-focus {
    margin-top: 24px;
    padding: 16px 17px;
  }
}


/* V31.3 event poster carousel */
.event-poster-carousel{position:relative}.event-poster-track{display:flex;width:100%;height:100%;min-height:350px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain}.event-poster-track::-webkit-scrollbar{display:none}.event-poster-track>img{flex:0 0 100%;width:100%;min-width:100%;height:100%;min-height:350px;object-fit:cover;scroll-snap-align:start;scroll-snap-stop:always}.event-poster-nav{position:absolute;z-index:3;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(0,0,0,.58);backdrop-filter:blur(10px);color:#fff;font-size:2rem;line-height:1;cursor:pointer}.event-poster-nav.prev{left:14px}.event-poster-nav.next{right:14px}.event-poster-dots{position:absolute;z-index:3;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:7px;padding:7px 9px;border-radius:999px;background:rgba(0,0,0,.46);backdrop-filter:blur(8px)}.event-poster-dots button{width:8px;height:8px;border:0;border-radius:50%;padding:0;background:rgba(255,255,255,.42);cursor:pointer}.event-poster-dots button.active{background:#fff;transform:scale(1.18)}
@media(max-width:640px){.event-poster-track,.event-poster-track>img{min-height:285px}.event-poster-nav{width:38px;height:38px}.event-poster-nav.prev{left:9px}.event-poster-nav.next{right:9px}}
