:root {
  --bg: #fcfaff; --surface: #fff; --lavender: #e2c8fa; --primary: #c59aef;
  --secondary: #a9a0f0; --pink: #f295dd; --ink: #292134; --muted: #70667d;
  --border: #e7e1ec; --focus: #71459c;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink); background: var(--bg); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 26px; letter-spacing: -.8px; margin-bottom: 4px; }
h2 { font-size: 18px; letter-spacing: -.4px; }
p { color: var(--muted); line-height: 1.6; }
a { color: #64378a; text-underline-offset: 3px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 6px; background: var(--primary); color: var(--ink); padding: 9px 14px; cursor: pointer; font-size: 13px; font-weight: 650; text-decoration: none; line-height: 1.3; }
button:hover, .button:hover { background: var(--secondary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, select, textarea { display: block; width: 100%; min-height: 40px; margin-top: 6px; padding: 9px 10px; border: 1px solid #bdb3c7; border-radius: 6px; background: white; color: var(--ink); }
textarea { resize: vertical; min-height: 70px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
fieldset { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
legend { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.brand { display: block; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 150px; max-width: 100%; height: auto; }
.login .brand img { width: 180px; margin-inline: auto; }
.brand span { display: block; font-size: 12px; letter-spacing: .2px; font-weight: 500; color: var(--muted); margin-top: 7px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; min-width: 0; }
.login { max-width: 460px; margin: 9vh auto; padding: 20px; }
.login > .brand { margin-bottom: 24px; text-align: center; }
.login button { width: 100%; }
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100dvh; }
aside { background: #f8f5fc; border-right: 1px solid var(--border); padding: 22px 14px; display: flex; flex-direction: column; gap: 24px; }
aside > .brand { padding-inline: 8px; }
aside nav { display: grid; gap: 4px; }
aside nav a { display: block; text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; }
aside nav a:hover { background: #ebe1f3; }
aside nav a[aria-current] { background: var(--lavender); color: var(--ink); }
aside form { margin-top: auto; }
.sidebar-note { border-top: 1px solid var(--border); padding: 16px 8px 0; font-size: 12px; }
.secondary { background: transparent; border-color: var(--border); }
.shell main { padding: 24px; max-width: 1560px; width: 100%; min-width: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: #72548b; margin-bottom: 8px; }
.empty { text-align: center; padding: 32px 20px; }
.empty p { max-width: 460px; margin: 0 auto 24px; }
.tag { display: inline-block; background: #f4eef9; border-radius: 20px; padding: 7px 12px; font-size: 12px; }
.error, .notice { padding: 16px; border-radius: 9px; margin-bottom: 24px; line-height: 1.5; }
.error { color: #9c243a; background: #fff0f2; border: 1px solid #f4ced5; }
.notice { color: #225538; background: #eaf7ef; border: 1px solid #c5e8d1; }
.welcome { background: #f1e8fb; border: 1px solid #dfcfef; border-radius: 10px; padding: 24px; margin: 20px 0; }
.welcome h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.7px; margin: 0 0 12px; }
.welcome p { max-width: 600px; font-size: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.quick { text-decoration: none; color: var(--ink); }
.quick:hover { border-color: var(--primary); background: #fdfaff; }
.quick p { font-size: 14px; }
.quick > span:last-child { font-size: 13px; color: #64378a; font-weight: 650; }
.lede { margin-bottom: 18px; max-width: 760px; font-size: 14px; }
.filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; padding: 14px; margin-bottom: 18px; }
.filters label { margin-bottom: 0; flex: 1; min-width: 130px; font-size: 12px; }
.filters .search-label { flex: 2; min-width: 210px; }
.stage-filters { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 4px 0; }
.stage-filters legend { font-size: 12px; margin-bottom: 10px; }
.filters .stage-filters label { flex: initial; min-width: 0; }
.stage-filters .hint { flex-basis: 100%; margin: 0; }
.filters input, .filters select { font-size: 13px; }
.filters > a { font-size: 13px; padding: 12px 0; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 13px; }
.result-heading > span:last-child { color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: #f8f4fb; font-size: 12px; font-weight: 600; color: var(--muted); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaff; }
.record-name { font-weight: 650; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 5px; }
.record-name:hover { text-decoration: underline; }
.secondary-line { display: block; color: var(--muted); font-size: 12px; }
.availability { max-width: 240px; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; }
.status { display: inline-block; border-radius: 6px; padding: 6px 9px; font-size: 11px; font-weight: 650; white-space: nowrap; background: #eee9f5; color: #57466c; }
.status.contacted { background: #e9e9fc; color: #484784; }
.status.accepted { background: #fff1d9; color: #805a1a; }
.status.enrolled { background: #e4f3e9; color: #285e3d; }
.status.declined { background: #f2ebed; color: #77505d; }
.subtle-link { font-size: 12px; white-space: nowrap; }
a[href^="https://wa.me/"] { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; font-size: 0; border-radius: 6px; }
a[href^="https://wa.me/"]::before { content: ''; display: block; width: 24px; height: 24px; flex: 0 0 24px; background: url('/static/whatsapp.svg') center / contain no-repeat; }
a[href^="https://wa.me/"]:hover { background-color: #e4f3e9; }
.pagination { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.board { display: grid; grid-template-columns: repeat(5,minmax(220px,1fr)); gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.board-column { background: #f3eef7; padding: 14px; border-radius: 12px; min-height: 260px; }
.board-column h2 { font-size: 12px; letter-spacing: 0; display: flex; align-items: center; gap: 6px; min-height: 30px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b48bd5; flex: 0 0 auto; }
.dot.contacted { background: #8586d0; }.dot.accepted { background: #d6a143; }.dot.enrolled { background: #63a37b; }.dot.declined { background: #a6808c; }
.pipeline-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.pipeline-card p { font-size: 12px; margin: 4px 0 12px; }
.pipeline-card[draggable] { cursor: grab; }
.pipeline-card[draggable]::before { content: '⠿ Arrastar'; display: block; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.pipeline-card form { margin-top: 12px; }
.board[aria-busy="true"] { opacity: .65; pointer-events: none; }
.pipeline-card .tag { font-size: 10px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.intake-form { max-width: 860px; }
.hint { display: block; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.form-footer { border-top: 1px solid var(--border); padding-top: 24px; }
.form-footer p { font-size: 13px; max-width: 540px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-actions { margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,1fr); gap: 16px; align-items: start; }
.profile-form { margin-top: 16px; }
.enrollment-form { border-top: 1px solid var(--border); padding: 16px 0; }
.enrollment-form:first-of-type { border-top: 0; }
details { border-top: 1px solid var(--border); padding-top: 20px; }
summary { cursor: pointer; font-size: 13px; font-weight: 650; margin-bottom: 20px; }
.history ol { padding: 0; list-style: none; }
.history li { position: relative; border-left: 2px solid var(--lavender); padding: 0 0 28px 20px; margin-left: 4px; }
.history li::before { content: ''; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.history strong { display: block; font-size: 13px; margin-bottom: 8px; }.history p { margin: 8px 0; font-size: 12px; }.history span { font-size: 11px; color: var(--muted); }.event-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.class-list { display: grid; gap: 18px; }
.class-card h2 { margin-bottom: 8px; }.class-card p { font-size: 13px; }.class-card .actions { font-size: 12px; margin-top: 24px; }
dl { font-size: 13px; }dt { color: var(--muted); margin-top: 14px; font-size: 11px; }dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.checkbox { display: flex; align-items: center; gap: 10px; }.checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--focus); }
.public-page { max-width: 800px; padding: 28px 24px 40px; margin: auto; }.public-page > .brand { margin-bottom: 28px; }.public-intro h1 { font-size: clamp(28px,4vw,36px); margin-top: 18px; letter-spacing: -1px; }.public-intro p { max-width: 600px; margin-bottom: 24px; }.received { text-align: center; padding: 32px 24px; }
.muted { color: var(--muted); }.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }.skip:focus { display: block; padding: 12px; }
@media(max-width:1100px) { .detail-grid { grid-template-columns: 1fr; }.quick-grid { grid-template-columns: 1fr; } }
@media(max-width:720px) {
  .shell { grid-template-columns: 1fr; }
  aside { padding: 14px 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; align-items: center; }
  aside > .brand { padding: 0; }.brand img { width: 120px; }aside .brand span { font-size: 11px; }
  aside nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 4px; flex-wrap: wrap; }
  aside nav a { padding: 12px 10px; font-size: 12px; }
  .sidebar-note { display: none; }aside form { margin: 0; grid-column: 2; grid-row: 1; }
  button, .button, input, select { min-height: 44px; }input, select, textarea { font-size: 16px; }
  .shell main { padding: 20px 16px; }.page-header { flex-wrap: wrap; }.form-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }.table-wrap { padding: 0; }.filters { padding: 12px; }.filters label { min-width: 140px; }
  .filters .search-label { min-width: 100%; }.filters input, .filters select { font-size: 16px; }
  .welcome { padding: 20px; }.public-page { padding: 20px 16px 32px; }.result-heading { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
