/* Additions for the real app (keeps the draft's look: purple #614091, yellow #F7D84C). */
.consent label { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; font-weight: 600; }
.consent input { margin-top: 0.3rem; flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--purple); }
.human-stub { display: inline-flex; gap: 0.6rem; align-items: center; padding: 0.7rem 1rem; border: 2px dashed var(--line); border-radius: 12px; background: var(--paper-2); font-weight: 700; }
.human-stub input { width: 1.2rem; height: 1.2rem; accent-color: var(--purple); }
.dash-link { text-decoration: none; color: inherit; transition: transform .15s ease; }
.dash-link:hover { transform: translateY(-3px); }
.empty-state { text-align: center; padding: 2rem 1.25rem; }
.empty-state.small { padding: 1rem; }
.big-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 0.5rem; }
.prose .card h2 { margin-top: 1.4rem; font-size: 1.3rem; }
.prose .card h2:first-child { margin-top: 0; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn-block { display: flex; width: 100%; justify-content: center; margin: 1rem 0; }

/* ---------- Admin (phone first) ---------- */
.admin-app { padding: 1rem 0 6rem; background: var(--paper-2); min-height: 70vh; }
.admin-wrap { max-width: 760px; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.admin-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0; }
.admin-card { padding: 1.1rem 1.2rem; margin-bottom: 0.9rem; }
.admin-card h2 { font-size: 1.2rem; }
.admin-card h3 { margin: 0; font-size: 1.1rem; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.admin-list li:last-child { border-bottom: 0; }
.admin-tip { background: #fff; border-left: 5px solid var(--yellow); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.95rem; color: var(--muted); margin-top: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--purple); color: #fff; border-radius: 16px; padding: 0.9rem 1rem; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat:nth-child(even) { background: var(--purple-deep); }
.stat b { font-family: var(--display); font-size: 1.8rem; color: var(--yellow); line-height: 1.1; }
.stat span { font-size: 0.92rem; color: #fff; }
.stat:hover { color: #fff; }
.chips { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; overflow-x: auto; }
.chip { border: 2px solid var(--purple); background: #fff; color: var(--purple); border-radius: 999px; padding: 0.35rem 0.95rem; font-weight: 700; font-family: inherit; font-size: 0.95rem; cursor: pointer; }
.chip.is-on { background: var(--purple); color: #fff; }
.app-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.app-meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.8rem; margin: 0.8rem 0; font-size: 0.97rem; }
.app-meta dt { font-weight: 800; color: var(--muted); }
.app-meta dd { margin: 0; overflow-wrap: anywhere; }
.search { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: 0.9rem; background: #fff; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.more-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; padding: 1.1rem 0.6rem; font-weight: 800; color: var(--purple-deep); text-decoration: none; }
.more-tile span { font-size: 1.8rem; }
.more-tile small { font-weight: 600; color: var(--muted); }
.more-tile.is-soon { opacity: 0.7; }
.admin-tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-around; background: #fff; border-top: 3px solid var(--yellow); box-shadow: 0 -6px 20px rgba(42,27,61,.12); padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom)); }
.admin-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 0.78rem; font-weight: 800; text-decoration: none; color: var(--muted); position: relative; padding: 0.2rem 0; }
.admin-tabs a span { font-size: 1.35rem; }
.admin-tabs a[aria-current] { color: var(--purple); }
.tab-badge { position: absolute; top: 0; right: 22%; background: var(--tube-red); color: #fff; border-radius: 999px; font-size: 0.72rem; min-width: 1.2rem; padding: 0 0.3rem; }
.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 700; z-index: 100; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }
body:has(.admin-app) .wa-float { display: none; }
body:has(.admin-app) .site-footer { display: none; }

/* ---------- Stage 2: timetable & homework ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 1rem 0; }
.week-nav strong { font-family: var(--display); color: var(--purple-deep); text-align: center; }
.week-days { display: grid; gap: 0.9rem; }
@media (min-width: 900px) { .week-days { grid-template-columns: repeat(5, 1fr); } }
.day-col h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.day-col .slot { width: 100%; margin-bottom: 0.5rem; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.1rem; }
.slot-time { font-weight: 800; font-family: var(--display); }
.slot-title { font-weight: 700; }
.slot-status { font-size: 0.85rem; }
.slot[disabled] { cursor: not-allowed; opacity: 0.75; }
.booking-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.booking-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; }
.booking-list .btn-row { margin: 0; }
.field-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; }
.field-row > * { flex: 1 1 8rem; }
.field-row input, .mark-form textarea { width: 100%; padding: 0.6rem 0.75rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.inline-num { width: 4.2rem !important; display: inline-block; padding: 0.2rem 0.4rem; margin: 0 0.3rem; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
.wrap-chips { flex-wrap: wrap; overflow: visible; }
.admin-actions { margin-bottom: 0.9rem; }
.lesson-list li { flex-wrap: nowrap; }
.lesson-when { font-family: var(--display); font-weight: 800; color: var(--purple); min-width: 6.6rem; font-size: 0.95rem; }
.lesson-what { flex: 1; display: flex; flex-direction: column; }
.roster { display: block !important; background: var(--purple-tint); border-radius: 12px; padding: 0.7rem 0.9rem !important; margin-bottom: 0.4rem; }
.roster[hidden] { display: none !important; }
.roster-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; flex-wrap: wrap; }
.roster-row > span:first-child { flex: 1; }
.hw-detail { margin-top: 0.8rem; border-top: 2px dashed var(--line); padding-top: 0.6rem; }
.mark-form { border-bottom: 1px solid var(--line); padding: 0.6rem 0; display: grid; gap: 0.4rem; }
.mark-form:last-child { border-bottom: 0; }
.to-mark { color: var(--tube-red); }
.pill.ok { background: #DDF3E6; color: var(--ok); }
.pill.late { background: #FBE3E0; color: var(--danger); }
.feedback { background: var(--paper-2); border-left: 5px solid var(--yellow); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.6rem 0; }
.feedback p { margin: 0.3rem 0 0; }
.task-files { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.task .task-actions input[type=text] { flex: 1 1 12rem; padding: 0.5rem 0.75rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.file-btn { cursor: pointer; }
.hw-filters { display: flex; gap: 1rem; flex-wrap: wrap; }
.hw-filters .field { min-width: 14rem; }

/* Private one-time welcome note (admin only) */
.welcome-note { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; background: rgba(42, 27, 61, 0.72); animation: wn-in .35s ease; }
.wn-card { max-width: 420px; width: 100%; text-align: center; padding: 2.2rem 1.6rem 1.6rem; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(247,216,76,.35), transparent 45%), linear-gradient(155deg, var(--purple), var(--purple-deep));
  box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 3px solid var(--yellow); }
.wn-hearts { font-size: 1.6rem; letter-spacing: .3em; margin-bottom: .6rem; }
.wn-text { white-space: pre-line; font-family: "Poppins", var(--font-display, sans-serif); font-weight: 800; font-size: 1.45rem; line-height: 1.35; margin: 0 0 1.4rem; color: var(--yellow); }
@keyframes wn-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Ads-cookie banner (only when a Meta Pixel ID is configured) */
.ads-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; max-width: 560px; margin: 0 auto; background: #fff; border: 3px solid var(--purple);
  border-radius: 16px; padding: .8rem 1rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-size: .92rem; }
.ads-banner p { margin: 0 0 .5rem; }
.mail-preview { margin-top: 1rem; border: 2px dashed var(--line, #e5dcef); border-radius: 14px; padding: 1rem; background: #fffdf3; }
.mail-preview h3 { margin: 0.2rem 0 0.6rem; }
.start-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.start-grid .card h3 { margin: .3rem 0; }
.start-steps { max-width: 640px; margin: 0 auto 1.5rem; padding-left: 1.4rem; font-size: 1.05rem; line-height: 1.7; }
.start-photo { width: 100%; max-width: 360px; border-radius: 24px; border: 6px solid var(--yellow); box-shadow: 0 12px 30px rgba(74,44,112,.25); display: block; margin: 0 auto; }
.start-note { margin-top: .6rem; color: var(--purple-deep); }
.btn-row.center { justify-content: center; }
.center-h { text-align: center; margin-bottom: 1.2rem; }
.quick-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: 0 0 1rem; }
.quick-actions .qa { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .2rem; background: #fff; border: 2px solid var(--purple-tint, #f3ecfa); border-radius: 14px; font-weight: 800; font-size: .74rem; color: var(--purple-deep); text-decoration: none; text-align: center; line-height: 1.15; }
.quick-actions .qa span { font-size: 1.4rem; }
.quick-actions .qa:active, .quick-actions .qa:hover { border-color: var(--yellow); background: #fffbe6; }
@media (max-width: 560px) {
  .lesson-list li { flex-wrap: wrap; }
  .lesson-what { min-width: 0; overflow-wrap: anywhere; }
  .lesson-list li > .btn, .lesson-list li > a.btn { flex-basis: 100%; text-align: center; }
}
