:root{
  --ink:#18131f;
  --ink-soft:#342a42;
  --muted:#665e77;
  --purple:#b488d6;
  --purple-deep:#7358a5;
  --pink:#eea2c3;
  --pink-deep:#e184af;
  --yellow:#f6bf68;
  --blue:#8fcbf0;
  --mint:#d9f4cf;
  --surface:#ffffff;
  --surface-soft:rgba(255,255,255,.56);
  --soft:#f8f3fb;
  --line:rgba(92,70,126,.14);
  --line-strong:rgba(92,70,126,.28);
  --danger:#b3261e;
  --shadow:0 24px 70px rgba(64,42,93,.16);
  --glass:blur(24px);
  --radius-xl:34px;
  --radius-lg:24px;
  --radius-md:18px;
  font-family:"Avenir Next","SF Pro Display","Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(233,83,145,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(143,203,240,.14), transparent 24%),
    linear-gradient(180deg, #fff9ef 0%, #fcf6ff 46%, #f7fbff 100%);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  line-height:1.5;
  min-height:100vh;
  overflow-x:hidden;
}
.network-hint{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:14px clamp(20px,4vw,72px) 0;
  padding:14px 18px;
  border:1px solid rgba(115,88,165,.16);
  border-radius:22px;
  background:rgba(255,255,255,.78);
  box-shadow:0 18px 44px rgba(64,42,93,.12);
  backdrop-filter:blur(18px);
}
.network-hint-copy{
  display:grid;
  gap:4px;
  color:var(--ink-soft);
  font-size:14px;
}
.network-hint-copy strong{
  color:var(--purple-deep);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.network-hint-copy a{
  color:var(--purple-deep);
  font-weight:700;
}
.network-hint-close{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:30px;
  line-height:1;
  padding:0;
  cursor:pointer;
}
button,input,select,textarea{font:inherit}
img{display:block;max-width:100%}

.protected-asset{
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

.site-header{
  height:94px;
  padding:14px clamp(20px,4vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.48);
  background:rgba(255,255,255,.46);
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:var(--glass);
}

.brand{
  display:flex;
  align-items:center;
  gap:18px;
  color:var(--ink);
  text-decoration:none;
}

.brand-compact img{
  width:252px;
  height:252px;
  object-fit:contain;
  filter:drop-shadow(0 10px 26px rgba(96,67,139,.12));
}

.brand-compact span{
  font-size:19px;
  font-weight:700;
  letter-spacing:-.02em;
}

.text-link{color:var(--purple-deep);font-weight:700}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:12px;
  font-weight:800;
  color:var(--purple-deep);
  margin:0 0 10px;
}

.section{
  position:relative;
  padding:88px clamp(20px,7vw,110px);
  scroll-margin-top:88px;
}

.section h2{
  margin:0;
  font-size:clamp(34px,4vw,62px);
  line-height:.95;
  letter-spacing:-.05em;
}

.soft-bg{
  background:
    radial-gradient(circle at 15% 20%, rgba(143,203,240,.18), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(252,199,74,.18), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.72) 100%);
}

.glass{
  background:rgba(255,255,255,.48);
  border:1px solid rgba(255,255,255,.56);
  box-shadow:var(--shadow);
  backdrop-filter:var(--glass);
}

.panel{
  padding:28px;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}

label{
  display:grid;
  gap:8px;
  font-size:14px;
  font-weight:700;
  margin-bottom:16px;
  min-width:0;
}

input,select,textarea{
  width:100%;
  border:1px solid rgba(91,72,122,.16);
  border-radius:16px;
  padding:14px 16px;
  background:rgba(255,255,255,.76);
  color:var(--ink);
  font-size:16px;
  line-height:1.3;
  min-height:54px;
  outline:none;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%237358A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px 18px;
  padding-right:44px;
  cursor:pointer;
}

input:focus,select:focus,textarea:focus{
  border-color:rgba(132,105,170,.64);
  box-shadow:0 0 0 4px rgba(132,105,170,.12);
  background:#fff;
}

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

.button{
  border:0;
  border-radius:16px;
  padding:14px 22px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:800;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.button:hover{transform:translateY(-2px)}

.button.primary{
  background:linear-gradient(135deg, #a57cc9 0%, #e08bb0 100%);
  color:#fff;
  box-shadow:0 18px 32px rgba(164,125,194,.24);
}

.button.primary:hover{
  box-shadow:0 22px 38px rgba(164,125,194,.3);
}

.button.ghost{
  background:rgba(255,255,255,.56);
  color:var(--purple-deep);
  border:1px solid rgba(92,70,126,.15);
}

.button.danger{
  background:#fff1f0;
  color:var(--danger);
}

.button.small{
  padding:9px 13px;
  border-radius:12px;
  font-size:13px;
}

.full{width:100%}
.wide{grid-column:1/-1}
.muted{color:var(--muted)}

.message{
  padding:13px 14px;
  border-radius:14px;
  background:#eaf7ed;
  color:#285f31;
  margin:10px 0;
}

.message.error{
  background:#fff0ef;
  color:var(--danger);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 14px;
}

.section-heading{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.section-heading.compact{
  align-items:center;
  margin:8px 0 12px;
}

.chips{display:flex;gap:10px;flex-wrap:wrap}

.chip{
  border:1px solid rgba(92,70,126,.12);
  background:rgba(255,255,255,.52);
  border-radius:999px;
  padding:10px 16px;
  cursor:pointer;
  color:var(--ink-soft);
  backdrop-filter:blur(12px);
}

.chip.active{
  background:linear-gradient(135deg, #a57cc9 0%, #e08bb0 100%);
  color:#fff;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(92,70,126,.1);
  backdrop-filter:blur(12px);
}

.stack{display:grid;gap:14px}

.progress-track{
  position:relative;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(92,70,126,.12);
}

.progress-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #96c8ef 0%, #c3b7d9 48%, #f0a2c3 100%);
}

.progress-track-large{height:14px}

.progress-steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.progress-steps span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  opacity:.62;
}

.progress-steps span::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(92,70,126,.18);
}

.progress-steps .is-active{opacity:1;color:var(--ink)}
.progress-steps .is-active::before{background:var(--pink)}

.progress-steps .is-done{opacity:1;color:var(--purple-deep)}
.progress-steps .is-done::before{background:var(--yellow)}

.dialog{
  border:0;
  border-radius:32px;
  padding:0;
  width:min(640px,calc(100vw - 28px));
  box-shadow:0 28px 90px rgba(23,21,28,.3);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(24px);
}

.dialog::backdrop{
  background:rgba(23,21,28,.48);
  backdrop-filter:blur(6px);
}

.dialog form,.dialog>div{padding:32px}

.dialog form{
  position:relative;
  overflow:hidden;
}

.dialog-cover{
  position:relative;
  margin:-32px -32px 20px;
  height:220px;
  border-radius:32px 32px 28px 28px;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,202,128,.34), transparent 28%),
    linear-gradient(135deg, rgba(143,203,240,.42), rgba(233,83,145,.26));
}

.dialog-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
}

.dialog-cover-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.16) 42%, rgba(255,255,255,.92) 100%),
    linear-gradient(120deg, rgba(132,105,170,.22), transparent 36%, rgba(255,202,128,.18) 78%, transparent 100%);
}

.dialog-close{
  position:absolute;
  right:16px;
  top:14px;
  z-index:6;
  border:0;
  background:rgba(255,255,255,.8);
  border-radius:50%;
  width:38px;
  height:38px;
  font-size:24px;
  cursor:pointer;
}

.dialog-progress{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.dialog-progress span{
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}

.check{
  display:flex;
  align-items:start;
  gap:12px;
  line-height:1.45;
  font-weight:700;
  flex-wrap:nowrap;
}

.check input{
  width:auto;
  margin-top:4px;
  flex:0 0 auto;
}

.check span{
  min-width:0;
  flex:1 1 auto;
}

.member-row{
  display:grid;
  grid-template-columns:1fr 110px auto;
  gap:8px;
}

.member-row button{align-self:end;margin-bottom:16px}

.reveal{
  opacity:0;
  transform:translateY(26px) scale(.985);
  animation:revealUp .9s cubic-bezier(.2,.7,.2,1) forwards;
}

.reveal-delay{animation-delay:.12s}
.reveal-delay-2{animation-delay:.24s}

@keyframes revealUp{
  to{opacity:1;transform:translateY(0) scale(1)}
}

@keyframes floatSoft{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg)}
  50%{transform:translate3d(0,-10px,0) rotate(2deg)}
}

.activity-card{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:340px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.94) 100%);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}

.activity-card-has-cover{
  padding-top:0;
}

.activity-cover{
  position:relative;
  margin:0 -24px 18px;
  height:200px;
  overflow:hidden;
  border-radius:30px 30px 26px 26px;
  background:
    linear-gradient(135deg, rgba(132,105,170,.18), rgba(233,83,145,.12)),
    rgba(255,255,255,.68);
}

.activity-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.03);
}

.activity-cover-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.08) 38%, rgba(255,255,255,.78) 100%),
    linear-gradient(135deg, rgba(132,105,170,.18), transparent 42%, rgba(255,202,128,.14) 100%);
}

.activity-card::before{
  content:"";
  position:absolute;
  inset:-15% auto auto -12%;
  width:140px;
  height:140px;
  border-radius:46% 54% 57% 43% / 44% 44% 56% 56%;
  opacity:.2;
  filter:blur(1px);
}

.activity-card::after{
  content:"";
  position:absolute;
  right:-28px;
  bottom:-28px;
  width:120px;
  height:120px;
  border-radius:56% 44% 54% 46% / 46% 55% 45% 54%;
  background:rgba(255,255,255,.28);
  border:1px solid rgba(255,255,255,.3);
}

.activity-card:nth-child(4n+1)::before{background:linear-gradient(135deg, rgba(132,105,170,.9), rgba(233,83,145,.65))}
.activity-card:nth-child(4n+2)::before{background:linear-gradient(135deg, rgba(252,199,74,.95), rgba(233,83,145,.62))}
.activity-card:nth-child(4n+3)::before{background:linear-gradient(135deg, rgba(233,83,145,.95), rgba(143,203,240,.62))}
.activity-card:nth-child(4n)::before{background:linear-gradient(135deg, rgba(143,203,240,.95), rgba(132,105,170,.62))}

.activity-card h3{
  position:relative;
  z-index:1;
  margin:0;
  font-size:27px;
  line-height:1.04;
  letter-spacing:-.04em;
}

.activity-card-has-cover .meta{
  margin-top:2px;
}

.activity-card p{position:relative;z-index:1;margin:0;color:var(--muted)}

.activity-card .button{
  margin-top:auto;
  position:relative;
  z-index:1;
}

.activity-card .meta{position:relative;z-index:1}

.activity-card-stats{
  display:grid;
  gap:10px;
  margin-top:auto;
}

.availability{
  display:grid;
  gap:8px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.44);
  border:1px solid rgba(255,255,255,.52);
}

.availability-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  color:var(--ink-soft);
}

.availability strong{font-size:18px}

.registration-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
  padding:20px 22px;
  border-radius:24px;
  background:rgba(255,255,255,.56);
  border:1px solid rgba(255,255,255,.64);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}

.registration-row.cancelled{opacity:.64}

.registration-row-main{
  display:grid;
  gap:10px;
}

.registration-row-main strong{
  font-size:22px;
  letter-spacing:-.03em;
}

.status-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(255,255,255,.5);
  border:1px solid rgba(92,70,126,.12);
}

.legal-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:56px 20px;
}

.legal-page{
  width:min(960px,100%);
  display:grid;
  gap:22px;
}

.legal-card{
  padding:34px clamp(22px,4vw,42px);
  border-radius:32px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:var(--shadow);
  backdrop-filter:blur(24px);
}

.legal-card h1,
.legal-card h2,
.legal-card p{
  margin:0;
}

.legal-card h1{
  font-size:clamp(38px,5vw,66px);
  line-height:.92;
  letter-spacing:-.05em;
}

.legal-card h2{
  font-size:24px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.legal-card p + p,
.legal-card h2 + p{
  margin-top:12px;
}

.legal-list{
  display:grid;
  gap:12px;
  color:var(--ink-soft);
}

.legal-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.not-found-layout{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 20px;
  overflow:hidden;
  position:relative;
}

.not-found-layout::before,
.not-found-layout::after{
  content:"";
  position:absolute;
  inset:auto;
  width:36vw;
  height:36vw;
  min-width:260px;
  min-height:260px;
  border-radius:42% 58% 63% 37% / 38% 41% 59% 62%;
  filter:blur(2px);
  opacity:.24;
  pointer-events:none;
}

.not-found-layout::before{
  left:-10vw;
  bottom:-12vw;
  background:linear-gradient(135deg, rgba(252,199,74,.95), rgba(233,83,145,.7));
}

.not-found-layout::after{
  right:-12vw;
  top:-14vw;
  background:linear-gradient(135deg, rgba(143,203,240,.92), rgba(132,105,170,.72));
}

.not-found-card{
  width:min(980px,100%);
  min-height:min(88vh,760px);
  padding:clamp(24px,4vw,42px);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);
  gap:26px;
  align-items:center;
  position:relative;
  overflow:hidden;
}

.not-found-copy{
  display:grid;
  gap:18px;
  align-content:start;
}

.not-found-copy strong{
  font-size:clamp(84px,15vw,176px);
  line-height:.82;
  letter-spacing:-.08em;
  color:var(--ink);
}

.not-found-copy h1{
  margin:0;
  font-size:clamp(34px,5vw,72px);
  line-height:.92;
  letter-spacing:-.06em;
}

.not-found-copy p{
  margin:0;
  max-width:46ch;
  color:var(--ink-soft);
  font-size:18px;
}

.not-found-visual{
  position:relative;
  min-height:420px;
  display:grid;
  place-items:center;
}

.not-found-visual img{
  width:min(100%,430px);
  filter:drop-shadow(0 24px 60px rgba(93,67,134,.18));
}

.not-found-star,
.not-found-heart{
  position:absolute;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  animation:floatSoft 6s ease-in-out infinite;
}

.not-found-star{
  width:120px;
  height:120px;
  right:2%;
  top:4%;
  background-image:url("/assets/figures.svg");
  opacity:.5;
}

.not-found-heart{
  width:170px;
  height:170px;
  left:-3%;
  bottom:-4%;
  background-image:url("/assets/heart-1.svg");
  animation-delay:.6s;
}

@media (max-width: 900px){
  .not-found-card{
    min-height:auto;
    grid-template-columns:1fr;
  }

  .not-found-visual{
    min-height:280px;
    order:-1;
  }
}

.status-pill.active{color:#27553a;background:rgba(217,244,207,.72)}
.status-pill.cancelled{color:#9d2f29;background:rgba(255,240,239,.9)}

.site-footer{
  position:relative;
  padding:42px clamp(20px,7vw,110px) 56px;
  display:grid;
  gap:16px;
  justify-items:center;
  color:var(--muted);
  overflow:hidden;
}

.site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% -20%, rgba(143,203,240,.24), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.52) 100%);
  border-top:1px solid rgba(255,255,255,.5);
}

.site-footer>*{position:relative;z-index:1}

.footer-brand img{
  width:min(360px,75vw);
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 18px 30px rgba(96,67,139,.16));
}

.company-line{margin-top:12px;color:var(--muted);font-size:18px}

.section-intro{overflow:hidden}

.section-backdrop{
  position:absolute;
  inset:auto -140px -180px auto;
  width:min(520px,48vw);
  opacity:.34;
  pointer-events:none;
  animation:floatSoft 9s ease-in-out infinite;
}

.section-backdrop img{width:100%;height:auto}

.dashboard-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
  gap:20px;
  margin-bottom:20px;
}

.route-card,.summary-card{display:grid;gap:14px}

.route-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.route-card-head strong{font-size:28px;letter-spacing:-.04em}

.route-progress-label{
  font-size:14px;
  font-weight:800;
  color:var(--purple-deep);
}

.summary-card strong{
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}

.progress-steps-wide{justify-content:space-between}

.admin-body{background:var(--soft)}
.admin-header{position:relative}
.admin-login{min-height:calc(100vh - 82px);display:grid;place-items:center;padding:30px}
.admin-login .panel{width:min(440px,100%)}
.admin-login h1{font-size:38px;line-height:1.05}
.admin-layout{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 82px)}
.sidebar{background:#201b27;color:white;padding:24px;display:flex;flex-direction:column;justify-content:space-between}
.sidebar nav{display:grid;gap:6px}
.nav-button{width:100%;text-align:left;border:0;background:transparent;color:#d9d1df;border-radius:12px;padding:12px 14px;cursor:pointer;font-weight:700}
.nav-button.active,.nav-button:hover{background:rgba(255,255,255,.12);color:white}
.admin-content{padding:34px;overflow:auto;min-width:0}
.admin-content h1{font-size:38px;margin:0 0 22px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}
.stat-card strong{display:block;font-size:34px}
.stat-card span{color:var(--muted)}
.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}
.toolbar .filters{display:flex;gap:8px}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px}
table{width:100%;border-collapse:collapse;min-width:760px}
th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:#fbfafc}
td .button{margin:2px}
.progress{height:8px;border-radius:9px;background:var(--line);overflow:hidden;margin-top:7px}
.progress span{display:block;height:100%;background:var(--purple)}
.credential-box{background:#fff7df;border:1px solid #f1d379;border-radius:16px;padding:18px;margin:15px 0}
.credential-box code{display:block;font-size:17px;margin:5px 0}
.slot-editor{display:grid;grid-template-columns:1fr 1fr 100px auto;gap:8px;align-items:end}
.empty{padding:35px;text-align:center;color:var(--muted)}

.mobile-card-table tbody{display:table-row-group}

.mobile-card-table td.empty{
  display:block;
  padding:28px 18px;
}

@media(max-width:1100px){
  .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:1fr}
}

@media(max-width:900px){
  .admin-layout{grid-template-columns:1fr}
  .sidebar{position:sticky;top:0;z-index:10;padding:10px}
  .sidebar nav{display:flex;overflow:auto}
  .sidebar>.button{display:none}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:700px){
  .network-hint{
    margin:10px 16px 0;
    padding:12px 14px;
    border-radius:18px;
  }
  .network-hint-copy{font-size:13px}
  .network-hint-close{font-size:26px}
  .site-header{
    height:78px;
    padding:10px 16px;
  }

  .brand{gap:12px}
  .site-header:not(.admin-header){
    justify-content:center;
    padding-inline:10px;
  }
  .site-header:not(.admin-header) .brand{
    margin:0 auto;
    justify-content:center;
  }
  .brand-compact img{width:84px;height:84px}
  .site-header:not(.admin-header) .brand-compact img{
    width:146px;
    height:146px;
    object-fit:contain;
    object-position:center;
    transform:scale(1.34);
    transform-origin:center;
  }
  .brand-compact span{font-size:17px}
  .section{padding:64px 20px}
  .panel{padding:22px}
  .cards-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .section-heading{align-items:flex-start;flex-direction:column}
  .section-heading>div{width:100%}
  .registration-row{grid-template-columns:1fr}
  .member-row{grid-template-columns:1fr}
  .admin-content{padding:22px 14px 96px}
  .stat-grid{grid-template-columns:1fr}
  .toolbar{align-items:stretch;flex-direction:column}
  .toolbar input,
  .toolbar select{
    width:100%;
  }
  .toolbar>div:last-child{
    width:100%;
    display:grid;
    gap:8px;
  }
  .toolbar .button{
    width:100%;
  }
  .toolbar .filters{flex-direction:column}
  .slot-editor{grid-template-columns:1fr 1fr}
  .slot-editor button{grid-column:1/-1}
  .progress-steps-wide{justify-content:flex-start}
  .chips{
    width:100%;
    flex-wrap:nowrap;
    overflow:auto;
    padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
  }
  .chip{
    white-space:nowrap;
    flex:0 0 auto;
  }
  .dialog{
    width:calc(100vw - 12px);
    max-height:calc(100dvh - 12px);
    border-radius:28px;
  }
  .dialog form{
    max-height:calc(100dvh - 12px);
    overflow:auto;
    padding:20px;
  }
  .dialog-cover{
    margin:-20px -20px 16px;
    height:auto;
    aspect-ratio:16 / 9;
    border-radius:28px 28px 24px 24px;
  }
  .dialog-cover img,
  .activity-cover img{
    object-fit:contain;
    object-position:center top;
    background:rgba(255,255,255,.88);
    transform:none;
  }
  .activity-cover{
    height:auto;
    aspect-ratio:16 / 9;
  }
  .dialog-progress{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .dialog-close{
    right:12px;
    top:12px;
  }
  #dialog-title{
    font-size:clamp(32px,8vw,44px);
    line-height:.98;
  }
  .check{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:flex-start;
    gap:10px;
  }
  .company-line{font-size:16px}
  .section-intro .section-heading{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:12px;
  }
  .section-intro h2{
    font-size:clamp(36px,10vw,56px);
    line-height:.96;
  }
  #welcome{
    font-size:clamp(42px,13vw,58px);
    line-height:.92;
    letter-spacing:-.06em;
    overflow-wrap:anywhere;
  }
  #logout{
    width:auto;
    min-height:50px;
    padding-inline:20px;
    align-self:flex-start;
  }
  .dashboard-grid{
    gap:16px;
  }
  .route-card-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px 12px;
    width:100%;
  }
  .route-card-head>div{
    min-width:0;
  }
  .route-card-head strong{
    display:block;
    font-size:clamp(18px,7vw,32px);
    line-height:1.04;
  }
  .route-progress-label{
    font-size:15px;
    line-height:1;
    padding:8px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(115,93,158,.16);
  }
  .summary-card strong{
    font-size:clamp(24px,10vw,42px);
    line-height:.94;
  }
  .progress-steps{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    font-size:13px;
  }
  .summary-card p{
    font-size:16px;
  }
  .section-backdrop{
    width:86vw;
    right:-26vw;
    bottom:-7vw;
    opacity:.18;
  }
  .admin-login{
    min-height:calc(100vh - 78px);
    padding:16px 12px 28px;
  }
  .admin-login .panel{
    width:min(100%,460px);
    padding:24px 18px;
  }
  .admin-header{
    height:auto;
    min-height:78px;
    padding:10px 14px 12px;
    align-items:flex-start;
    gap:10px 12px;
    flex-wrap:wrap;
  }
  .admin-header .brand{
    flex:1 1 auto;
    min-width:0;
    align-items:center;
  }
  .admin-header .brand span{
    font-size:15px;
    line-height:1.05;
    letter-spacing:-.02em;
  }
  .admin-header .brand img{
    width:42px;
    height:42px;
    object-fit:contain;
  }
  .admin-header #admin-user{
    width:100%;
    max-width:none;
    font-size:13px;
    text-align:left;
    color:var(--muted);
  }
  .admin-layout{
    gap:12px;
  }
  .sidebar{
    position:sticky;
    top:0;
    border-radius:0 0 20px 20px;
    padding:12px 10px 12px;
    box-shadow:0 14px 32px rgba(23,21,28,.14);
    gap:10px;
  }
  .sidebar nav{
    display:flex;
    gap:8px;
    padding-bottom:2px;
    overflow:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .sidebar nav::-webkit-scrollbar{
    display:none;
  }
  .sidebar>.button{
    display:block;
    width:100%;
    margin-top:2px;
    min-height:46px;
  }
  .nav-button{
    white-space:nowrap;
    flex:0 0 auto;
    min-height:44px;
    border-radius:14px;
  }
  .admin-content h1{
    font-size:28px;
    margin-bottom:16px;
  }
  .admin-content h2{
    margin:0;
    font-size:22px;
    line-height:1.05;
  }
  .admin-content .panel{
    border-radius:22px;
  }
  .admin-content .form-grid{
    gap:0 14px;
  }
  .admin-content .stack{
    gap:12px;
  }
  .admin-content .message{
    margin-bottom:12px;
  }
  .admin-body .dialog{
    width:calc(100vw - 16px);
    max-height:calc(100dvh - 16px);
    border-radius:26px;
  }
  .admin-body .dialog form{
    max-height:calc(100dvh - 16px);
    padding:18px;
  }
  .table-wrap{
    background:transparent;
    border:0;
    overflow:visible;
  }
  .mobile-card-table,
  .mobile-card-table thead,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table th,
  .mobile-card-table td{
    display:block;
  }
  .mobile-card-table thead{
    display:none;
  }
  .mobile-card-table tbody{
    display:grid;
    gap:12px;
  }
  .mobile-card-table tr{
    padding:16px;
    border-radius:22px;
    border:1px solid var(--line);
    background:#fff;
    box-shadow:var(--shadow);
  }
  .mobile-card-table td strong,
  .mobile-card-table td .muted{
    overflow-wrap:anywhere;
  }
  .mobile-card-table td{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    padding:10px 0;
    border-bottom:1px solid rgba(92,70,126,.08);
    align-items:start;
  }
  .mobile-card-table td:last-child{
    border-bottom:0;
    padding-bottom:0;
  }
  .mobile-card-table td::before{
    content:attr(data-label);
    font-size:11px;
    font-weight:800;
    line-height:1.35;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--muted);
  }
  .mobile-card-table td .button{
    width:100%;
    margin:0 0 8px;
  }
  .mobile-card-table td .button:last-child{
    margin-bottom:0;
  }
  .mobile-card-table td.empty{
    display:block;
    border-bottom:0;
  }
  .credential-box{
    padding:16px;
    border-radius:18px;
  }
  .credential-box code{
    overflow-wrap:anywhere;
  }
  .slot-editor{
    grid-template-columns:1fr;
  }
  .slot-editor label,
  .slot-editor button{
    grid-column:auto;
  }
}
