/* Brainwavers Phase-5 fallback CSS. Regenerate with: npm run build */
*,::before,::after{box-sizing:border-box;border:0 solid}
html{-webkit-text-size-adjust:100%;line-height:1.5;tab-size:4}
body{margin:0;line-height:inherit;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji";background:#f8fafc;color:#0f172a;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;margin:0}
p{margin:0}
a{color:#312e81;text-decoration:inherit}
button,input,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}
button{background-color:transparent;background-image:none;cursor:pointer}
img,svg,video{display:block;max-width:100%;height:auto}
ul,ol{list-style:none;margin:0;padding:0}
code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}

/* layout */
.flex{display:flex}.inline-flex{display:inline-flex}.inline-block{display:inline-block}.inline{display:inline}
.grid{display:grid}.block{display:block}.hidden{display:none}
.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}
.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}
.self-start{align-self:flex-start}.self-center{align-self:center}.self-end{align-self:flex-end}
.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}
.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}
.space-y-1>:not([hidden])~:not([hidden]){margin-top:.25rem}
.space-y-2>:not([hidden])~:not([hidden]){margin-top:.5rem}
.space-y-3>:not([hidden])~:not([hidden]){margin-top:.75rem}
.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}
.space-y-5>:not([hidden])~:not([hidden]){margin-top:1.25rem}
.space-y-6>:not([hidden])~:not([hidden]){margin-top:1.5rem}
.divide-y>:not([hidden])~:not([hidden]){border-top-width:1px}
.divide-slate-200>:not([hidden])~:not([hidden]){border-color:#e2e8f0}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.col-span-2{grid-column:span 2/span 2}
.min-h-screen{min-height:100vh}.min-h-\[44px\]{min-height:44px}
.min-w-0{min-width:0}
.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}

/* widths / heights */
.h-4{height:1rem}.h-8{height:2rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-full{height:100%}
.w-4{width:1rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}
.w-32{width:8rem}.w-64{width:16rem}.w-full{width:100%}
.max-w-xs{max-width:20rem}.max-w-sm{max-width:24rem}.max-w-md{max-width:28rem}.max-w-2xl{max-width:42rem}
.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[80vw\]{max-width:80vw}

/* positioning */
.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}
.top-0{top:0}.top-20{top:5rem}.right-4{right:1rem}.inset-0{top:0;right:0;bottom:0;left:0}
.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}

/* spacing */
.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}
.px-2{padding-left:.5rem;padding-right:.5rem}
.px-2\.5{padding-left:.625rem;padding-right:.625rem}
.px-3{padding-left:.75rem;padding-right:.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-5{padding-left:1.25rem;padding-right:1.25rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.px-8{padding-left:2rem;padding-right:2rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}
.py-1{padding-top:.25rem;padding-bottom:.25rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}
.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-8{padding-top:2rem;padding-bottom:2rem}
.py-10{padding-top:2.5rem;padding-bottom:2.5rem}
.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}
.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}
.pl-5{padding-left:1.25rem}
.mx-auto{margin-left:auto;margin-right:auto}
.ml-auto{margin-left:auto}
.mt-0\.5{margin-top:.125rem}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}
.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-12{margin-top:3rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}
.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}

/* typography */
.text-xs{font-size:.75rem;line-height:1rem}
.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.font-normal{font-weight:400}
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}
.uppercase{text-transform:uppercase}
.italic{font-style:italic}
.underline{text-decoration-line:underline}
.tracking-wider{letter-spacing:.05em}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.whitespace-nowrap{white-space:nowrap}
.whitespace-pre-line{white-space:pre-line}
.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}
.leading-tight{line-height:1.25}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}
.list-disc{list-style-type:disc}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* colors */
.bg-white{background-color:#fff}
.bg-slate-50{background-color:#f8fafc}
.bg-slate-100{background-color:#f1f5f9}
.bg-slate-200{background-color:#e2e8f0}
.bg-indigo-50{background-color:#eef2ff}
.bg-indigo-100{background-color:#e0e7ff}
.bg-indigo-600{background-color:#4f46e5}
.bg-indigo-800{background-color:#3730a3}
.bg-indigo-900{background-color:#312e81}
.bg-red-50{background-color:#fef2f2}
.bg-red-100{background-color:#fee2e2}
.bg-red-600{background-color:#dc2626}
.bg-green-50{background-color:#f0fdf4}
.bg-green-100{background-color:#dcfce7}
.bg-green-600{background-color:#16a34a}
.bg-amber-50{background-color:#fffbeb}
.bg-amber-100{background-color:#fef3c7}
.bg-black\/40{background-color:rgba(0,0,0,.4)}
.text-white{color:#fff}
.text-slate-300{color:#cbd5e1}
.text-slate-400{color:#94a3b8}
.text-slate-500{color:#64748b}
.text-slate-600{color:#475569}
.text-slate-700{color:#334155}
.text-slate-800{color:#1e293b}
.text-slate-900{color:#0f172a}
.text-indigo-100{color:#e0e7ff}
.text-indigo-600{color:#4f46e5}
.text-indigo-900{color:#312e81}
.text-indigo-900\/70{color:rgba(49,46,129,.7)}
.text-red-600{color:#dc2626}
.text-red-700{color:#b91c1c}
.text-red-800{color:#991b1b}
.text-green-600{color:#16a34a}
.text-green-700{color:#15803d}
.text-green-800{color:#166534}
.text-amber-800{color:#92400e}
.text-amber-900{color:#78350f}

/* borders */
.border{border-width:1px}
.border-b{border-bottom-width:1px}
.border-t{border-top-width:1px}
.border-r{border-right-width:1px}
.border-slate-100{border-color:#f1f5f9}
.border-slate-200{border-color:#e2e8f0}
.border-slate-300{border-color:#cbd5e1}
.border-red-200{border-color:#fecaca}
.border-red-300{border-color:#fca5a5}
.border-red-500{border-color:#ef4444}
.border-green-200{border-color:#bbf7d0}
.border-amber-200{border-color:#fde68a}
.border-indigo-200{border-color:#c7d2fe}

/* rounded + shadows */
.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}
.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)}

/* object */
.object-contain{object-fit:contain}.object-cover{object-fit:cover}

/* form bits */
.form-input[type="file"]::file-selector-button{margin-right:.75rem;padding:.375rem .75rem;border:0;border-radius:.25rem;background:#312e81;color:#fff;cursor:pointer}
.form-input[type="file"]::file-selector-button:hover{background:#3730a3}
input[type="checkbox"].rounded{border-radius:.25rem}

/* focus + hover */
.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}
.focus\:ring-2:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #fff,0 0 0 4px #6366f1}
.focus\:ring-indigo-500:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #6366f1}
.focus\:border-indigo-500:focus{border-color:#6366f1}
.hover\:bg-slate-50:hover{background-color:#f8fafc}
.hover\:bg-slate-100:hover{background-color:#f1f5f9}
.hover\:bg-indigo-800:hover{background-color:#3730a3}
.hover\:bg-indigo-700:hover{background-color:#4338ca}
.hover\:bg-red-50:hover{background-color:#fef2f2}
.hover\:bg-red-700:hover{background-color:#b91c1c}
.hover\:text-indigo-900:hover{color:#312e81}
.hover\:text-red-700:hover{color:#b91c1c}
.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}
.duration-150{transition-duration:150ms}
.cursor-pointer{cursor:pointer}.cursor-not-allowed{cursor:not-allowed}
.opacity-50{opacity:.5}

/* ---------- component classes ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:.25rem;padding:.5rem 1rem;font-weight:500;transition:background-color .15s,border-color .15s,color .15s}
.btn-primary{background:#312e81;color:#fff}
.btn-primary:hover{background:#3730a3}
.btn-secondary{border:1px solid #cbd5e1;color:#334155;background:#fff}
.btn-secondary:hover{background:#f1f5f9}
.btn-danger{background:#dc2626;color:#fff}
.btn-danger:hover{background:#b91c1c}
.btn-sm{padding:.25rem .625rem;font-size:.75rem}

.btn-icon{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:.25rem;border:1px solid #cbd5e1;background:#fff;color:#475569;font-size:.75rem;line-height:1;transition:background-color .15s,border-color .15s,color .15s}
.btn-icon:hover{background:#f1f5f9}
.btn-icon-danger{border-color:#fecaca;color:#b91c1c}
.btn-icon-danger:hover{background:#fef2f2}

.subject-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.subject-row .subject-name{flex:1 1 0%;min-width:0}

.field-block{margin-bottom:1rem}
.field-card{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;padding:1rem;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.field-card-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-bottom:.5rem;border-bottom:1px solid #f1f5f9}

.card{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.card-header{padding:1rem 1.25rem;border-bottom:1px solid #e2e8f0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}
.card-body{padding:1.25rem}

.form-label{display:block;font-size:.875rem;font-weight:500;color:#334155;margin-bottom:.25rem}
.form-input,.form-select,.form-textarea{width:100%;border-radius:.25rem;border:1px solid #cbd5e1;padding:.5rem .75rem;font-size:.875rem;background:#fff}
.form-input:focus,.form-select:focus,.form-textarea:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px #fff,0 0 0 4px #6366f1;border-color:#6366f1}
.form-input[type="file"]{padding:.375rem .5rem}
.form-help{font-size:.75rem;color:#64748b;margin-top:.25rem}
.form-error{font-size:.75rem;color:#dc2626;margin-top:.25rem}

.badge{display:inline-flex;align-items:center;border-radius:9999px;padding:.125rem .5rem;font-size:.75rem;font-weight:500}
.badge-success{background:#f0fdf4;color:#166534}
.badge-warning{background:#fef3c7;color:#78350f}
.badge-danger{background:#fef2f2;color:#991b1b}
.badge-info{background:#eef2ff;color:#312e81}
.badge-neutral{background:#f1f5f9;color:#334155}

.alert{padding:.75rem 1rem;border-radius:.375rem;border-width:1px;border-style:solid;font-size:.875rem}
.alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.alert-success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.alert-warning{background:#fffbeb;border-color:#fde68a;color:#78350f}
.alert-info{background:#eef2ff;border-color:#c7d2fe;color:#312e81}

.data-table{width:100%;font-size:.875rem}
.data-table thead th{text-align:left;padding:.75rem 1rem;background:#f8fafc;color:#64748b;text-transform:uppercase;font-size:.75rem;font-weight:500}
.data-table tbody td{padding:.75rem 1rem;vertical-align:top}
.data-table tbody tr{border-top:1px solid #e2e8f0}
.data-table tbody tr:hover{background:#f8fafc}

/* responsive */
@media (min-width:640px){
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sm\:col-span-2{grid-column:span 2/span 2}
  .sm\:flex{display:flex}
  .sm\:block{display:block}
  .sm\:hidden{display:none}
  .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}
  .sm\:p-6{padding:1.5rem}.sm\:p-8{padding:2rem}
  .sm\:py-8{padding-top:2rem;padding-bottom:2rem}
  .sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}
}
@media (min-width:768px){
  .md\:flex{display:flex}.md\:flex-col{flex-direction:column}
  .md\:w-64{width:16rem}.md\:shrink-0{flex-shrink:0}
  .md\:hidden{display:none}
  .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .md\:col-span-2{grid-column:span 2/span 2}
}
@media (min-width:1024px){
  .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .lg\:px-8{padding-left:2rem;padding-right:2rem}
  .lg\:p-8{padding:2rem}
}