@font-face { font-family: "Mukta"; src: url("fonts/Mukta-Regular.4310ec2c2558.ttf"); font-weight: 400; }
@font-face { font-family: "Mukta"; src: url("fonts/Mukta-Bold.b294e758d70a.ttf"); font-weight: 700; }
:root {
  /* Sky blue + teal theme (Manoj, 12 Nov 2026). --blue is kept as the name of the main colour. */
  --blue: #0284c7; --blue-soft: #e0f2fe; --teal: #0d9488; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --bg: #f4f7fb; --card: #fff; --ok: #0f766e; --warn: #b45309; --bad: #dc2626; --accent: #0284c7;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.06); --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Mukta", system-ui, sans-serif; font-size: 16px; line-height: 1.45;
  color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); color: var(--ink); position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #14b8a6 55%, var(--accent)); }
.top a { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.top .here { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 4px 12px; border-radius: 99px; }
.top .here .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.burger { display: none; min-height: 40px; width: 42px; padding: 0; font-size: 22px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; }
/* Module menu: fixed on desktop, drawer on mobile (like CEOMS) */
.side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 40; overflow-y: auto; padding: 12px 10px; }
.side .brand { padding: 4px 8px 10px; color: var(--ink); text-decoration: none; }
.side .who { margin: 0 8px 8px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  font-weight: 700; font-size: 14px; color: #0c4a6e; }
.side .who small { display: block; font-weight: 400; color: #0f766e; }
.side nav { flex: 1; }
.side .grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8;
  margin: 14px 10px 4px; }
.side .mi { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: #334155;
  text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.side .mi .ic { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: 16px; flex: none; }
.side .mi:hover { background: #f8fafc; }
.side .mi.on { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }
.side .mi.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--c); }
.side .mi.on .ic { background: var(--c); color: #fff; }
.side .beta { font-weight: 600; font-size: 11px; color: #db2777; }
.side .out { padding: 10px; border-top: 1px solid var(--line); }
.side .out button { width: 100%; }
.scrim { display: none; }
body.has-menu { padding-left: var(--side); }
body.has-menu .top > .brand { display: none; }
@media (max-width: 900px) {
  body.has-menu { padding-left: 0; }
  body.has-menu .top > .brand { display: flex; }
  .burger { display: inline-flex; }
  .side { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 10px 40px rgba(15,23,42,.25); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 35; }
  body.menu-open { overflow: hidden; }
  .top .here { font-size: 13px; padding: 3px 10px; }
}
main { max-width: 960px; margin: 0 auto; padding: 18px 16px 28px; }
h1 { font-size: 23px; margin: 4px 0 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
h1::before { content: ""; width: 6px; height: 24px; border-radius: 4px; background: var(--accent); flex: none; }
h2 { font-size: 18px; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow); }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 2px 8px rgba(2,132,199,.25);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .15s, transform .05s; }
.btn:hover, button:hover { filter: brightness(1.05); } .btn:active, button:active { transform: translateY(1px); }
.btn.light, button.light { background: #fff; color: var(--blue); border-color: #bae6fd; box-shadow: none; }
.btn.small, button.small { min-height: 34px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
button.danger, .btn.danger { background: #fff; color: var(--bad); border-color: #fecaca; box-shadow: none; }
.btn.big { width: 100%; min-height: 50px; font-size: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.25); }
input.marks { width: 64px; padding: 6px; text-align: center; }
input.num { width: 70px; }
.helptext, .help { display: block; color: var(--muted); font-size: 13px; }
.errorlist { color: var(--bad); margin: 4px 0; padding-left: 18px; font-size: 14px; }
.msgs { margin-bottom: 12px; }
.msg { padding: 10px 12px; border-radius: 9px; margin-bottom: 6px; background: var(--blue-soft); }
.msg.success { background: #e7f6ef; color: var(--ok); }
.msg.warning { background: #fff4e5; color: var(--warn); }
.msg.error { background: #fdecec; color: var(--bad); }
.checks { display: grid; grid-template-columns: 1fr; gap: 4px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; padding: 6px 4px;
  border-bottom: 1px solid var(--line); }
.checks input { width: 20px; height: 20px; }
.paper-list .card { display: block; text-decoration: none; color: inherit; }
.sec-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec-head input.title { flex: 1; min-width: 200px; font-weight: 700; }
.qitem { border-top: 1px solid var(--line); padding: 10px 0; }
.qitem .qtext { margin: 2px 0 6px; overflow-wrap: anywhere; }
.qitem .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: #eef0f4; color: #374151; }
.tag.E { background: #e7f6ef; } .tag.H { background: #fdecec; } .tag.own { background: #fff4e5; }
img.math { vertical-align: middle; }
.total { position: sticky; bottom: 0; background: var(--card); border-top: 2px solid var(--accent);
  padding: 10px 16px; margin: 0 -16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.login-wrap { max-width: 380px; margin: 30px auto; }
.tagline { text-align: center; color: var(--muted); margin-top: -6px; }
@media (max-width: 520px) { .qitem .opts { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--blue-soft); color: #0369a1; border: 1px solid #bae6fd; box-shadow: none; border-radius: 99px;
  min-height: 40px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
.quick details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.quick details summary { color: var(--blue); font-size: 15px; }
.dl { border-color: #99f6e4; background: linear-gradient(135deg, #f0fdfa, #f0f9ff); }
.tag.board { background: #fff1d6; color: #8a4b00; font-weight: 600; }
.box { display: inline-block; min-width: 2.2em; height: 1.2em; border: 1.2px solid currentColor; vertical-align: middle; margin: 0 2px; }
table.qt { border-collapse: collapse; margin: 6px 0; font-size: 15px; max-width: 100%; display: block; overflow-x: auto; }
table.qt th, table.qt td { border: 1px solid #9ca3af; padding: 3px 8px; text-align: center; }
.tag.used { background: #fde8e8; color: #9b1c1c; font-weight: 600; }
.tag.sets { background: #ccfbf1; color: #0f766e; font-weight: 600; }
/* Add-question page: 1-2-3 steps, optional parts folded, formula keypad */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.stepno { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .8em; margin-right: 4px; }
select:disabled { opacity: .5; }
details.optional { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px 12px; margin-top: 12px; }
details.optional summary { cursor: pointer; font-weight: 600; }
.preview-box { border: 1px solid #e5e7eb; background: #fafafa; border-radius: 10px; padding: 8px 12px; margin-top: 12px; }
/* Full-screen formula window (keypad from MathLive sits at the bottom) */
#fx { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
#fx[hidden] { display: none; }
body.fxopen { overflow: hidden; }
.fxtop { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(135deg,#0ea5e9,#0d9488); color: #fff; }
.fxtop b { flex: 1; font-size: 18px; }
.fxtop .fxback { background: transparent; border: none; color: #fff; font-size: 26px; min-width: 44px; padding: 0; }
.fxtop #fxok { background: #fff; color: #0369a1; border: none; font-weight: 700; }
.fxbody { padding: 12px 16px; overflow-y: auto; }
.fxctx { color: #64748b; font-size: 14px; min-height: 1.2em; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
#fxfield { width: 100%; font-size: 2em; min-height: 2.2em; border: 2px solid #0ea5e9; border-radius: 12px; padding: 8px; box-sizing: border-box; }
#fxfield::part(menu-toggle), #fxfield::part(virtual-keyboard-toggle) { display: none; }
.fxquick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fxquick button { min-width: 48px; min-height: 40px; padding: 4px 10px; background: #fff; color: #0369a1; box-shadow: none; border-color: #bae6fd; font-size: 18px; font-weight: 600; }
.fx { padding: 2px 10px; }
/* Class office */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; padding: 14px 8px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card); text-decoration: none; color: inherit; box-shadow: var(--shadow);
  border-top: 4px solid var(--c, var(--accent)); }
.tile b { font-size: 26px; color: var(--c, var(--accent)); } .tile span { font-size: 14px; color: var(--muted); }
a.linkcard { display: block; text-decoration: none; color: inherit; }
a.linkcard.spread { display: flex; }
.stu { display: flex !important; gap: 12px; align-items: center; }
.stu img, .nophoto { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.nophoto { display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft);
  color: var(--blue); font-weight: 700; font-size: 20px; }
.stuhead { display: flex; gap: 14px; align-items: center; }
.stuhead img, .nophoto.big { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; font-size: 34px; }
.stuthumb { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; margin-top: 8px; }
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts th { text-align: left; color: var(--muted); font-weight: 600; width: 38%; padding: 6px 8px 6px 0; vertical-align: top; }
table.facts td { padding: 6px 0; overflow-wrap: anywhere; }
table.facts tr + tr { border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field ul, .field > div > div { list-style: none; padding: 0; margin: 0; }
.field ul label, .field div[id] label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; padding: 5px 0; }
.field input[type=checkbox], .field input[type=radio] { width: 20px; height: 20px; }
.field.tick label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
#id_gender { display: flex; gap: 16px; }
.filters input[type=search] { width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 10px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 9px; }
.filters select { flex: 1; min-width: 130px; }
/* attendance */
.daybar { display: flex; gap: 8px; align-items: center; justify-content: center; }
.daybar input[type=date] { font-size: 17px; padding: 8px; }
.attlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
button.att { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 54px;
  text-align: left; background: #fff; color: #111827; border: 1px solid var(--line); border-left: 6px solid #16a34a;
  border-radius: 10px; padding: 8px 12px; font-size: 16px; font-weight: 400; }
button.att .st { font-weight: 700; color: #16a34a; font-size: 15px; }
button.att.A { background: #fdecec; border-left-color: #dc2626; } button.att.A .st { color: #dc2626; }
button.att.L { background: #fff4e5; border-left-color: #d97706; } button.att.L .st { color: #b45309; }
a.wa { display: block; margin: -4px 0 4px 14px; font-size: 14px; font-weight: 600; color: #15803d; }
a.wa.done { color: var(--muted); font-weight: 400; }
.attbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; }
.regwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table.reg { border-collapse: collapse; font-size: 13px; }
table.reg th, table.reg td { border: 1px solid var(--line); padding: 3px 5px; text-align: center; min-width: 20px; }
table.reg .nm { position: sticky; left: 0; background: #fff; text-align: left; white-space: nowrap; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; }
table.reg td.cA { background: #fdecec; color: #b91c1c; font-weight: 700; } table.reg td.cL { background: #fff4e5; color: #b45309; }
.low { color: var(--bad) !important; }
.tile.small { padding: 8px 12px; flex: 1; min-width: 120px; } .tile.small b { font-size: 22px; }
/* fees */
.tile b.low { color: var(--bad); }
.duerow { display: grid; grid-template-columns: 1.4fr 1.3fr 76px; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.duerow input { width: 100%; box-sizing: border-box; padding: 8px; }
.duerow .del { grid-column: 1 / -1; font-weight: 400; margin: 0; display: flex; justify-content: flex-end; gap: 6px; align-items: center; font-size: 14px; color: var(--bad); }
.duerow .errorlist { grid-column: 1 / -1; }
table.dues td { padding-left: 8px; } table.dues th { width: 40%; }
.st-paid { color: var(--ok); } .st-overdue { color: var(--bad); font-weight: 700; } .st-part { color: var(--warn); }
a.payrow { display: flex; padding: 6px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 15px; }
.receipt .amt { font-size: 30px; font-weight: 700; margin: 4px 0 0; color: var(--blue); }
.receipt hr { border: none; border-top: 1px solid var(--line); }
#id_mode { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
/* tests and marks */
.markrow { display: grid; grid-template-columns: 1fr 70px 44px 46px; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.markrow:first-child { border-top: none; }
.markrow .nm { overflow: hidden; text-overflow: ellipsis; }
.markrow input.mk { width: 100%; box-sizing: border-box; font-size: 18px; text-align: center; padding: 8px 4px; }
.markrow input.mk.bad { border-color: var(--bad); background: #fdecec; }
.markrow .of { color: var(--muted); font-size: 14px; }
.markrow .abbtn { min-height: 38px; padding: 0 6px; }
.markrow.ab { background: #fff4e5; } .markrow.ab .abbtn { background: var(--warn); color: #fff; border-color: var(--warn); }
.markrow .err { grid-column: 1 / -1; color: var(--bad); font-size: 13px; text-align: right; }
.resrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.resrow .rk { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.resrow .nm { flex: 1; } .resrow .sc { text-align: right; white-space: nowrap; }
/* enquiries */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 10px 0; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 10px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
.tag.enq-NEW { background: var(--blue-soft); color: var(--blue); } .tag.enq-HOT { background: #fff1d6; color: #8a4b00; font-weight: 700; }
.tag.enq-JOINED { background: #e7f6ef; color: var(--ok); } .tag.enq-LOST { background: #eef0f4; color: #6b7280; }
button.chip { min-height: 32px; font-weight: 600; }
.tickline { display: flex; gap: 8px; align-items: center; font-weight: 400; } .tickline input { width: 20px; height: 20px; }

/* ⚑ Report a mistake window (10 Nov 2026) */
.repdlg { border: 0; border-radius: 14px; padding: 18px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.repdlg::backdrop { background: rgba(15,23,42,.5); }
.repdlg textarea { width: 100%; box-sizing: border-box; }
.repopt { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 6px 0; }
.repopt input { width: 20px; height: 20px; }
button.report { color: #9a3412; }
.terms { font-size: 13px; color: #64748b; text-align: center; margin-top: 14px; line-height: 1.5; }

/* camera + gallery buttons on photo fields (photo.js) */
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
.photo-pick button { min-height: 38px; }
.photo-info { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.photo-info img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
input.photo-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Language button (17 Nov 2026): English | मराठी at the top of every screen. On a phone only the OTHER language shows,
   so it is one tap; with a third language (Hindi) all are listed. */
.langsw { margin-left: auto; display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: #fff; font-size: 13px; font-weight: 600; line-height: 1; }
.top .here + .langsw { margin-left: 0; }
.langsw a { padding: 8px 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.langsw a.on { background: #0284c7; color: #fff; }
.login-lang { display: flex; justify-content: center; margin: 0 0 14px; }
.login-lang .langsw { margin: 0; font-size: 14px; }
.login-lang .langsw a { padding: 9px 16px; }
@media (max-width: 560px) {
  .top { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .top .langsw.two a.on { display: none; }
  .top .langsw.two a { color: #0369a1; padding: 8px 11px; }
  body.has-menu .top > .brand .bn { display: none; }
}

/* visitor mode (28 Nov 2026): top-right buttons, the sample-class bar and the sign-up pop-up */
.visit-btns{display:flex;gap:6px;margin-left:auto;margin-right:8px}
.visit-btns .btn{padding:6px 12px;font-size:14px;white-space:nowrap}
.visit-bar{background:#fef9c3;border:1px solid #fde047;border-radius:10px;padding:8px 12px;margin:0 0 12px;font-size:14px;line-height:1.45}
.nudge-bg{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:1000}
.nudge{max-width:420px;width:100%;margin:0}
.nudge h2{margin-top:0}
@media (max-width:480px){.visit-btns .btn.light{display:none}}
.visit-btns + .langsw{margin-left:0}

/* Install app bar (29 Nov 2026) */
.install-bar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:900;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #bae6fd;border-radius:12px;padding:10px 12px;box-shadow:0 6px 24px rgba(2,132,199,.18);max-width:560px;margin:0 auto;font-size:14px;line-height:1.35}
.install-bar span{flex:1;min-width:0}
.install-bar img{border-radius:8px;flex:none}
.install-bar .btn{flex:none;white-space:nowrap}
.install-bar[hidden]{display:none!important}   /* 30 Nov 2026: display:flex above overrode [hidden], so the bar never went */
