:root{
  --teal:#4b93a8;
  --teal2:#2d6f84;
  --coral:#cf645f;
  --cream:#f8efe2;
  --ink:#10202a;
  --slate:#182833;
  --muted:#7c8a93;
  --green:#20a464;
  --blue:#2e7cc5;
  --gold:#e2b45d;
  --danger:#d84d4d;
  --card:rgba(255,255,255,.92);
  --shadow:0 24px 70px rgba(8,22,30,.22);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(207,100,95,.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(75,147,168,.32), transparent 36rem),
    linear-gradient(135deg,#f8efe2 0%,#eef6f8 50%,#fff9ef 100%);
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit}
.hidden{display:none!important}
.shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
  position:relative;
  overflow:hidden;
}
.login-wrap:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,rgba(16,32,42,.92),rgba(19,43,52,.78)),
    url("/assets/market-logo.png") center 18%/min(900px,90vw) no-repeat;
  filter:saturate(1.05);
}
.login-card{
  position:relative;
  width:min(460px,100%);
  padding:30px;
  border-radius:32px;
  background:rgba(255,255,255,.92);
  box-shadow:0 30px 90px rgba(0,0,0,.34);
  border:1px solid rgba(255,255,255,.65);
}
.logo{
  width:100%;
  max-height:96px;
  object-fit:contain;
  display:block;
  margin:0 auto 22px;
}
.eyebrow{
  color:var(--teal2);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  font-size:12px;
}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(30px,5vw,52px);line-height:1.02;letter-spacing:-.045em}
h2{font-size:clamp(22px,3vw,34px);letter-spacing:-.035em}
.muted{color:var(--muted)}
.field{margin:12px 0}
label{display:block;font-size:13px;font-weight:800;margin-bottom:7px;color:#26404b}
input,select,textarea{
  width:100%;
  border:1px solid rgba(16,32,42,.14);
  background:rgba(255,255,255,.86);
  border-radius:16px;
  padding:13px 14px;
  outline:none;
}
textarea{min-height:92px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(75,147,168,.16)}
.btn{
  border:0;
  background:var(--teal);
  color:white;
  border-radius:16px;
  padding:12px 16px;
  font-weight:850;
  box-shadow:0 10px 24px rgba(75,147,168,.24);
}
.btn:hover{filter:brightness(.97)}
.btn.coral{background:var(--coral);box-shadow:0 10px 24px rgba(207,100,95,.2)}
.btn.green{background:var(--green)}
.btn.dark{background:var(--ink)}
.btn.ghost{background:rgba(16,32,42,.07);color:var(--ink);box-shadow:none}
.btn.danger{background:var(--danger)}
.btn.small{padding:8px 11px;border-radius:12px;font-size:13px}
.full{width:100%}
.error,.notice{
  border-radius:16px;
  padding:12px 14px;
  margin:12px 0;
  font-weight:700;
}
.error{background:#ffe7e7;color:#8f1d1d}
.notice{background:#e7f7ee;color:#12603a}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(16px);
  background:rgba(248,239,226,.78);
  border-bottom:1px solid rgba(16,32,42,.08);
}
.topbar-inner{
  max-width:1320px;
  margin:auto;
  padding:14px 18px;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}
.brand{display:flex;gap:14px;align-items:center}
.brand img{width:230px;max-width:42vw;height:auto}
.nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.nav button{border:0;background:rgba(255,255,255,.62);padding:10px 12px;border-radius:14px;font-weight:800;color:#243b46}
.nav button.active{background:var(--ink);color:white}
.main{
  width:min(1320px,100%);
  margin:0 auto;
  padding:24px 18px 54px;
}
.hero{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:18px;
  margin-bottom:18px;
}
.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:22px;
}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat{background:rgba(75,147,168,.08);border-radius:20px;padding:16px}
.stat b{display:block;font-size:26px}
.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:18px 0}
.segment{display:flex;gap:8px;background:rgba(255,255,255,.54);border-radius:18px;padding:6px}
.segment button{border:0;border-radius:13px;padding:9px 13px;background:transparent;font-weight:850}
.segment button.active{background:var(--teal);color:#fff}
.calendar-month{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
}
.dow{font-size:12px;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:#647781;text-align:center}
.day{
  min-height:158px;
  border-radius:22px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(16,32,42,.08);
  padding:12px;
  overflow:hidden;
}
.day.disabled{opacity:.38;background:rgba(255,255,255,.35)}
.day-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.day-num{font-weight:900}
.event-pill{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--coral);font-weight:900}
.name-chip{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  margin:6px 0;
  padding:8px 9px;
  border-radius:14px;
  background:rgba(46,124,197,.12);
  color:#164b7c;
  font-size:13px;
  font-weight:800;
}
.name-chip.booked{background:rgba(32,164,100,.16);color:#0d6539;border:1px solid rgba(32,164,100,.18)}
.spot{font-size:11px;opacity:.78}
.week-list{display:grid;grid-template-columns:1fr;gap:14px}
.week-card{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:start}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.avail-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  background:rgba(75,147,168,.08);
  margin:8px 0;
}
.avail-row.booked{background:rgba(32,164,100,.13);border:1px solid rgba(32,164,100,.16)}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.check{display:flex;gap:9px;align-items:center;background:rgba(16,32,42,.05);padding:10px;border-radius:14px}
.check input{width:auto}
.chat-box{height:420px;overflow:auto;background:rgba(16,32,42,.05);border-radius:22px;padding:14px;margin-bottom:12px}
.msg{padding:12px 14px;margin:9px 0;border-radius:18px;background:white}
.msg b{display:block;color:var(--teal2);margin-bottom:4px}
.modal-back{
  position:fixed;inset:0;background:rgba(0,0,0,.42);display:grid;place-items:center;padding:18px;z-index:50;
}
.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:28px;padding:22px;box-shadow:0 30px 90px rgba(0,0,0,.32)}
@media(max-width:850px){
  .hero,.admin-grid,.week-card{grid-template-columns:1fr}
  .calendar-month{gap:6px}
  .day{min-height:124px;border-radius:18px;padding:8px}
  .name-chip{font-size:11px;padding:6px}
  .stat-grid{grid-template-columns:1fr}
}
.season-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:4px}
.season-heading h2{margin:0}
.year-picker{display:flex;align-items:center;gap:10px;background:rgba(16,32,42,.05);border:1px solid rgba(16,32,42,.08);border-radius:999px;padding:5px 8px}
.year-picker strong{min-width:58px;text-align:center;font-size:18px;color:var(--ink)}
.small-copy{font-size:13px;margin:0 0 12px}
.msg p{margin:0;line-height:1.45}
@media(max-width:520px){.season-heading{align-items:flex-start;flex-direction:column}.year-picker{width:max-content}}
.calendar-title{
  text-align:center;
  font-weight:900;
  font-size:clamp(24px,3.2vw,38px);
  letter-spacing:-.035em;
  margin:8px 0 14px;
  color:var(--ink);
}
.clickable,.clickable-row{cursor:pointer;transition:transform .12s ease, box-shadow .12s ease}
.clickable:hover,.clickable-row:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(16,32,42,.12)}
.request-panel{margin-top:18px}
.request-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  background:rgba(75,147,168,.08);
  margin:8px 0;
}
.request-panel h3{margin:16px 0 8px;font-size:17px}
@media(max-width:650px){.request-row{grid-template-columns:1fr}.calendar-title{text-align:left}}
