:root {
  --green: #1FAA59;
  --green-deep: #127A3E;
  --green-tint: #E9F8EF;
  --red: #F43F54;
  --red-deep: #D72E43;
  --red-tint: #FEEDEF;
  --ink: #1A2420;
  --muted: #5C6B63;
  --line: #E4EAE6;
  --soft: #F3F6F4;
  --white: #FFFFFF;
  --head: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--white);
}
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); line-height: 1.6; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255, 255, 255, 0.92); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { height: 52px; width: auto; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; border-radius: 999px; padding: 0.95rem 1.6rem; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(244, 63, 84, 0.3); }
.btn-red:hover { background: var(--red-deep); }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(31, 170, 89, 0.28); }
.btn-green:hover { background: var(--green-deep); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.wait { opacity: 0.55; box-shadow: none; }

.shell { max-width: 640px; margin: 2rem auto 4rem; padding: 0 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 60px rgba(26, 36, 32, 0.08); overflow: hidden; }
.c-head { padding: 1.4rem 1.6rem 1.1rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #F6FCF8, #FFFFFF); }
.c-head h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
.c-head p { color: var(--muted); margin-top: 0.3rem; }
.count { font-weight: 700; font-size: 0.88rem; color: var(--muted); margin-top: 1rem; display: block; }
.count b { color: var(--ink); }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 0.6rem; }
.prog i { height: 6px; border-radius: 6px; background: #E6ECE8; overflow: hidden; position: relative; }
.prog i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green), #3DCB7A); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.prog i.on::after { transform: scaleX(1); }
.c-body { padding: 1.6rem; }
.c-foot { display: flex; gap: 0.75rem; padding: 1rem 1.6rem 1.3rem; border-top: 1px solid var(--line); }
.c-foot .btn { flex: 1; }
.c-foot .back { flex: 0 0 auto; }
.c-foot .back[hidden] { display: none; }

.pstep { display: none; }
.pstep.on { display: block; animation: stepin 0.4s cubic-bezier(0.2, 0.9, 0.2, 1); }
.pstep.on.backward { animation-name: stepback; }
@keyframes stepin { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepback { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pop { 50% { transform: scale(1.08); } }
.pstep h2 { font-size: clamp(1.45rem, 4vw, 1.8rem); margin-bottom: 1.1rem; }

.field { margin-bottom: 1rem; }
.field > label, .lbl { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.4rem; }
.opt { font-weight: 500; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=password], .field input[type=number], .field textarea { width: 100%; padding: 0 1rem; height: 52px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: 500 1rem var(--body); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field textarea { height: 120px; padding: 0.85rem 1rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.counter { text-align: right; font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ochip { border: 2px solid var(--line); background: var(--white); border-radius: 14px; padding: 0.55rem 0.95rem; font: 700 0.9rem var(--body); color: var(--ink); cursor: pointer; transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.ochip:hover { border-color: var(--green); transform: translateY(-2px); }
.ochip.on { background: var(--green); border-color: var(--green); color: var(--white); animation: pop 0.35s ease; }
.mpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.mcard { text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 18px; padding: 0.9rem; cursor: pointer; font-family: var(--body); color: var(--ink); transition: all 0.25s ease; }
.mcard b { display: block; }
.mcard small { color: var(--muted); font-size: 0.8rem; }
.mcard.on { border-color: var(--green); background: var(--green-tint); }
.hide { display: none !important; }

.locbtn { width: 100%; display: flex; align-items: center; gap: 0.8rem; border: 2px dashed #BDE9CF; background: #F7FCF9; border-radius: 16px; padding: 0.9rem 1rem; cursor: pointer; font: 700 0.95rem var(--body); color: var(--green-deep); text-align: left; transition: all 0.25s ease; }
.locbtn svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.locbtn.busy svg { animation: spin 1s linear infinite; }
.locbtn.got { border-style: solid; border-color: var(--green); background: var(--green-tint); }
.locnote { font-size: 0.82rem; color: var(--muted); margin: 0.4rem 0 1rem; min-height: 1.2em; }
@keyframes spin { to { transform: rotate(360deg); } }

.field .drop { display: flex; margin: 0; font-weight: 500; font-size: 1rem;
}
.drop { display: flex; align-items: center; gap: 0.9rem; border: 2px dashed var(--line); border-radius: 16px; padding: 0.85rem 1rem; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.drop:hover { border-color: var(--green); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--soft) center / cover no-repeat; flex-shrink: 0; display: grid; place-items: center; }
.drop .thumb svg { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 2; }
.drop.round .thumb { border-radius: 50%; }
.drop b { display: block; font-size: 0.95rem; }
.drop small { color: var(--muted); font-size: 0.8rem; word-break: break-all; }
.drop.has { border-style: solid; border-color: var(--green); background: #F7FCF9; }
.drop.has .thumb svg { display: none; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }

.cal > input, .cal .cal-alt { display: none !important; }
.cal .flatpickr-calendar.inline { width: 100%; max-width: 100%; box-shadow: none; border: 2px solid var(--line); border-radius: 20px; padding: 0.4rem 0.5rem 0.6rem; font-family: var(--body); }
.cal .flatpickr-calendar.inline::before, .cal .flatpickr-calendar.inline::after { display: none; }
.cal .flatpickr-innerContainer, .cal .flatpickr-rContainer, .cal .flatpickr-days, .cal .dayContainer, .cal .flatpickr-weekdays { width: 100% !important; max-width: none !important; min-width: 0 !important; }
.cal span.flatpickr-weekday { flex: 1; font-weight: 700; color: var(--muted); }
.cal .flatpickr-current-month { font-size: 1.05rem; font-weight: 800; }
.cal .flatpickr-day { max-width: none; flex-basis: 14.2857%; height: 42px; line-height: 38px; border-radius: 12px; font-weight: 600; }
.cal .flatpickr-day.flatpickr-disabled, .cal .flatpickr-day.prevMonthDay, .cal .flatpickr-day.nextMonthDay { color: #C3CCC6; }
.cal .flatpickr-day.today { border-color: var(--red); }
.cal .flatpickr-day.selected, .cal .flatpickr-day.startRange, .cal .flatpickr-day.endRange { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: none; }
.cal .flatpickr-day.inRange { background: var(--green-tint); border-color: var(--green-tint); box-shadow: none; border-radius: 0; }
.cal .flatpickr-day.startRange { border-radius: 12px 0 0 12px; }
.cal .flatpickr-day.endRange { border-radius: 0 12px 12px 0; }
.cal .flatpickr-day.startRange.endRange { border-radius: 12px; }
.when { margin-top: 0.8rem; background: var(--soft); border-radius: 14px; padding: 0.75rem 1rem; font-weight: 700; }
.when.set { background: var(--green-tint); color: var(--green-deep); }

.ts-wrapper .ts-control { border: 2px solid var(--line); border-radius: 14px; min-height: 52px; padding: 0.7rem 1rem; font: 500 1rem var(--body); box-shadow: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ts-wrapper.single .ts-control { flex-wrap: nowrap; height: 52px; padding-right: 2.5rem; }
.ts-wrapper.focus .ts-control { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.ts-wrapper.multi.has-items .ts-control { padding: 0.55rem 0.7rem; }
.ts-wrapper.multi .ts-control > div { background: var(--green); color: var(--white); border-radius: 999px; border: 0; padding: 3px 4px 3px 12px; margin: 0; font-weight: 700; font-size: 0.88rem; }
.ts-wrapper.plugin-remove_button .item .remove { border-left: 0; border-radius: 50%; width: 22px; height: 22px; padding: 0; margin-left: 6px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, 0.22); }
.ts-dropdown { z-index: 1000; margin-top: 6px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(26, 36, 32, 0.16); font-family: var(--body); overflow: hidden; }
.ts-dropdown .ts-dropdown-content { max-height: 240px; padding: 6px; }
.ts-dropdown .option { border-radius: 10px; padding: 0.6rem 0.8rem; font-weight: 600; }
.ts-dropdown .active { background: var(--green-tint); color: var(--green-deep); }

.swal2-popup { font-family: var(--body) !important; border-radius: 26px !important; }
.swal2-title { font-family: var(--head) !important; font-weight: 800 !important; color: var(--ink) !important; }
.swal2-styled { border-radius: 999px !important; font-weight: 700 !important; padding: 0.75rem 1.6rem !important; }

.search { position: fixed; inset: 0; z-index: 80; background: var(--white); display: grid; place-items: center; text-align: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.search.gone { opacity: 0; visibility: hidden; }
.radar { position: relative; width: 240px; height: 240px; margin: 0 auto 1.5rem; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: 0.8s; }
.radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { transform: scale(0.15); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(31, 170, 89, 0.35), transparent 30%); animation: spin 1.8s linear infinite; }
.radar .me { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: var(--red); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--red); }
.radar .dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 2px solid var(--white); transform: scale(0); animation: dot 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes dot { to { transform: scale(1); } }
.search h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); min-height: 1.2em; }
.search p { color: var(--muted); margin-top: 0.5rem; }

.res-head { padding: 2.5rem 0 1.5rem; }
.res-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.res-head p { color: var(--muted); margin-top: 0.6rem; font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag { background: var(--green-tint); color: var(--green-deep); font-weight: 700; font-size: 0.8rem; border-radius: 999px; padding: 0.3rem 0.8rem; }
.tag.r { background: var(--red-tint); color: var(--red-deep); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; padding-bottom: 4rem; }
.tcard { position: relative; border: 2px solid var(--line); border-radius: 24px; padding: 1.4rem; background: var(--white); display: flex; flex-direction: column; gap: 0.9rem; opacity: 0; transform: translateY(24px); transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.tcard.show { animation: cardin 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
@keyframes cardin { to { opacity: 1; transform: none; } }
.tcard:hover { border-color: #BDE9CF; box-shadow: 0 20px 40px rgba(31, 170, 89, 0.12); }
.tcard.picked { border-color: var(--green); background: #F7FCF9; }
.t-top { display: flex; gap: 0.9rem; align-items: center; }
.ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--green-tint); background: var(--soft); }
.t-top h3 { font-size: 1.25rem; }
.ver { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 800; color: var(--green-deep); background: var(--green-tint); border-radius: 999px; padding: 0.2rem 0.6rem; margin-top: 0.3rem; }
.ver svg { width: 12px; height: 12px; stroke: var(--green-deep); fill: none; stroke-width: 3; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.fact { background: var(--soft); border-radius: 12px; padding: 0.5rem 0.7rem; }
.fact small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.fact b { font-size: 0.92rem; }
.t-bio { color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-act { display: flex; gap: 0.6rem; margin-top: auto; }
.t-act .btn { flex: 1; padding: 0.75rem 1rem; font-size: 0.92rem; }
.empty { text-align: center; padding: 4rem 1rem; max-width: 520px; margin: 0 auto; }
.empty h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.banner { background: var(--green-tint); border: 2px solid #BDE9CF; border-radius: 18px; padding: 1rem 1.2rem; font-weight: 700; color: var(--green-deep); margin-bottom: 1.5rem; }
.pf { text-align: left; }
.pf-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.pf-top img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--green-tint); }
.pf-top h3 { font-size: 1.5rem; }
.pf h4 { font-size: 0.82rem; color: var(--muted); margin: 1rem 0 0.4rem; font-family: var(--body); }
.pf p { color: var(--ink); font-size: 0.95rem; }

.admin-list { display: grid; gap: 1rem; padding: 1.5rem 0 4rem; }
.arow { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: start; border: 2px solid var(--line); border-radius: 20px; padding: 1.2rem; }
.arow img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.arow h3 { font-size: 1.2rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.35rem 1rem; margin-top: 0.6rem; font-size: 0.88rem; }
.kv span { color: var(--muted); }
.acts { display: grid; gap: 0.5rem; min-width: 170px; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 5px; gap: 4px; margin-top: 1.5rem; }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 0.5rem 1rem; border-radius: 999px; }
.tabs a.on { background: var(--white); color: var(--ink); box-shadow: 0 4px 12px rgba(26, 36, 32, 0.08); }
.login { max-width: 380px; margin: 5rem auto; padding: 0 1rem; }
.flash { border-radius: 14px; padding: 0.8rem 1rem; font-weight: 700; margin-top: 1rem; background: var(--green-tint); color: var(--green-deep); }
.flash.err { background: var(--red-tint); color: var(--red-deep); }

.bk { display: grid; gap: 1rem; padding: 1rem 0 4rem; }
.bk-row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; border: 2px solid var(--line); border-radius: 22px; padding: 1.2rem 1.4rem; }
.bk-row .ph { width: 56px; height: 56px; }
.bk-main { flex: 1; min-width: 220px; }
.bk-main h3 { font-size: 1.15rem; }
.bk-main p { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.st { display: inline-block; font-weight: 800; font-size: 0.75rem; border-radius: 999px; padding: 0.25rem 0.75rem; margin-top: 0.5rem; }
.st.searching { background: var(--green-tint); color: var(--green-deep); }
.st.waiting { background: #FFF4D6; color: #8A6100; }
.st.chosen { background: var(--green); color: var(--white); }
.st.cancelled { background: var(--soft); color: var(--muted); }
.lp { margin-bottom: 1rem; }
.lp-map { position: relative; z-index: 0; isolation: isolate; height: 240px; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); background: #EEF2EF; }
.lp-map .leaflet-container, .lp-map.leaflet-container { font-family: var(--body); }
.lp-gps { position: absolute; z-index: 1000; right: 10px; bottom: 28px; display: inline-flex; align-items: center; gap: 0.4rem; border: 0; border-radius: 999px; padding: 0.55rem 0.9rem; background: var(--white); color: var(--green-deep); font: 700 0.85rem var(--body); box-shadow: 0 6px 18px rgba(26, 36, 32, 0.2); cursor: pointer; }
.lp-gps svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.lp-gps.busy svg { animation: spin 1s linear infinite; }
.lp-pin span { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--red); border: 3px solid var(--white); transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(244, 63, 84, 0.45); animation: pindrop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.lp-pin span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--white); }
@keyframes pindrop { from { transform: translateY(-24px) rotate(-45deg); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }
.lp-place { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.7rem; border-radius: 16px; padding: 0.75rem 0.9rem; background: #F6F8F7; transition: background 0.3s ease; }
.lp-place.set { background: var(--green-tint); }
.lp-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--white); display: grid; place-items: center; }
.lp-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.lp-place.set .lp-ic svg { stroke: var(--red); }
.lp-place.busy .lp-ic svg { animation: spin 1s linear infinite; }
.lp-txt { flex: 1; min-width: 0; }
.lp-txt b { display: block; font-size: 1rem; }
.lp-txt small { color: var(--muted); }
.lp-edit { flex-shrink: 0; border: 0; background: none; color: var(--green-deep); font: 700 0.82rem var(--body); text-decoration: underline; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.lp-search { position: relative; display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.lp-search input { flex: 1; min-width: 0; height: 48px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 14px; font: 500 0.95rem var(--body); color: var(--ink); background: var(--white); }
.lp-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.lp-search > button { flex-shrink: 0; border: 0; border-radius: 14px; padding: 0 1.1rem; background: var(--green); color: var(--white); font: 700 0.92rem var(--body); cursor: pointer; }
.lp-results { position: absolute; z-index: 1100; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px rgba(26, 36, 32, 0.16); padding: 6px; }
.lp-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0.65rem 0.8rem; border-radius: 10px; font: 600 0.9rem var(--body); color: var(--ink); cursor: pointer; }
.lp-results button:hover { background: var(--green-tint); }
.lp-note { padding: 0.65rem 0.8rem; color: var(--muted); font-size: 0.88rem; }
.lp-map { height: 300px !important; }
.lp-layers { position: absolute; z-index: 1000; top: 10px; right: 10px; display: flex; background: var(--white); border-radius: 999px; padding: 4px; box-shadow: 0 6px 18px rgba(26, 36, 32, 0.2); }
.lp-layers button { border: 0; background: none; border-radius: 999px; padding: 0.35rem 0.8rem; font: 700 0.8rem var(--body); color: var(--muted); cursor: pointer; }
.lp-layers button.on { background: var(--green); color: var(--white); }
.lp-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; font-size: 1.2rem; }
@media (max-width: 560px) {
  .row2, .mpick { grid-template-columns: 1fr; }
  .c-body { padding: 1.25rem; }
  .c-head, .c-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
  .arow { grid-template-columns: 64px 1fr; }
  .arow img { width: 64px; height: 64px; }
  .acts { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.nav-links { display: flex; gap: 0.5rem; align-items: center; min-width: 0; }
.qz-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.qz-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.qz-hero p { color: var(--muted); font-size: 1.1rem; margin-top: 0.6rem; }
.lobby { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.panel-card { border: 2px solid var(--line); border-radius: 26px; padding: 1.5rem; background: var(--white); }
.panel-card h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.bands { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; }
.band { text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 18px; padding: 0.9rem 1rem; cursor: pointer; font-family: var(--body); color: var(--ink); transition: all 0.2s ease; }
.band b { display: block; font-size: 1.02rem; }
.band small { color: var(--muted); }
.band:hover { transform: translateY(-2px); border-color: #BDE9CF; }
.band.on { border-color: var(--green); background: var(--green-tint); }
.subj { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; min-height: 46px; }
.subj .ochip[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.start { width: 100%; font-size: 1.15rem; padding: 1.15rem; }
.board ol { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.board li { counter-increment: b; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); }
.board li::before { content: counter(b); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.board li:nth-child(1)::before { background: #FFD966; }
.board li:nth-child(2)::before { background: #DDE3E0; }
.board li:nth-child(3)::before { background: #F3C9A1; }
.board li span { flex: 1; font-weight: 700; }
.board li b { font-family: var(--head); }
.board li.me { background: var(--green-tint); border-radius: 12px; }
.board .none { color: var(--muted); font-size: 0.92rem; }

.game { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 26px; height: 8px; border-radius: 8px; background: #E6ECE8; transition: background 0.3s ease; }
.dots i.ok { background: var(--green); }
.dots i.no { background: var(--red); }
.dots i.now { background: #9FD8B6; animation: blinkdot 1s ease infinite; }
@keyframes blinkdot { 50% { opacity: 0.5; } }
.scorebox { text-align: right; }
.scorebox small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.scorebox b { font-family: var(--head); font-size: 2rem; line-height: 1; }
.streak { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 800; font-size: 0.85rem; color: #B5470B; background: #FFF0E0; border-radius: 999px; padding: 0.3rem 0.8rem; opacity: 0; transform: scale(0.6); transition: all 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.streak.show { opacity: 1; transform: scale(1); }
.streak i { width: 12px; height: 16px; background: linear-gradient(0deg, #F43F54, #FF9F1C); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: flick 0.5s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scaleY(1.2) rotate(6deg); } }
.mute { border: 0; background: var(--soft); border-radius: 999px; padding: 0.45rem 0.85rem; font: 700 0.8rem var(--body); cursor: pointer; color: var(--muted); }
.qcard { position: relative; border: 2px solid var(--line); border-radius: 28px; padding: 2rem 1.6rem 1.6rem; background: var(--white); box-shadow: 0 24px 60px rgba(26, 36, 32, 0.08); }
.qcard.enter { animation: qin 0.45s cubic-bezier(0.2, 0.9, 0.2, 1); }
@keyframes qin { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.ring { position: absolute; top: -34px; right: 1.4rem; width: 68px; height: 68px; background: var(--white); border-radius: 50%; box-shadow: 0 8px 20px rgba(26, 36, 32, 0.12); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: #EEF2EF; }
.ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke 0.3s ease; }
.ring.low .fg { stroke: var(--red); }
.ring.low { animation: pulse 0.5s ease infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.3rem; }
.qtopic { display: inline-block; font-size: 0.78rem; font-weight: 800; color: var(--green-deep); background: var(--green-tint); border-radius: 999px; padding: 0.25rem 0.75rem; margin-bottom: 0.8rem; }
.qtext { font-family: var(--head); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.2; margin-bottom: 1.4rem; padding-right: 3rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.qopt { position: relative; display: flex; align-items: center; gap: 0.8rem; text-align: left; border: 2px solid var(--line); background: var(--white); border-radius: 18px; padding: 1rem; font: 700 1.05rem var(--body); color: var(--ink); cursor: pointer; transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease; }
.qopt:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--green); }
.qopt .k { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--white); font-weight: 800; }
.qopt:nth-child(1) .k { background: #1FAA59; }
.qopt:nth-child(2) .k { background: #F43F54; }
.qopt:nth-child(3) .k { background: #2F80ED; }
.qopt:nth-child(4) .k { background: #F2994A; }
.qopt:disabled { cursor: default; }
.qopt.right { background: var(--green); border-color: var(--green); color: var(--white); animation: popq 0.4s ease; }
.qopt.right .k { background: rgba(255, 255, 255, 0.25); }
.qopt.wrong { background: var(--red-tint); border-color: var(--red); color: var(--red-deep); animation: shakeq 0.45s ease; }
.qopt.dim { opacity: 0.45; }
@keyframes popq { 50% { transform: scale(1.05); } }
@keyframes shakeq { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.float-pts { position: absolute; right: 1rem; top: 50%; font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: var(--white); animation: floatup 1s ease forwards; pointer-events: none; }
@keyframes floatup { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-46px); } }
.fb { margin-top: 1.1rem; border-radius: 16px; padding: 0.9rem 1rem; display: none; }
.fb.show { display: block; animation: qin 0.35s ease; }
.fb.ok { background: var(--green-tint); color: var(--green-deep); }
.fb.no { background: var(--red-tint); color: var(--red-deep); }
.fb b { display: block; font-size: 1.05rem; }
.fb p { color: var(--ink); font-size: 0.95rem; margin-top: 0.2rem; }
.count-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.count-ov span { font-family: var(--head); font-weight: 800; font-size: clamp(6rem, 22vw, 12rem); color: var(--green); animation: zoomc 0.9s ease forwards; }
.count-ov span.go { color: var(--red); }
@keyframes zoomc { from { transform: scale(2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { transform: scale(0.8); opacity: 0; } }

.result { max-width: 860px; margin: 0 auto; padding: 2rem 1rem 4rem; text-align: center; }
.stars { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1rem; }
.stars svg { width: 64px; height: 64px; fill: #E6ECE8; transform: scale(0); }
.stars svg.on { fill: #FFC93C; }
.stars svg.pop { animation: starpop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes starpop { to { transform: scale(1); } }
.result h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.bigscore { font-family: var(--head); font-weight: 800; font-size: clamp(3rem, 10vw, 5rem); color: var(--green); line-height: 1; margin: 0.5rem 0 1.25rem; }
.rstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 560px; margin: 0 auto 1.75rem; }
.rstats div { background: var(--soft); border-radius: 18px; padding: 0.9rem; }
.rstats small { display: block; color: var(--muted); font-weight: 700; font-size: 0.78rem; }
.rstats b { font-family: var(--head); font-size: 1.6rem; }
.weak { border: 2px dashed #F7B5BE; background: #FFF7F8; border-radius: 22px; padding: 1.25rem; margin: 0 auto 1.75rem; max-width: 640px; }
.weak h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.weak .tags { justify-content: center; margin: 0 0 1rem; }
.ractions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-bottom: 2.5rem; }
.review { text-align: left; display: grid; gap: 0.7rem; margin-bottom: 2.5rem; }
.rv-item { border: 2px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
.rv-item.ok { border-color: #BDE9CF; }
.rv-item.no { border-color: #F7B5BE; }
.rv-item b { display: block; margin-bottom: 0.3rem; }
.rv-item p { font-size: 0.92rem; color: var(--muted); }
.rv-item .ans { font-weight: 700; color: var(--ink); }
.sec-title { font-size: 1.4rem; text-align: left; margin: 0 0 0.9rem; }

.mat-filters { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 0.7rem; align-items: end; margin-bottom: 1rem; }
.mat-filters .field { margin: 0; }
.typechips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.typechips a { text-decoration: none; }
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.mat { border: 2px solid var(--line); border-radius: 22px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; transition: border-color 0.2s ease, transform 0.2s ease; }
.mat:hover { border-color: #BDE9CF; transform: translateY(-3px); }
.mat h3 { font-size: 1.12rem; }
.mat p { color: var(--muted); font-size: 0.9rem; }
.mat .meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-top: auto; }
.cta-strip { border-radius: 26px; background: linear-gradient(120deg, var(--green), #3DCB7A); color: var(--white); padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.cta-strip h2 { font-size: 1.5rem; }
.cta-strip .btn { background: var(--white); color: var(--green-deep); }

.adm-nav { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { white-space: nowrap; text-decoration: none; font-weight: 700; color: var(--muted); padding: 0.5rem 0.9rem; border-radius: 999px; }
.adm-nav a.on { background: var(--green-tint); color: var(--green-deep); }
.adm-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; align-items: start; padding: 1.5rem 0 4rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 0.78rem; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.pill-warn { font-size: 0.72rem; font-weight: 800; color: var(--red-deep); background: var(--red-tint); border-radius: 999px; padding: 0.15rem 0.5rem; }
.field select { width: 100%; height: 52px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 14px; font: 500 1rem var(--body); background: var(--white); }

@media (max-width: 860px) {
  .lobby, .adm-grid { grid-template-columns: 1fr; }
  .mat-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .opts, .bands { grid-template-columns: 1fr; }
  .rstats { grid-template-columns: 1fr 1fr 1fr; }
  .mat-filters { grid-template-columns: 1fr; }
  .qtext { padding-right: 0; margin-top: 1rem; }
}

@media (max-width: 600px) {
  .top .wrap { height: 66px; gap: 0.5rem; }
  .logo { height: 40px; }
  .nav-links { gap: 0.35rem; }
  .top .btn-sm { padding: 0.5rem 0.8rem; font-size: 0.8rem; white-space: nowrap; }
  .adm-nav a { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}
@media (max-width: 440px) {
  .logo { height: 34px; }
  .nav-links .btn-soft { display: none; }
}

.rate { display: inline-flex; align-items: center; gap: 2px; font-size: 0.85rem; }
.rate svg { width: 14px; height: 14px; fill: #E2E8E4; }
.rate svg.on { fill: #FFC93C; }
.rate b { margin-left: 4px; }
.bk-head { padding: 2rem 0 1.25rem; }
.bk-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.pill { display: inline-block; font-weight: 800; font-size: 0.8rem; border-radius: 999px; padding: 0.3rem 0.85rem; margin-top: 0.6rem; background: var(--green-tint); color: var(--green-deep); }
.pill.warn { background: #FFF4D6; color: #8A6100; }
.pill.bad { background: var(--red-tint); color: var(--red-deep); }
.steps-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 1.25rem 0 1.75rem; }
.steps-line div { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.steps-line div::before { content: ""; display: block; height: 6px; border-radius: 6px; background: #E6ECE8; margin-bottom: 0.4rem; }
.steps-line div.done::before { background: var(--green); }
.steps-line div.now::before { background: linear-gradient(90deg, var(--green), #9FD8B6); }
.steps-line div.done, .steps-line div.now { color: var(--ink); }
.bk-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; align-items: start; padding-bottom: 4rem; }
.box { border: 2px solid var(--line); border-radius: 24px; padding: 1.4rem; margin-bottom: 1.1rem; background: var(--white); }
.box h2 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.box.hl { border-color: #BDE9CF; background: #F7FCF9; }
.lines { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.lines div.total { border-top: 2px dashed var(--line); padding-top: 0.6rem; font-weight: 800; font-size: 1.1rem; }
.kv2 { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.95rem; }
.kv2 span { color: var(--muted); }
.lesson { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.lesson:first-of-type { border-top: 0; }
.lesson b { display: block; }
.lesson small { color: var(--muted); }
.lesson p { margin-top: 0.35rem; font-size: 0.95rem; }
.chat { display: flex; flex-direction: column; height: 520px; padding: 0; overflow: hidden; }
.chat h2 { padding: 1.1rem 1.2rem 0; }
.chat-note { font-size: 0.8rem; color: var(--muted); padding: 0 1.2rem 0.6rem; border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; overscroll-behavior: contain; }
.msg { max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 16px; background: var(--soft); font-size: 0.93rem; align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--green); color: var(--white); }
.msg small { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 0.2rem; }
.chat-form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; border: 2px solid var(--line); border-radius: 999px; padding: 0 1rem; font: 500 0.95rem var(--body); }
.chat-form input:focus { outline: none; border-color: var(--green); }
.chat-form button { border: 0; border-radius: 999px; background: var(--green); color: var(--white); font: 700 0.9rem var(--body); padding: 0 1.1rem; cursor: pointer; }
.starpick { display: flex; gap: 0.3rem; margin-bottom: 0.8rem; }
.starpick button { border: 0; background: none; cursor: pointer; padding: 0; }
.starpick svg { width: 38px; height: 38px; fill: #E2E8E4; transition: fill 0.15s ease, transform 0.15s ease; }
.starpick button.on svg { fill: #FFC93C; }
.starpick button:hover svg { transform: scale(1.1); }
.linkbtn { border: 0; background: none; color: var(--muted); font: 600 0.88rem var(--body); text-decoration: underline; cursor: pointer; padding: 0; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.5rem; }
.dash-stats div { background: var(--soft); border-radius: 20px; padding: 1rem 1.1rem; }
.dash-stats small { display: block; color: var(--muted); font-weight: 700; font-size: 0.78rem; }
.dash-stats b { font-family: var(--head); font-size: 1.7rem; }
.sec { margin: 1.75rem 0 0.9rem; font-size: 1.35rem; }
.legal { max-width: 760px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.legal h1 { font-size: 2.2rem; margin-bottom: 0.4rem; }
.legal h2 { font-size: 1.25rem; margin: 1.6rem 0 0.4rem; }
.legal p, .legal li { color: #34423A; }
.notice-box { background: #FFF4D6; color: #6B4B00; border-radius: 16px; padding: 0.9rem 1.1rem; font-weight: 600; margin: 1rem 0; }
.tt { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 0.88rem; }
.tt th { background: var(--green); color: var(--white); padding: 0.55rem; border-radius: 10px; }
.tt td { padding: 0.5rem; border-radius: 10px; text-align: center; background: var(--soft); vertical-align: middle; }
.tt td.time { background: none; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tt td.study { background: var(--green-tint); color: var(--green-deep); font-weight: 700; }
.tt td.read { background: #E8F1FD; color: #1F5FB8; font-weight: 700; }
.tt td.brk { background: #FFF4D6; color: #8A6100; }
.tt td.play { background: var(--red-tint); color: var(--red-deep); }
@media (max-width: 860px) {
  .bk-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  .top, .noprint, .etu-chat, .wa { display: none !important; }
  .tt td, .tt th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
