:root {
  --ink: #20213d;
  --muted: #61657c;
  --brand: #2b2b68;
  --brand-2: #4947a8;
  --accent: #f4b740;
  --mint: #68d5c1;
  --mint-soft: #e6faf6;
  --peach: #fff1dc;
  --lavender: #f0efff;
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --line: #e4e5ee;
  --success: #137a5b;
  --danger: #b42318;
  --warning: #8a5a00;
  --shadow: 0 20px 50px rgba(43, 43, 104, 0.10);
  --shadow-sm: 0 8px 24px rgba(43, 43, 104, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(104, 213, 193, .16), transparent 26%),
    radial-gradient(circle at 93% 5%, rgba(244, 183, 64, .14), transparent 25%),
    linear-gradient(180deg, #fbfbff 0%, #fff 35%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: white;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 860px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(228, 229, 238, .88);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
  color: var(--brand);
}
.brand img { width: 42px; height: 42px; }
.brand span span { color: var(--success); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: #45485d; font-weight: 650; font-size: 14px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--brand); }

.mobile-menu-button { display: none; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(104, 213, 193, .55); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 10px 24px rgba(43, 43, 104, .22); }
.btn-primary:hover { background: #222256; box-shadow: 0 13px 30px rgba(43, 43, 104, .28); }
.btn-secondary { background: white; color: var(--brand); border-color: #d7d7e6; }
.btn-secondary:hover { border-color: var(--brand); }
.btn-accent { background: var(--accent); color: #30240c; }
.btn-small { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn-full { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.hero { padding: 74px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #176550;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(104, 213, 193, .18); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -.045em; margin: 22px 0; color: #22224f; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 16px; color: #252558; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 9px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.microcopy { display: flex; flex-wrap: wrap; gap: 18px; color: #5b5f73; font-size: 13px; font-weight: 650; }
.microcopy span { display: inline-flex; align-items: center; gap: 7px; }
.microcopy span::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft); color: var(--success); font-size: 12px; }

.match-preview-wrap { position: relative; }
.match-preview-wrap::before, .match-preview-wrap::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: -1;
}
.match-preview-wrap::before { width: 170px; height: 170px; right: -65px; top: -54px; background: rgba(244, 183, 64, .23); }
.match-preview-wrap::after { width: 120px; height: 120px; left: -50px; bottom: -38px; background: rgba(104, 213, 193, .22); }

.match-preview {
  border: 1px solid rgba(222, 223, 236, .9);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  padding: 26px;
  transform: rotate(1deg);
}
.preview-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.preview-title { font-weight: 850; font-size: 18px; color: var(--brand); }
.preview-status { padding: 6px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--success); font-size: 12px; font-weight: 800; }
.request-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: #55596e; font-size: 12px; font-weight: 700; }
.tutor-card-mini { margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: white; }
.tutor-card-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender); color: var(--brand); font-weight: 900; }
.tutor-meta { flex: 1; }
.tutor-name { font-weight: 850; font-size: 15px; }
.tutor-sub { color: var(--muted); font-size: 12px; }
.score { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mint) 0 88%, #e9eaf2 88%); position: relative; font-size: 12px; font-weight: 900; color: var(--brand); }
.score::before { content: ""; position: absolute; inset: 5px; background: white; border-radius: 50%; }
.score span { position: relative; }
.reason-line { margin-top: 11px; font-size: 12px; color: #4e5268; display: flex; flex-wrap: wrap; gap: 8px; }
.reason-line span { padding: 4px 8px; background: var(--mint-soft); color: #1b6c57; border-radius: 8px; }

.logo-strip { padding: 18px 0 50px; }
.logo-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); overflow: hidden; }
.trust-item { padding: 20px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--brand); font-size: 17px; }
.trust-item span { color: var(--muted); font-size: 12px; }

.section { padding: 84px 0; }
.section-soft { background: linear-gradient(180deg, rgba(247,247,251,.88), rgba(255,255,255,.7)); border-top: 1px solid #f0f0f5; border-bottom: 1px solid #f0f0f5; }
.section-heading { max-width: 730px; margin-bottom: 38px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p { color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.feature-card:nth-child(2) { transform: translateY(12px); }
.feature-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--lavender); color: var(--brand); font-size: 22px; margin-bottom: 20px; }
.feature-card:nth-child(2) .feature-icon { background: var(--peach); }
.feature-card:nth-child(3) .feature-icon { background: var(--mint-soft); }
.feature-card p { color: var(--muted); margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: steps; }
.step-card { position: relative; padding: 30px 25px 24px; border-radius: var(--radius); background: var(--brand); color: white; min-height: 230px; overflow: hidden; }
.step-card:nth-child(2) { background: #3e3d86; }
.step-card:nth-child(3) { background: #126a58; }
.step-card::after { counter-increment: steps; content: "0" counter(steps); position: absolute; right: 16px; bottom: -27px; font-size: 92px; font-weight: 900; color: rgba(255,255,255,.08); line-height: 1; }
.step-card .step-label { color: var(--accent); font-weight: 850; font-size: 13px; }
.step-card h3 { margin-top: 22px; font-size: 24px; }
.step-card p { color: rgba(255,255,255,.78); margin-bottom: 0; }

.transparency-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.check-list { display: grid; gap: 13px; margin-top: 24px; }
.check-item { display: flex; gap: 11px; align-items: flex-start; color: #4d5065; }
.check-item::before { content: "✓"; flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; background: var(--mint-soft); color: var(--success); font-weight: 900; }
.fee-card { border: 1px solid var(--line); background: white; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.fee-card h3 { display: flex; justify-content: space-between; align-items: center; }
.fee-badge { font-size: 12px; padding: 5px 9px; border-radius: 999px; color: var(--success); background: var(--mint-soft); }
.fee-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); color: #4d5065; }
.fee-row strong { color: var(--ink); }
.fee-total { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; font-size: 19px; font-weight: 850; color: var(--brand); }
.fee-note { margin: 15px 0 0; font-size: 12px; color: var(--muted); }

.cta-panel { position: relative; overflow: hidden; border-radius: 32px; padding: 54px; background: var(--brand); color: white; display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.cta-panel::before { content: ""; position: absolute; width: 230px; height: 230px; right: -60px; top: -90px; border-radius: 50%; background: rgba(104,213,193,.18); }
.cta-panel h2 { color: white; margin-bottom: 10px; }
.cta-panel p { color: rgba(255,255,255,.76); margin-bottom: 0; max-width: 660px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 11px; flex: 0 0 auto; }

.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: #fafafe; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 46px; }
.footer-brand p { color: var(--muted); max-width: 430px; margin-top: 16px; }
.footer-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.footer-col a { display: block; text-decoration: none; color: var(--muted); margin: 7px 0; font-size: 14px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--line); color: #777a8e; font-size: 12px; }

/* Form pages */
.page-hero { padding: 56px 0 26px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 14px; }
.page-hero p { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.form-shell { padding: 20px 0 90px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.form-card { background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.form-card-header { padding: 25px 30px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fafafe); }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 700; }
.progress-track { height: 8px; margin-top: 10px; background: #eaebf2; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 33.333%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--mint)); transition: width .25s ease; }
.form-step { padding: 30px; }
.form-step[hidden] { display: none; }
.step-heading { margin-bottom: 25px; }
.step-heading h2 { font-size: 27px; margin-bottom: 7px; }
.step-heading p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { min-width: 0; }
fieldset.form-field { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.form-field label, .legend { display: block; margin-bottom: 8px; color: #34374d; font-size: 14px; font-weight: 750; }
.required::after { content: " *"; color: var(--danger); }
.help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d6d8e3;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 115px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(73,71,168,.10); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; min-height: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; min-height: 47px; align-items: center; justify-content: center; text-align: center; padding: 9px 10px; border: 1px solid #daddE8; border-radius: 12px; color: #4f5268; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s ease; }
.choice input:checked + label { border-color: var(--brand); background: var(--lavender); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + label { outline: 3px solid rgba(104,213,193,.55); outline-offset: 2px; }
.inline-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.inline-fields .separator { color: var(--muted); }
.checkbox-line { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-line input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--brand); flex: 0 0 auto; }
.checkbox-line label { color: #4b4e64; font-size: 13px; }
.checkbox-line a { color: var(--brand); font-weight: 700; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-actions { display: flex; justify-content: space-between; gap: 14px; padding: 22px 30px; border-top: 1px solid var(--line); background: #fafafe; }
.form-actions .right-actions { display: flex; gap: 10px; margin-left: auto; }
.form-status { margin: 0 30px 22px; padding: 13px 15px; border-radius: 12px; font-size: 14px; }
.form-status[hidden] { display: none; }
.form-status.error { background: #fff0ef; color: var(--danger); border: 1px solid #f5c8c3; }
.form-status.success { background: var(--mint-soft); color: var(--success); border: 1px solid #b8ebdf; }
.success-panel { padding: 52px 30px; text-align: center; }
.success-panel[hidden] { display: none; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; background: var(--mint-soft); color: var(--success); font-size: 34px; font-weight: 900; }
.success-panel h2 { font-size: 30px; }
.success-panel p { color: var(--muted); }
.reference-box { display: inline-block; margin: 10px 0 24px; padding: 10px 14px; border: 1px dashed #aeb0c4; border-radius: 10px; background: #fafafe; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.side-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.side-card h3 { font-size: 17px; }
.side-card p, .side-card li { color: var(--muted); font-size: 13px; }
.side-card ul { margin: 0; padding-left: 20px; }
.side-card .privacy-note { padding: 13px; border-radius: 12px; background: var(--mint-soft); color: #2a6657; }

/* Content pages */
.content-card { background: white; border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow-sm); padding: 38px; margin-bottom: 28px; }
.content-card h2 { font-size: 27px; margin-top: 8px; }
.content-card h3 { margin-top: 26px; }
.content-card p, .content-card li { color: #51556a; }
.content-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.content-card th, .content-card td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content-card th { color: var(--brand); background: var(--surface-2); }
.notice { padding: 17px; border-radius: 14px; background: var(--peach); color: #644915; border: 1px solid #f4d99d; }

/* Admin */
.admin-body { background: #f3f4f8; }
.admin-header { padding: 20px 0; background: var(--brand); color: white; }
.admin-header .navbar { min-height: auto; }
.admin-header .brand { color: white; }
.admin-header .brand span span { color: var(--mint); }
.admin-main { padding: 35px 0 80px; }
.admin-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.admin-title-row h1 { font-size: 35px; margin: 0 0 4px; }
.admin-title-row p { color: var(--muted); margin: 0; }
.status-pill { color: var(--ink); display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: white; border: 1px solid var(--line); font-size: 12px; font-weight: 750; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 20px; box-shadow: var(--shadow-sm); }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-value { color: var(--brand); font-size: 31px; line-height: 1.1; font-weight: 900; margin-top: 8px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 22px; align-items: start; }
.panel { background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 20px; margin: 0; }
.panel-body { padding: 20px; }
.request-list { display: grid; gap: 15px; }
.request-card { border: 1px solid var(--line); border-radius: 16px; padding: 17px; }
.request-card.selected { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(73,71,168,.09); }
.request-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.request-card h3 { font-size: 16px; margin-bottom: 3px; }
.request-ref { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.request-details { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.request-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-new { background: var(--peach); color: var(--warning); }
.badge-verified { background: var(--mint-soft); color: var(--success); }
.badge-pending { background: var(--lavender); color: var(--brand); }
.match-list { display: grid; gap: 13px; }
.match-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.match-card-top { display: flex; gap: 12px; align-items: center; }
.match-score { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: var(--brand); color: white; font-weight: 900; }
.match-card h3 { margin: 0; font-size: 15px; }
.match-card p { color: var(--muted); font-size: 12px; margin: 2px 0 0; }
.match-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.match-reasons span { padding: 4px 7px; border-radius: 7px; background: var(--mint-soft); color: #246958; font-size: 10px; font-weight: 750; }
.warning-tags span { background: #fff1ef; color: #9b2c22; }
.empty-state { text-align: center; padding: 35px 14px; color: var(--muted); }
.loading { min-height: 320px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #e4e5ed; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.backend-warning { margin-bottom: 20px; padding: 13px 16px; border-radius: 13px; background: var(--peach); border: 1px solid #efd59b; color: #6a4d16; font-size: 13px; }
.backend-warning[hidden] { display: none; }

@media (max-width: 980px) {
  .hero-grid, .transparency-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 50px; }
  .match-preview-wrap { width: min(100%, 620px); margin: auto; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(2) { transform: none; }
  .feature-card:last-child, .step-card:last-child { grid-column: 1 / -1; }
  .form-layout { grid-template-columns: 1fr; }
  .form-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .side-card { margin: 0; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .navbar { min-height: 68px; }
  .mobile-menu-button { display: inline-flex; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; align-items: center; justify-content: center; background: white; color: var(--brand); }
  .nav-links { display: none; position: absolute; left: 14px; right: 14px; top: 61px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 10px; }
  .nav-links .btn { margin-top: 7px; }
  .hero { padding: 48px 0 35px; }
  h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .logo-strip-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: 0; }
  .section { padding: 62px 0; }
  .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .feature-card:last-child, .step-card:last-child { grid-column: auto; }
  .cta-panel { padding: 35px 25px; align-items: flex-start; flex-direction: column; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .footer-bottom { flex-direction: column; }
  .form-card-header, .form-step { padding-left: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .form-actions { padding: 18px 20px; }
  .form-status { margin-left: 20px; margin-right: 20px; }
  .form-sidebar { grid-template-columns: 1fr; }
  .content-card { padding: 25px 20px; overflow-x: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .hero-actions .btn { width: 100%; }
  .microcopy { display: grid; gap: 10px; }
  .match-preview { padding: 19px; border-radius: 23px; }
  .logo-strip-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .trust-item:last-child { border-bottom: 0 !important; }
  .inline-fields { grid-template-columns: 1fr; }
  .inline-fields .separator { display: none; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .right-actions { width: 100%; margin: 0; }
  .form-actions .btn { flex: 1; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.request-card-button { width: 100%; text-align: left; background: white; cursor: pointer; color: inherit; font: inherit; }
.panel-spaced { margin-top: 22px; }

/* TutorFit v1 colourful experience */
:root{--v1-navy:#10204a;--v1-blue:#377dff;--v1-purple:#7a5cff;--v1-pink:#ee5dd7;--v1-cyan:#4fd6dc;--v1-green:#2fc89b;--v1-yellow:#ffca55;--v1-soft:#f6f8ff}
.v1-body{background:#fff;color:var(--v1-navy)}
.v1-header{background:rgba(255,255,255,.93);backdrop-filter:blur(16px);border-bottom:1px solid rgba(80,100,180,.09)}
.v1-hero{position:relative;overflow:hidden;background:linear-gradient(125deg,#eef8ff 0%,#f5f2ff 48%,#fff4fb 100%);padding:72px 0 42px}
.v1-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:36px;align-items:center;position:relative;z-index:2}
.v1-pill{display:inline-flex;padding:9px 15px;border-radius:999px;background:#fff;color:#4266d5;font-weight:800;box-shadow:0 10px 26px rgba(65,82,170,.10);border:1px solid rgba(70,100,220,.12);font-size:.92rem}
.v1-hero h1{font-size:clamp(2.7rem,5.1vw,5.1rem);line-height:1.02;letter-spacing:-.045em;margin:18px 0 20px;color:#142451}
.v1-hero h1 span{display:block;background:linear-gradient(90deg,#3296ee,#6855f7,#e653c2);-webkit-background-clip:text;background-clip:text;color:transparent}
.v1-hero-copy>p{font-size:1.16rem;line-height:1.75;max-width:680px;color:#526181}
.v1-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0 22px}.v1-hero-actions .btn{min-height:64px;padding:13px 22px;border-radius:18px;display:inline-flex;align-items:center;gap:10px;font-weight:900}.v1-hero-actions small,.v1-cta small{display:block;font-size:.75rem;font-weight:600;opacity:.82}
.v15-primary-cta{color:#fff!important;background:linear-gradient(120deg,#f04ed7,#7658ff,#2b8eff)!important;border:none!important;box-shadow:0 16px 34px rgba(117,74,242,.28)}.v15-primary-cta:hover{transform:translateY(-2px)}
.v1-btn-select{color:#315bd5!important;background:#fff!important;border:2px solid #7796ff!important}
.v1-trust-row{display:flex;gap:14px;flex-wrap:wrap;color:#53617f;font-weight:700;font-size:.9rem}.v1-trust-row span{background:rgba(255,255,255,.75);padding:8px 10px;border-radius:10px}
.v1-hero-media{position:relative}.v1-hero-media img{width:100%;border-radius:34px;box-shadow:0 30px 80px rgba(50,67,140,.19);display:block;min-height:430px;object-fit:cover;object-position:center}

.v1-orb{position:absolute;border-radius:50%;filter:blur(8px);opacity:.42}.orb-a{width:260px;height:260px;background:#79e6ea;left:-100px;top:-80px}.orb-b{width:330px;height:330px;background:#f4a1df;right:-140px;bottom:-180px}
.v1-subject-strip{padding:34px 0;background:#fff}.section-kicker{font-size:.83rem;text-transform:uppercase;letter-spacing:.13em;font-weight:900;color:#6380d9;margin-bottom:14px}.subject-grid-v1{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.subject-card-v1{text-decoration:none;color:#233157;background:#fff;border-radius:20px;padding:18px 8px;text-align:center;box-shadow:0 10px 30px rgba(28,49,103,.08);border:1px solid #edf0f9;transition:.2s}.subject-card-v1:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(28,49,103,.13)}.subject-card-v1 b{width:50px;height:50px;display:grid;place-items:center;margin:0 auto 8px;border-radius:16px;color:#fff;font-size:1rem}.subject-card-v1 span{font-weight:800}.s-red b{background:linear-gradient(135deg,#ff6e88,#ff425d)}.s-blue b{background:linear-gradient(135deg,#5ca4ff,#3476ff)}.s-green b{background:linear-gradient(135deg,#4bddae,#22b985)}.s-yellow b{background:linear-gradient(135deg,#ffd76f,#f3ad2e)}.s-purple b{background:linear-gradient(135deg,#a778ff,#6e52ef)}.s-cyan b{background:linear-gradient(135deg,#5ddfe5,#28b8c3)}.s-pink b{background:linear-gradient(135deg,#ff8fd5,#ec4db4)}.s-navy b{background:linear-gradient(135deg,#3c568f,#1a2e5d)}
.v1-section-head{text-align:center;max-width:760px;margin:0 auto 34px}.v1-section-head>span{color:#6a62e7;font-weight:900}.v1-section-head h2,.v1-ai-grid h2{font-size:clamp(2rem,3.3vw,3.25rem);margin:8px 0 12px;letter-spacing:-.03em}.v1-section-head p{color:#69748e;line-height:1.7}.v1-how{background:linear-gradient(180deg,#fbfcff,#f3f6ff)}.v1-step-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.v1-step-grid article{background:#fff;padding:28px;border-radius:24px;box-shadow:0 12px 35px rgba(37,57,122,.08)}.step-icon{width:58px;height:58px;border-radius:20px;color:#fff;display:grid;place-items:center;font-size:1.4rem;font-weight:900;margin-bottom:18px}.i1{background:linear-gradient(135deg,#f45bd5,#8c60ff)}.i2{background:linear-gradient(135deg,#5a9eff,#4fd4dc)}.i3{background:linear-gradient(135deg,#36c99a,#88d557)}
.v1-ai-section{background:#fff}.v1-ai-grid{display:grid;grid-template-columns:1fr .9fr;gap:54px;align-items:center}.ai-demo-card{background:linear-gradient(145deg,#edf5ff,#f8efff);border-radius:30px;padding:28px;min-height:380px;box-shadow:0 20px 50px rgba(65,80,170,.11)}.ai-avatar{width:58px;height:58px;border-radius:19px;background:linear-gradient(135deg,#4dd3dc,#735cff);color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:20px;box-shadow:0 10px 22px rgba(91,88,230,.24)}.bubble{padding:16px 18px;border-radius:20px;line-height:1.6;max-width:88%;box-shadow:0 8px 20px rgba(40,54,110,.07)}.bubble.parent{background:#fff;margin-left:auto;border-bottom-right-radius:6px}.bubble.ai{background:#685df4;color:#fff;border-bottom-left-radius:6px}.ai-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.ai-tags span{background:#fff;border:1px solid #dce4ff;padding:7px 9px;border-radius:999px;font-size:.8rem;font-weight:800;color:#4064c4}.check-list{list-style:none;padding:0;display:grid;gap:10px;margin:20px 0}.check-list li:before{content:'✓';color:#21b888;font-weight:900;margin-right:9px}
.feature-grid-v1{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.feature-grid-v1 article{padding:24px;border-radius:23px;min-height:220px}.feature-grid-v1 article>div{font-weight:900;font-size:1.25rem;width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:#fff}.f-blue{background:#eaf4ff}.f-purple{background:#f1edff}.f-green{background:#e9fbf4}.f-orange{background:#fff4df}.v1-cta{padding:42px 0;background:linear-gradient(110deg,#23bfe5,#5967f5,#a953ef);color:#fff}.v1-cta .container{display:flex;justify-content:space-between;align-items:center;gap:24px}.v1-cta span{opacity:.82;font-weight:800}.v1-cta h2{margin:4px 0;font-size:clamp(1.7rem,3vw,2.7rem)}
.smart-form-hero{padding:58px 0 34px;background:linear-gradient(120deg,#eef9ff,#f7f1ff,#fff5fa);text-align:center}.smart-form-hero h1{font-size:clamp(2.3rem,4vw,4rem);margin:14px auto 12px;max-width:850px;letter-spacing:-.04em}.smart-form-hero p{max-width:760px;margin:auto;color:#64718d;font-size:1.08rem}.smart-form-section{background:#f6f8fe}.smart-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.v1-form-card{border:0!important;box-shadow:0 22px 55px rgba(31,51,116,.11)!important;border-radius:28px!important;overflow:hidden}.ai-summary-box{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.ai-summary-box span{background:#eef1ff;color:#4c58c6;padding:7px 9px;border-radius:999px;font-size:.8rem;font-weight:800}.or-divider{text-align:center;color:#8590a8;font-weight:700;position:relative;margin:8px 24px 2px}.or-divider:before,.or-divider:after{content:'';display:inline-block;width:32%;height:1px;background:#e4e8f2;vertical-align:middle;margin:0 12px}.step-mini{font-size:.75rem;font-weight:900;color:#7c61e8;letter-spacing:.08em}.level-picker,.chip-picker{display:flex;gap:8px;flex-wrap:wrap}.level-picker button,.chip-picker button,.quick-time-row button{border:1px solid #dce3f4;background:#fff;color:#40506f;border-radius:12px;padding:10px 13px;font-weight:800;cursor:pointer}.level-picker button.active,.chip-picker button.active,.quick-time-row button.active{background:linear-gradient(120deg,#536cf1,#8b55e9);color:#fff;border-color:transparent}.level-picker button:hover,.chip-picker button:hover,.quick-time-row button:hover{border-color:#7894f5;transform:translateY(-1px)}.sr-only-select,.sr-only-textarea{position:absolute!important;width:1px!important;height:1px!important;opacity:.01!important;pointer-events:none!important;clip:rect(0 0 0 0)!important}.subject-choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.visual-choice{position:relative;border:2px solid transparent;background:#fff;border-radius:18px;padding:15px 10px;text-align:center;cursor:pointer;box-shadow:0 7px 18px rgba(40,55,110,.06)}.visual-choice input{position:absolute;opacity:0}.visual-choice b{width:45px;height:45px;margin:0 auto 8px;border-radius:14px;display:grid;place-items:center;color:#fff}.visual-choice span{font-weight:900}.visual-choice:has(input:checked){border-color:#7068ef;box-shadow:0 10px 24px rgba(104,89,230,.14);transform:translateY(-2px)}.c-red b{background:#f75c78}.c-blue b{background:#4d91f3}.c-green b{background:#2ec594}.c-yellow b{background:#f2b632}.c-cyan b{background:#2dbbc5}.c-purple b{background:#795ce8}.c-pink b{background:#e65cb0}.c-navy b{background:#344d83}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mode-grid label{cursor:pointer}.mode-grid input{position:absolute;opacity:0}.mode-grid span{display:block;background:#fff;border:2px solid #e5e9f4;border-radius:16px;padding:18px;text-align:center;font-weight:900}.mode-grid input:checked+span{border-color:#7068ef;background:#f1efff;color:#554cc5}.timetable-field{margin-top:16px}.quick-time-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.time-grid{display:grid;grid-template-columns:92px repeat(7,1fr);gap:5px;background:#eef2fb;padding:8px;border-radius:17px;overflow:auto}.time-grid-corner,.time-day,.time-label{min-width:62px;display:grid;place-items:center;text-align:center;color:#53617f;font-weight:800}.time-label{align-content:center}.time-label small{font-size:.65rem;font-weight:600}.time-cell{min-width:49px;height:50px;border:none;border-radius:10px;background:#fff;color:#8490aa;font-weight:900;cursor:pointer}.time-cell:hover{background:#e6edff}.time-cell.active{background:linear-gradient(135deg,#4fc7dd,#6961ee);color:#fff;box-shadow:0 5px 14px rgba(83,96,220,.24)}.selected-times{margin-top:10px;font-size:.87rem;color:#5d6984}.budget-card{background:linear-gradient(135deg,#edf8ff,#f4f0ff);padding:22px;border-radius:20px;margin-bottom:18px}.budget-card>span{font-weight:900}.budget-inputs{display:flex;align-items:center;gap:12px;margin:12px 0}.budget-inputs input{font-size:1.2rem;font-weight:900;max-width:180px}.preference-note,.colorful-side{background:linear-gradient(135deg,#eaf7ff,#f0edff)!important}.colorful-side>span{font-size:.77rem;color:#6d61e6;font-weight:900}.colorful-side li{margin:10px 0}.v1-form-side{position:sticky;top:92px}
@media(max-width:1024px){.subject-grid-v1{grid-template-columns:repeat(4,1fr)}.feature-grid-v1{grid-template-columns:repeat(2,1fr)}.smart-form-layout{grid-template-columns:1fr}.v1-form-side{position:static;display:grid;grid-template-columns:1fr 1fr}.v1-hero-grid,.v1-ai-grid{grid-template-columns:1fr}.v1-hero-media{max-width:760px}}
@media(max-width:720px){.v1-hero{padding-top:42px}.v1-hero h1{font-size:2.65rem}.v1-hero-media img{min-height:320px;border-radius:24px}.subject-grid-v1{grid-template-columns:repeat(4,1fr);gap:8px}.subject-card-v1{padding:13px 5px;border-radius:15px}.subject-card-v1 b{width:42px;height:42px}.v1-step-grid,.feature-grid-v1{grid-template-columns:1fr}.v1-cta .container{display:block}.v1-cta .btn{margin-top:18px}.subject-choice-grid{grid-template-columns:repeat(2,1fr)}.mode-grid{grid-template-columns:1fr}.smart-form-section{padding-top:18px}.v1-form-side{grid-template-columns:1fr}.time-grid{grid-template-columns:75px repeat(7,52px)}.or-divider:before,.or-divider:after{width:22%}.v1-hero-actions{display:grid}.v1-hero-actions .btn{width:100%;justify-content:center}}

/* TutorFit AI Concierge v1.1 */
.tf-chat{position:fixed;right:20px;bottom:20px;z-index:1200;font-family:inherit}
.tf-chat-launcher{width:62px;height:62px;border-radius:22px;border:0;background:linear-gradient(135deg,#4f46e5,#8b5cf6 55%,#ec4899);color:#fff;font-weight:900;font-size:18px;box-shadow:0 18px 45px rgba(79,70,229,.35);cursor:pointer}
.tf-chat-panel{width:min(390px,calc(100vw - 28px));height:min(590px,calc(100vh - 110px));background:#fff;border:1px solid rgba(79,70,229,.14);border-radius:26px;box-shadow:0 28px 80px rgba(15,23,42,.22);overflow:hidden;margin-bottom:12px}
.tf-chat-head{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;background:linear-gradient(120deg,#eef2ff,#fdf2f8)}
.tf-chat-head strong{display:block;color:#18233f}.tf-chat-head small{display:block;color:#64748b;margin-top:2px}
.tf-chat-close{border:0;background:#fff;width:34px;height:34px;border-radius:12px;font-size:25px;cursor:pointer;color:#475569}
.tf-chat-messages{height:335px;overflow:auto;padding:16px;background:linear-gradient(#fff,#fbfdff)}
.tf-msg{max-width:86%;padding:11px 13px;border-radius:17px;margin:0 0 10px;line-height:1.55;font-size:14px;white-space:pre-wrap}
.tf-msg-ai{background:#eef2ff;color:#26345c;border-bottom-left-radius:6px}.tf-msg-user{background:#172554;color:#fff;margin-left:auto;border-bottom-right-radius:6px}.tf-msg-error{background:#fff1f2;color:#9f1239}
.tf-chat-quick{display:flex;gap:7px;overflow:auto;padding:0 14px 10px}.tf-chat-quick button{white-space:nowrap;border:1px solid #dbe3ff;background:#fff;color:#4338ca;border-radius:999px;padding:7px 10px;font-size:12px;cursor:pointer}
.tf-chat-form{display:flex;gap:8px;padding:12px 14px 8px;border-top:1px solid #eef2f7}.tf-chat-form input{min-width:0;flex:1;border:1px solid #d8dfeb;border-radius:14px;padding:11px 12px;font:inherit}.tf-chat-form button{border:0;border-radius:14px;background:#4f46e5;color:#fff;padding:0 15px;font-weight:700;cursor:pointer}.tf-chat-form button:disabled{opacity:.55}
.tf-chat-note{font-size:11px;color:#64748b;margin:0;padding:0 14px 13px;line-height:1.45}.tf-chat-action{display:inline-block;margin:0 0 12px 16px;background:#10b981;color:#fff;padding:9px 12px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:700}
@media(max-width:600px){.tf-chat{right:12px;bottom:12px}.tf-chat-panel{height:min(72vh,570px)}.tf-chat-messages{height:320px}}

/* FPS-first payment section */
.v1-payment{background:linear-gradient(135deg,#ecfeff 0%,#eff6ff 48%,#fff7ed 100%)}
.payment-flow-card{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;border-radius:28px;background:#fff;padding:30px;box-shadow:0 20px 50px rgba(15,23,42,.08);border:1px solid rgba(14,165,233,.12)}
.payment-flow-steps{display:grid;gap:12px}.payment-flow-step{display:flex;gap:14px;align-items:flex-start;padding:13px;border-radius:18px;background:#f8fafc}.payment-flow-step b{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#0ea5e9;color:#fff;flex:0 0 auto}.fps-card{padding:24px;border-radius:24px;background:linear-gradient(145deg,#052e4d,#0f766e);color:#fff}.fps-card .fps-badge{display:inline-flex;background:#fff;color:#0f766e;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px}.fps-card h3{font-size:28px;margin:14px 0 8px}.fps-card p{opacity:.88}.fps-card .money{font-size:40px;font-weight:900;margin:18px 0 4px}.fps-card small{opacity:.75}
@media(max-width:800px){.payment-flow-card{grid-template-columns:1fr;padding:20px}}

/* Admin system health v1.1 */
.health-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.health-card{display:flex;gap:10px;align-items:center;padding:14px;border-radius:16px;background:#f8fafc;border:1px solid #e5e7eb}.health-card strong{display:block;font-size:13px}.health-card small{display:block;color:#64748b;margin-top:3px;font-size:11px}.health-dot{width:10px;height:10px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.12)}.health-card.ok .health-dot{background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}.health-actions{display:flex;align-items:center;gap:12px;margin-top:14px;color:#64748b;font-size:13px}.system-health-panel{margin-bottom:18px}@media(max-width:900px){.health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.health-grid{grid-template-columns:1fr}}

/* TutorFit AI Concierge v1.2 state + live tutor search */
.tf-chat-head-actions{display:flex;align-items:center;gap:7px}.tf-chat-reset{border:1px solid #dbe3ff;background:#fff;color:#4f46e5;border-radius:10px;padding:7px 9px;font-size:11px;font-weight:800;cursor:pointer}.tf-chat-state{padding:10px 14px 9px;background:#f8faff;border-bottom:1px solid #eef2ff}.tf-chat-state>strong{font-size:11px;color:#64748b;display:block;margin-bottom:6px}.tf-chat-state-chips{display:flex;gap:6px;overflow:auto;padding-bottom:2px}.tf-chat-state-chips span{white-space:nowrap;font-size:11px;font-weight:750;color:#4338ca;background:#eef2ff;border:1px solid #dfe4ff;border-radius:999px;padding:5px 8px}.tf-chat-tutors{margin:4px 4px 14px;padding:10px;background:#f8fafc;border:1px solid #e5eaf2;border-radius:16px}.tf-chat-tutors>strong{display:block;font-size:12px;color:#475569;margin:0 0 8px 2px}.tf-chat-tutor-card{background:#fff;border:1px solid #e4e9f1;border-radius:14px;padding:10px;margin-top:7px;box-shadow:0 4px 12px rgba(15,23,42,.04)}.tf-chat-tutor-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.tf-chat-tutor-top strong{font-size:13px;color:#172033}.tf-chat-tutor-top span{background:#ecfdf5;color:#047857;font-size:11px;font-weight:900;border-radius:999px;padding:4px 7px}.tf-chat-tutor-card p{margin:6px 0 0;font-size:11px;line-height:1.45;color:#64748b}.tf-chat-tutor-reasons{color:#166534!important}.tf-msg{white-space:pre-line}.tf-chat-panel{height:min(650px,calc(100vh - 100px))}.tf-chat-messages{height:360px}
@media(max-width:600px){.tf-chat-head-actions{gap:4px}.tf-chat-reset{padding:6px 7px}.tf-chat-panel{height:min(80vh,650px)}.tf-chat-messages{height:350px}}

/* v1.3 policy-driven concierge and tutor onboarding */
.tf-chat-dossier{margin:6px 4px 14px;padding:12px 13px;background:linear-gradient(135deg,#f6f8ff,#fff7fb);border:1px solid #e3e7ff;border-radius:16px;box-shadow:0 5px 14px rgba(36,48,96,.05)}
.tf-chat-dossier>strong{display:block;color:#283357;font-size:12px;margin-bottom:7px}.tf-chat-dossier ul{margin:0;padding-left:17px;color:#596781}.tf-chat-dossier li{font-size:11px;line-height:1.55;margin:3px 0}
.tutor-availability-picker{background:linear-gradient(135deg,#f8fbff,#fbf7ff);border:1px solid #e5eafb;border-radius:20px;padding:18px!important}.tutor-availability-picker .time-grid{margin-top:10px}
.document-upload-box{background:#fbfcff;border:1px solid #e4e9f5;border-radius:20px;padding:18px!important}.document-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.document-upload-card{display:flex;flex-direction:column;gap:8px;border:1px dashed #b9c5e4;background:#fff;border-radius:16px;padding:15px;font-weight:850;color:#33415f}.document-upload-card input{font-weight:500}.document-upload-card small{color:#73809a;font-weight:600}.privacy-note.compact{margin:12px 0 0;padding:10px 12px;font-size:.82rem}
@media(max-width:700px){.document-upload-grid{grid-template-columns:1fr}.tutor-availability-picker{padding:12px!important}.tutor-availability-picker .time-grid{grid-template-columns:76px repeat(7,48px)}}

/* TutorFit v1.5 Simplified Marketplace Beta */
.brand-wide img{width:260px;max-width:48vw;height:auto}.v15-body{background:#f8fbff}.v15-hero{padding:54px 0 30px;background:radial-gradient(circle at 15% 0,#e5f7ff 0,transparent 35%),radial-gradient(circle at 85% 10%,#fff0f7 0,transparent 32%),linear-gradient(180deg,#fff,#f8fbff)}.v15-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center}.v15-hero-copy h1{font-size:clamp(42px,5.2vw,74px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 22px;color:#16255a}.v15-hero-copy h1 span{background:linear-gradient(90deg,#6a4cff,#2676ec,#13b899);-webkit-background-clip:text;background-clip:text;color:transparent}.v15-hero-copy>p{font-size:20px;line-height:1.75;color:#5b6785;max-width:700px}.v15-ai-box{margin-top:26px;background:rgba(255,255,255,.9);border:1px solid #e0e7ff;border-radius:24px;padding:22px;box-shadow:0 18px 50px rgba(39,68,145,.12)}.v15-ai-box strong{color:#4231b8}.v15-ai-box p{margin:8px 0 16px;font-size:17px;color:#344260}.v15-actions{display:flex;gap:12px;flex-wrap:wrap}.v15-proof{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:20px;color:#3f536f;font-weight:700}.v15-hero-media{position:relative}.v15-hero-media>img{width:100%;border-radius:30px;box-shadow:0 24px 70px rgba(27,63,125,.18);display:block}.v15-float-card{position:absolute;background:rgba(255,255,255,.94);padding:13px 16px;border-radius:18px;box-shadow:0 12px 35px rgba(34,50,100,.18);display:grid;gap:3px}.v15-float-card b{color:#17255a}.v15-float-card span{font-size:13px;color:#66738f}.v15-float-card.f1{left:-20px;bottom:55px}.v15-float-card.f2{right:-18px;top:50px}.v15-quick-strip{padding:12px 0 30px}.v15-how{background:#fff}.v15-scenarios{background:linear-gradient(180deg,#f7f9ff,#fff)}.scenario-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.scenario-card{border-radius:22px;padding:20px;min-height:190px;border:1px solid #e4e8f6;box-shadow:0 10px 35px rgba(36,58,110,.07);background:white}.scenario-card.s1{background:linear-gradient(145deg,#fff1f5,#fff)}.scenario-card.s2{background:linear-gradient(145deg,#eef6ff,#fff)}.scenario-card.s3{background:linear-gradient(145deg,#effcf8,#fff)}.scenario-card.s4{background:linear-gradient(145deg,#fff9e8,#fff)}.scenario-card.s5{background:linear-gradient(145deg,#f4efff,#fff)}.scenario-top{display:flex;justify-content:space-between;gap:8px;color:#68728c;font-size:13px}.scenario-top strong{color:#3d4ec6}.scenario-card h3{margin:16px 0 7px;font-size:18px;color:#182451}.scenario-card p{color:#56627d;margin:0 0 12px}.scenario-card small{color:#7b849b;line-height:1.5}.v15-value{background:#fff}.v15-value-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:34px;align-items:center}.v15-value-copy h2{font-size:40px;line-height:1.15;color:#17255a}.v15-value-copy p{color:#66718a;line-height:1.8;font-size:18px}.v15-value-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v15-value-cards article{border-radius:20px;padding:22px;background:#f8faff;border:1px solid #e5e9f7}.v15-value-cards b{display:block;font-size:18px;color:#1c2c64;margin-bottom:8px}.v15-value-cards span{color:#65718b;line-height:1.55}.v15-cta{margin-top:0}.text-ai-intake{border:1px solid #e3e7f6;background:linear-gradient(120deg,#eef7ff,#fff4fa);border-radius:22px;padding:22px;margin-bottom:20px}.text-ai-intake h2{margin:5px 0 8px;color:#17255a}.text-ai-intake p{color:#65718b}.otp-box{background:#f8faff;border:1px solid #e2e7f5;border-radius:16px;padding:14px}.otp-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.otp-row input{width:150px}.otp-status{display:block;margin-top:8px;color:#66718a}.otp-status.success{color:#16866f}.otp-status.warn,.otp-status.test{color:#9a6200}.otp-status.error{color:#b83044}.admin-top-actions{display:flex;flex-wrap:wrap;gap:8px}.stat-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.request-card-button-inner{border:0;background:transparent;width:100%;text-align:left;padding:0;color:inherit;cursor:pointer}.request-detail-btn{margin-top:12px}.test-record{border-style:dashed;border-color:#beaefc}.badge-test{background:#f1eaff;color:#673fc8}.test-data-banner{padding:12px 14px;background:#fff7df;border:1px solid #f1d88b;border-radius:14px;color:#805a00;margin-bottom:14px}.admin-drawer[hidden]{display:none}.admin-drawer{position:fixed;inset:0;z-index:1000}.admin-drawer-backdrop{position:absolute;inset:0;background:rgba(15,24,54,.44);backdrop-filter:blur(2px)}.admin-drawer-panel{position:absolute;right:0;top:0;bottom:0;width:min(720px,96vw);background:#fff;overflow:auto;padding:28px;box-shadow:-24px 0 70px rgba(20,31,70,.24)}.drawer-close{position:sticky;top:0;float:right;width:38px;height:38px;border-radius:50%;border:0;background:#f0f3fa;font-size:26px;cursor:pointer;z-index:2}.drawer-head{padding:10px 52px 18px 0;border-bottom:1px solid #e8ebf5}.drawer-head h2{font-size:28px;color:#17255a;margin:10px 0 5px}.drawer-head p{color:#7a849a}.drawer-section{padding:20px 0;border-bottom:1px solid #edf0f7}.drawer-section h3{margin:0 0 12px;color:#22316c}.detail-row{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:8px 0}.detail-row>span{color:#7b8499}.detail-row>strong{font-weight:600;color:#263452}.detail-text{white-space:pre-wrap;line-height:1.65}.detail-list{display:flex;flex-wrap:wrap;gap:7px}.detail-list span{padding:7px 10px;border-radius:999px;background:#f2f5fb;color:#536078}.document-row{display:grid;gap:4px;padding:12px 14px;border:1px solid #e2e7f2;border-radius:14px;margin-bottom:8px;text-decoration:none;color:#273454}.document-row:hover{background:#f7f9ff}.document-row small{color:#8b94a7}.admin-review-form{display:grid;gap:10px}.admin-review-form textarea{min-height:100px}.review-actions{display:flex;gap:8px;flex-wrap:wrap}.drawer-open{overflow:hidden}.loading-inline{padding:40px;color:#68728c}.health-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
@media (max-width:1100px){.scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v15-hero-grid,.v15-value-grid{grid-template-columns:1fr}.v15-hero-media{max-width:760px}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.brand-wide img{width:205px;max-width:64vw}.v15-hero{padding-top:30px}.v15-hero-copy h1{font-size:42px}.v15-hero-copy>p{font-size:17px}.v15-float-card{display:none}.scenario-grid,.v15-value-cards{grid-template-columns:1fr}.otp-row{align-items:stretch}.otp-row input{width:100%}.detail-row{grid-template-columns:1fr;gap:4px}.admin-drawer-panel{width:100%;padding:18px}}


/* TutorFit v1.5.1 homepage tutor gallery */
.v151-hero-collage{display:grid;grid-template-columns:1.2fr .8fr;grid-template-rows:repeat(3,118px);gap:14px;min-height:382px}
.v151-photo-skeleton,.v151-hero-person{border-radius:24px;background:linear-gradient(135deg,#eef3ff,#fff3f7);border:1px solid #e1e7f5;overflow:hidden;box-shadow:0 18px 45px rgba(26,50,105,.12)}
.v151-photo-skeleton.big,.v151-hero-person.big{grid-row:1/4}
.v151-hero-person{position:relative;min-height:118px}
.v151-hero-person.big{min-height:382px}
.v151-hero-person .v151-tutor-photo{position:absolute;inset:0;width:100%;height:100%;border-radius:0}
.v151-hero-person .v151-tutor-photo span{font-size:42px}
.v151-hero-person>div:last-child{position:absolute;left:14px;right:14px;bottom:14px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);display:grid;gap:2px;z-index:2}
.v151-hero-person>div:last-child strong{color:#152351;font-size:15px}.v151-hero-person>div:last-child span{color:#66718a;font-size:12px}
.v151-tutors{background:#fff}.v151-tutor-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:26px}.v151-tutor-head h2{font-size:clamp(32px,4vw,48px);color:#17255a;margin:8px 0 10px}.v151-tutor-head p{color:#68748f;max-width:760px;margin:0;line-height:1.7}.v151-tutor-count{min-width:120px;padding:16px 18px;border:1px solid #e1e7f4;border-radius:20px;background:#f7f9ff;text-align:center}.v151-tutor-count strong{display:block;color:#3e4cca;font-size:34px;line-height:1}.v151-tutor-count span{display:block;color:#74809a;font-size:12px;margin-top:6px}.v151-tutor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.v151-tutor-card{border:1px solid #e4e9f4;border-radius:22px;padding:16px;background:#fff;box-shadow:0 10px 28px rgba(31,52,99,.07);display:flex;flex-direction:column;min-width:0}.v151-tutor-card-top{display:flex;gap:12px;align-items:center}.v151-tutor-card h3{margin:0;color:#17255a;font-size:18px}.v151-tutor-card-top p{margin:4px 0 0;color:#7a849a;font-size:12px;line-height:1.4}.v151-tutor-photo{width:70px;height:70px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#e8f2ff,#f8ebff);display:grid;place-items:center;flex:0 0 auto;position:relative}.v151-tutor-photo span{font-weight:900;color:#5362bd;font-size:18px}.v151-tutor-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.v151-tutor-tags{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 10px}.v151-tutor-tags span{font-size:11px;font-weight:800;color:#4f56ad;background:#eef0ff;border-radius:999px;padding:5px 8px}.v151-tutor-meta,.v151-tutor-strength{margin:0 0 7px;color:#6c7790;font-size:12px;line-height:1.5}.v151-tutor-strength{color:#44516d;min-height:36px}.v151-tutor-foot{margin-top:auto;padding-top:12px;border-top:1px solid #edf0f6;display:flex;align-items:center;justify-content:space-between;gap:10px}.v151-tutor-foot strong{color:#1b2a5e;font-size:13px}.v151-tutor-foot a{font-size:12px;font-weight:800;color:#4c4fc0;text-decoration:none}.v151-tutor-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}
@media(max-width:1100px){.v151-tutor-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.v151-tutor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v151-tutor-head{align-items:flex-start}.v151-hero-collage{grid-template-rows:repeat(3,100px);min-height:328px}.v151-hero-person.big{min-height:328px}}
@media(max-width:560px){.v151-tutor-grid{grid-template-columns:1fr}.v151-tutor-head{display:grid}.v151-tutor-count{justify-self:start}.v151-hero-collage{grid-template-columns:1fr 1fr;grid-template-rows:220px 115px 115px;min-height:478px}.v151-hero-person.big{grid-column:1/3;grid-row:1;min-height:220px}.v151-hero-person:nth-child(4){display:none}}

/* v1.6.2 Hong Kong context and operations visibility */
.v15-hero{background:linear-gradient(90deg,rgba(249,252,255,.98) 0%,rgba(249,252,255,.92) 42%,rgba(249,252,255,.08) 73%),url('/assets/images/hong-kong-harbour.png') center/cover no-repeat;min-height:650px}.hk-hero-window{min-height:470px;display:flex;align-items:flex-end}.hk-local-caption{margin:0 0 32px auto;background:#ffffffed;border:1px solid #ffffff;border-radius:18px;padding:18px 22px;max-width:340px;box-shadow:0 12px 32px #20305114}.hk-local-caption b,.hk-local-caption span{display:block}.hk-local-caption b{color:#182451;font-size:18px}.hk-local-caption span{color:#616b7c;font-size:13px;margin-top:6px}.v151-tutor-photo.demo-portrait{background-image:url('/assets/images/chinese-demo-tutors.png');background-size:200% 200%;background-repeat:no-repeat}.demo-portrait-0{background-position:0 0}.demo-portrait-1{background-position:100% 0}.demo-portrait-2{background-position:0 100%}.demo-portrait-3{background-position:100% 100%}.demo-label{display:block;font-size:10px;color:#68748f;margin-top:5px}.ops-note{color:#61657c;font-size:13px;line-height:1.7}.ops-status{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.ops-transcript{display:grid;gap:16px}.ops-turn{padding:16px;border:1px solid #e4e5ee;border-radius:14px}.ops-turn p{white-space:pre-wrap;overflow-wrap:anywhere}.ops-turn .ops-ai{background:#f1f5fc;padding:12px;border-radius:10px}.ops-turn small{color:#61657c}.ops-session{overflow-wrap:anywhere;font-size:12px}.ops-review-note{white-space:pre-wrap;background:#fff8e8;padding:10px;border-radius:8px}.ops-match-state{font-size:12px;color:#3e4cca}.ops-attention{border-left:4px solid #c08018}.ops-error{color:#b42318}.ops-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:1100px){.v15-hero{background:linear-gradient(180deg,#f9fcfff5 0%,#f9fcfff0 58%,#f9fcff20 85%),url('/assets/images/hong-kong-harbour.png') center/cover no-repeat}.hk-hero-window{min-height:220px}.hk-local-caption{margin:0 0 0 auto}.v15-hero-grid{gap:20px}}@media(max-width:560px){.hk-hero-window{min-height:180px}.hk-local-caption{max-width:270px;padding:14px}.hk-local-caption b{font-size:16px}.v15-hero-copy h1{font-size:38px}.ops-turn{padding:12px}}

/* v1.8 tutor trust/profile enhancements */
.tf-chat-tutor-card{position:relative;overflow:hidden}
.tf-chat-tutor-photo{width:64px;height:64px;border-radius:18px;object-fit:cover;float:left;margin:0 12px 8px 0;border:1px solid rgba(80,67,125,.14);box-shadow:0 4px 14px rgba(58,47,92,.12)}
.tf-chat-video-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:8px 10px;border-radius:10px;background:#f0edfa;color:#50437d;font-weight:700;text-decoration:none}
.tf-chat-video-link:hover{text-decoration:underline}
.tf-chat-dossier-photo{width:88px;height:88px;object-fit:cover;border-radius:22px;margin:10px 0;border:1px solid rgba(80,67,125,.16)}
.music-requirements,.music-tutor-box{background:linear-gradient(180deg,#fbf9ff,#f7f3ff);border:1px solid #e3daf5;border-radius:18px;padding:18px}
.music-requirements[hidden]{display:none!important}

/* v1.9 final parent request confirmation and exact AI schedule explanation */
.final-request-summary{border:1px solid #d7ddf0;background:#f7f9ff;border-radius:16px;padding:18px;margin:0 0 22px}
.final-request-summary h3{font-size:1.1rem;margin:0 0 14px}
.final-request-summary p{font-size:.85rem;color:#53617e;margin:12px 0 0}
.request-review-row{display:grid;grid-template-columns:minmax(115px,32%) minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid #e2e6f2;line-height:1.55}
.request-review-row span{overflow-wrap:anywhere}
.preference-note{margin-top:16px;padding:12px 14px;line-height:1.65;border-radius:12px}
[data-imported-exact-slots]{margin:8px 0;color:#394a77;line-height:1.5}
