/* Future Minds Scheduler — student website */
:root {
  --navy: #18145F; --ink2: #4A4775; --ink3: #6B6890; --line: #E6E4EF; --line2: #D9D7E6; --soft: #F6F7FB; --soft2: #EEEDF4;
  --mag: #8A0B60; --mag-dark: #5E0742; --pink: #FCE4EF;
  --yellow: #FBF1C4; --yellow-ink: #5F4700; --yellow-line: #E8D27A;
  --green: #0E5A3F; --green-bg: #DDF3EA; --blue: #E3EFFD; --blue-ink: #1B3F7A; --purple: #4B1F8A; --purple-bg: #EDE4FA;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--soft); color: var(--navy); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: var(--mag); }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* boot / spinner */
.boot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: #fff; min-height: 100vh; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--soft2); border-top-color: var(--mag); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* plain white pages (setup, email sent, done) */
.page { flex: 1; background: #fff; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page-body { flex: 1; padding: 28px 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.page-foot { padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid #EEEDF4; display: flex; flex-direction: column; gap: 10px; background: #fff; position: sticky; bottom: 0; }
.logo-c { display: flex; justify-content: center; }
h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.lead { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink2); }

/* form fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .flabel { font-size: 14px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line2); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--navy); background: #fff; width: 100%; }
.field input, .field select { height: 50px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mag); box-shadow: 0 0 0 3px rgba(138, 11, 96, .14); }
.field .err { font-size: 13px; color: #A3123A; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--mag); }
.check b { display: block; font-size: 15px; }
.check span span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink2); margin-top: 2px; }
.req { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--pink); color: #7E0A57; }
.opt { font-size: 11.5px; font-weight: 700; color: var(--ink3); }

/* buttons */
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--mag); color: #fff; font-size: 17px; font-weight: 700; }
.btn-primary:hover { background: var(--mag-dark); }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 1.5px solid var(--line2); border-radius: 14px; background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; }
.btn-link { border: 0; background: none; color: var(--mag); font-size: 15px; font-weight: 700; padding: 10px; }
.btn-print { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--yellow-line); background: var(--yellow); color: var(--yellow-ink); font-size: 14px; font-weight: 800; }
.btn-cancel { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; color: var(--mag); font-size: 14px; font-weight: 700; }
.btn-accept { flex: 1; min-height: 48px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; }
.btn-decline { flex: 1; min-height: 48px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; color: #7E0A57; font-size: 15px; font-weight: 700; }
.btn-rebook { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--mag); color: #fff; font-size: 15px; font-weight: 700; }

/* header + tabs */
.top { background: #fff; border-bottom: 1px solid #EEEDF4; padding: calc(16px + env(safe-area-inset-top)) 20px 14px; position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; }
.top-row img { width: 112px; height: auto; display: block; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: var(--navy); font-weight: 800; font-size: 15px; }
.hello { margin-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hello-name { font-size: 20px; font-weight: 800; }
.hello-sub { font-size: 15px; color: var(--ink2); margin-top: 2px; }
.tabs { margin-top: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--soft2); }
.seg { flex: 1; white-space: nowrap; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg-on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(24, 20, 95, .12); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--yellow); color: var(--yellow-ink); border: 1px solid var(--yellow-line); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.content { flex: 1; padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }

/* chips + meta */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ok { background: var(--green-bg); color: var(--green); }
.pend { background: var(--yellow); color: var(--yellow-ink); }
.na { background: var(--soft2); color: var(--ink2); }
.cxl { background: var(--blue); color: var(--blue-ink); }
.rev { background: var(--purple-bg); color: var(--purple); }
.len { background: var(--blue); color: var(--blue-ink); }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); }
.metas { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tag { font-size: 11.5px; font-weight: 800; letter-spacing: .3px; padding: 2px 7px; border-radius: 6px; background: var(--blue); color: var(--blue-ink); }
.day { font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink3); padding: 0 4px; }
.sec { font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink3); }
.hint { font-size: 13px; color: var(--ink3); }
.group { display: flex; flex-direction: column; gap: 10px; }

/* book list */
.views { display: flex; gap: 8px; }
.view { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink2); font-size: 13.5px; font-weight: 700; }
.view-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--navy); }
.slot:hover { border-color: #CFCBE3; }
.slot-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.slot-t { font-size: 17px; font-weight: 800; }
.slot-s { font-size: 15px; font-weight: 600; color: var(--ink2); }
.pick { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #F1F0F6; font-size: 14px; font-weight: 700; color: var(--mag); }
.more { color: var(--blue-ink); font-weight: 600; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink2); font-size: 15px; line-height: 1.5; background: #fff; border: 1px dashed var(--line2); border-radius: 18px; }

/* month */
.cal { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 800; }
.nav { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.nav:disabled { opacity: .35; cursor: default; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wk { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink3); padding: 4px 0; }
.d { height: 46px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.d .m { width: 6px; height: 6px; border-radius: 50%; background: var(--mag); }
.d .e { width: 6px; height: 6px; }
.d.off { color: #B7B4CC; cursor: default; }
.d.today { box-shadow: inset 0 0 0 1.5px var(--line2); }
.d.sel { background: var(--mag); color: #fff; }
.d.sel .m { background: #fff; }
.legend { display: flex; align-items: center; gap: 6px; padding: 4px 6px 0; font-size: 12.5px; color: var(--ink2); }
.legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--mag); }

/* choose time */
.sub-top { background: #fff; border-bottom: 1px solid #EEEDF4; padding: calc(10px + env(safe-area-inset-top)) 16px 16px; }
.back { width: 44px; height: 44px; margin-left: -8px; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.sub-title { padding: 0 4px; display: flex; flex-direction: column; gap: 6px; }
.sub-title .t { font-size: 22px; font-weight: 800; }
.sub-title .dsc { font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.dchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dchip { flex: none; width: 64px; min-height: 64px; border: 1.5px solid var(--line2); border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: start; }
.dchip .w { font-size: 12px; font-weight: 700; color: var(--ink3); }
.dchip .n { font-size: 18px; font-weight: 800; }
.dchip .mo { font-size: 11px; font-weight: 700; color: var(--ink3); }
.dsel { background: var(--mag); border-color: var(--mag); color: #fff; }
.dsel .w, .dsel .mo { color: #FCE4EF; }
.lgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ldchip { min-width: 0; min-height: 44px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; }
.ldchip:disabled { opacity: .35; cursor: default; }
.lsel { background: var(--navy); border-color: var(--navy); color: #fff; }
.summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--navy); color: #fff; }
.summary b { display: block; font-size: 17px; font-weight: 800; }
.summary span span { display: block; font-size: 13.5px; color: #D9D7E6; margin-top: 2px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.note svg { flex: none; margin-top: 1px; }
.note-y { background: var(--yellow); color: var(--yellow-ink); }
.note-b { background: var(--blue); color: var(--blue-ink); }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.dim { background: #FAFAFC; }
.card.revised { border: 2px solid #B9A3E3; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-date { font-size: 13px; font-weight: 700; color: var(--ink3); }
.c-time { font-size: 18px; font-weight: 700; }
.c-svc { font-size: 15px; font-weight: 600; color: var(--mag); }
.strike { text-decoration: line-through; color: var(--ink3); }
.appr { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--soft); }
.appr-h { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink3); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.row > span:first-child { min-width: 0; }
.btns { display: flex; gap: 10px; }
.center-note { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--blue-ink); }
.past-toggle { border: 0; background: none; color: var(--ink2); font-weight: 700; font-size: 14px; padding: 8px 4px; text-align: left; }

/* approver cards */
.acard { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: visible; }
.acard.dim { background: #FAFAFC; }
.sess { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid #EEEDF4; }
.rq { padding: 14px 16px; border-bottom: 1px solid #F1F0F6; display: flex; flex-direction: column; gap: 10px; position: relative; }
.rq:last-child { border-bottom: 0; }
.av { width: 38px; height: 38px; flex: none; border-radius: 50%; color: var(--navy); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.kebab { width: 44px; height: 44px; flex: none; margin: -6px -10px 0 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink3); font-size: 22px; font-weight: 800; line-height: 1; }
.kebab-on { background: var(--soft2); color: var(--navy); }
.menu { position: absolute; top: 50px; right: 12px; z-index: 3; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(24, 20, 95, .18); padding: 6px; }
.mi { width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: transparent; text-align: left; padding: 8px 12px; display: flex; gap: 10px; align-items: flex-start; }
.mi:hover { background: var(--soft); }
.ans { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 13.5px; line-height: 1.4; }
.ans b { font-weight: 700; color: var(--ink2); }
.warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--pink); color: #7E0A57; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-no { min-height: 44px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; color: #7E0A57; font-size: 14px; font-weight: 700; }
.a-rev { min-height: 44px; border: 1.5px solid #B9A3E3; border-radius: 12px; background: #F6F1FD; color: var(--purple); font-size: 14px; font-weight: 700; }
.a-yes { min-height: 44px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; }
.btn-all { margin: 14px 16px 16px; width: calc(100% - 32px); min-height: 50px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 2px 8px rgba(14, 90, 63, .25); }
.btn-keep { flex: 1; min-height: 46px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; }
.btn-ok { flex: 1; min-height: 46px; border: 0; border-radius: 12px; background: var(--blue-ink); color: #fff; font-size: 15px; font-weight: 700; }
.btn-send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--purple); color: #fff; font-size: 17px; font-weight: 700; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mag); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.st { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; padding: 8px 0; border-top: 1px solid #F1F0F6; }

/* admin */
.alert-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--pink); color: #7E0A57; font-size: 15px; font-weight: 800; text-align: left; }
.alert-btn span { flex: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.f { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink2); font-size: 13.5px; font-weight: 700; font-family: inherit; }
.f-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.alist { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.arow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid #F1F0F6; background: #fff; text-align: left; }
.arow:last-child { border-bottom: 0; }
.arow:hover { background: #FAFAFC; }
.arow .t { width: 64px; flex: none; font-size: 14px; font-weight: 800; display: flex; flex-direction: column; }
.arow .t span { font-size: 12px; font-weight: 600; color: var(--ink3); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.kv span:first-child { color: var(--ink3); }
.kv span:last-child { font-weight: 700; text-align: right; }
.b-force { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; }
.b-rev { width: 100%; min-height: 48px; border: 1.5px solid #B9A3E3; border-radius: 12px; background: #F6F1FD; color: var(--purple); font-size: 15px; font-weight: 700; }
.b-cxl { width: 100%; min-height: 48px; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; color: #7E0A57; font-size: 15px; font-weight: 700; }
.log { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.ldot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--line2); margin-top: 6px; }
.log b { color: var(--navy); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(24, 20, 95, .42); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
.modal { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin: 0; font-size: 21px; font-weight: 800; }
.modal-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.modal-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.menu-item { width: 100%; text-align: left; border: 0; background: var(--soft); border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; }

/* busy overlay + toast */
.busy { position: fixed; inset: 0; background: rgba(255, 255, 255, .72); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 30; font-weight: 700; color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); max-width: calc(100% - 32px); width: 520px; padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 15px; line-height: 1.4; box-shadow: 0 8px 30px rgba(24, 20, 95, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: #7E0A57; }

/* big icon pages */
.icon-big { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.steps { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--soft); }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.step i { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }

.print-only { display: none; }
@media print {
  body, .app { background: #fff; }
  .top, .no-print, .toast, .btn-cancel, .btns { display: none !important; }
  .print-only { display: block; }
  .content { padding: 0; }
  .card { break-inside: avoid; border: 1px solid #999; }
}
@media (min-width: 600px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
