/* Madrasa Nure Hera — the look of a madrasa register (khata): cream ruled paper, navy ink, gold rules,
   an eight-point star (khatam) as the ornament. Headings in Tiro Bangla, text in Anek Bangla. */
:root {
  --navy: #14294a;
  --navy-2: #22406c;
  --navy-deep: #0c1a31;
  --paper: #fbf6e9;
  --paper-2: #f3ead2;
  --page: #ece2c6;
  --sheet: #fffdf7;
  --gold: #b98b2c;
  --gold-2: #8f6a1d;
  --gold-soft: #f1e3b8;
  --ink: #1f2430;
  --muted: #6f6656;
  --line: #ddcfa9;
  --rule: #e8dcbc;
  --ok: #2c6e47;
  --ok-bg: #e0efe4;
  --warn: #8d5b0f;
  --warn-bg: #f8e9c8;
  --bad: #9c2f2f;
  --bad-bg: #f5ddd6;
  --head: 'Tiro Bangla', 'Noto Serif Bengali', Georgia, serif;
  --text: 'Anek Bangla', 'Noto Sans Bengali', system-ui, sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23b98b2c'%3E%3Crect x='6' y='6' width='12' height='12'/%3E%3Crect x='6' y='6' width='12' height='12' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E");
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d8b45a' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l12 12M56 0L44 12M0 56l12-12M56 56L44 44M28 0v6M28 50v6M0 28h6M50 28h6'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--text);
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--navy-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-family: var(--head); font-weight: 400; text-wrap: balance; }
small { font-size: .84em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.file-hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- buttons & inputs ---------- */
.btn {
  font: inherit; font-weight: 600; border: 1.5px solid transparent; border-radius: 4px;
  padding: .5em 1.05em; cursor: pointer; display: inline-flex; align-items: center; gap: .45em;
  transition: background .15s, border-color .15s, color .15s; line-height: 1.35;
}
.btn .ic { width: 18px; height: 18px; }
.btn.gold { background: var(--gold); color: #fff; border-color: var(--gold-2); }
.btn.gold:hover { background: var(--gold-2); }
.btn.navy { background: var(--navy); color: var(--paper); }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: var(--sheet); border-color: var(--line); color: var(--navy); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.ghost.light { background: transparent; border-color: rgba(216, 180, 90, .5); color: var(--paper); }
.btn.ghost.light:hover { background: rgba(216, 180, 90, .14); }
.btn.danger { color: var(--bad); border-color: #dfb3aa; }
.btn.sm { padding: .25em .7em; font-size: .88em; }
.btn.block { width: 100%; justify-content: center; padding: .7em; font-size: 1.05em; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; font: inherit; color: var(--navy-2); cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.link.danger { color: var(--bad); text-decoration-color: currentColor; }

input, select, textarea {
  font: inherit; width: 100%; padding: .55em .7em; border: 1px solid var(--line); border-bottom: 2px solid #cdbb8c; border-radius: 3px;
  background: var(--sheet); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); border-bottom-color: var(--navy); background: #fff; }
.field { display: block; margin-bottom: .85em; }
.field > span { display: block; font-weight: 600; font-size: .9em; margin-bottom: .25em; color: var(--navy); }
.err { color: var(--bad); background: var(--bad-bg); padding: .5em .8em; border-left: 3px solid var(--bad); margin: .5em 0; }

/* ---------- login ---------- */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  background: var(--girih), var(--navy-deep);
}
.login-card {
  width: 100%; max-width: 430px; background: var(--paper); padding: 30px 28px 22px; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  outline: 1px solid var(--gold); outline-offset: -9px;
}
.login-card::before { content: ''; position: absolute; inset: 13px; border: 1px solid var(--line); pointer-events: none; }
.login-card > * { position: relative; }
.login-logo { width: 112px; height: 112px; display: block; margin: 6px auto 8px; }
.login-card h1 { text-align: center; color: var(--navy); font-size: 1.9em; }
.login-card .addr { text-align: center; color: var(--muted); margin: .15em 0 0; font-size: .92em; }
.bismillah { font-family: 'Amiri', serif; text-align: center; color: var(--gold-2); font-size: 1.4em; direction: rtl; }
.ornament { height: 14px; margin: 14px auto; width: 180px; position: relative;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent) center/100% 1px no-repeat; }
.ornament::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); background: var(--star) center/contain no-repeat; }
.login-card form { margin-top: 14px; }
.demo { margin-top: 18px; padding: 12px; border: 1px dashed var(--gold); background: var(--paper-2); }
.demo b { display: block; color: var(--navy); font-size: .92em; }
.demo small { color: var(--muted); }
.demo-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.demo-btns button { flex: 1; font: inherit; font-size: .9em; padding: .4em; border-radius: 3px; border: 1px solid var(--gold); background: var(--sheet); color: var(--navy); cursor: pointer; }
.demo-btns button:hover { background: var(--gold-soft); }
.lang-link { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--navy-2); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); }
.help { display: block; margin-top: 8px; line-height: 1.45; }

/* ---------- layout ---------- */
.proto { background: var(--gold-soft); color: var(--warn); font-size: .8em; text-align: center; padding: 3px 16px; }
.top {
  background: var(--girih), var(--navy); color: var(--paper); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 22px; position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--gold); box-shadow: 0 3px 0 var(--navy), 0 4px 0 var(--gold);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); min-width: 0; }
.brand .logo { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--paper); padding: 2px; }
.brand b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.3em; color: #fff; line-height: 1.2; }
.brand small { display: block; color: var(--gold-soft); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 10px; }
.who { text-align: right; line-height: 1.25; }
.who b { display: block; font-size: .92em; }
.who small { color: #d8b45a; }
.layout { display: flex; min-height: calc(100vh - 92px); }
.side {
  width: 218px; flex: none; background: var(--paper-2); padding: 18px 0 18px 10px;
  display: flex; flex-direction: column; gap: 1px;
  border-right: 4px double var(--gold);
}
.side a { display: flex; align-items: center; gap: 11px; padding: .55em .9em; color: var(--ink); font-weight: 500; border-left: 3px solid transparent; }
.side a:hover { background: var(--paper); }
.side a.on { background: var(--sheet); color: var(--navy); font-weight: 700; border-left-color: var(--navy); margin-right: -4px; border-right: 4px solid var(--sheet); }
.ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .f { fill: currentColor; stroke: none; }
/* icon tile: rounded square, navy gradient, gold glyph (active: gold tile, navy glyph) */
.tile {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 65%, var(--navy-deep) 100%);
  color: #e0c06c; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 8px -2px rgba(12,26,49,.45);
  transition: transform .15s, box-shadow .15s;
}
.tile .ic { width: 18px; height: 18px; stroke-width: 1.9; }
.side a:hover .tile { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 5px 10px -2px rgba(12,26,49,.5); }
.side a.on .tile {
  background: linear-gradient(160deg, #e0c06c 0%, var(--gold) 60%, var(--gold-2) 100%);
  color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 8px -2px rgba(143,106,29,.55);
}
main { flex: 1; padding: 24px 28px 48px; max-width: 1120px; min-width: 0; }
.loading { height: 3px; width: 120px; background: var(--gold); animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }

.page-title { color: var(--navy); font-size: 1.75em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.page-title::before { content: ''; width: 18px; height: 18px; flex: none; background: var(--star) center/contain no-repeat; }
.page-title.has-tile::before { display: none; }
.page-title .tile { width: 42px; height: 42px; border-radius: 13px; }
.page-title .tile .ic { width: 22px; height: 22px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head .page-title, .page-head .section { margin-bottom: 8px; }
.section { color: var(--navy); font-size: 1.2em; margin: 24px 0 10px; display: flex; align-items: baseline; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.more { font-family: var(--text); font-size: .72em; font-weight: 500; margin-left: auto; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 500; }
.holiday { background: var(--navy); color: var(--paper); padding: .7em 1em; margin-bottom: 14px; border-left: 5px solid var(--gold); font-weight: 600; }
.note-line { color: var(--muted); font-size: .9em; border-left: 3px solid var(--gold); padding-left: .7em; margin: 0 0 12px; }
.small-note { font-size: .85em; max-width: 70ch; }

/* ---------- cards (ruled register sheets) ---------- */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 2px 0 var(--rule); }
.card.flush { padding: 0; overflow: hidden; }
.card.scroll, .scroll { overflow-x: auto; }
.card h3 { color: var(--navy); font-size: 1.15em; margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.two > * { min-width: 0; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.kv:last-child { border-bottom: 0; }
.kid { border-top: 3px solid var(--navy); }
.kid-head, .student-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.student-head { margin-bottom: 14px; }
.student-head h2 { color: var(--navy); font-size: 1.6em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #e0c06c; display: grid; place-items: center; font-family: var(--head); font-size: 1.25em; flex: none; box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3px var(--gold); }
.avatar.lg { width: 58px; height: 58px; font-size: 1.6em; }
.avatar.sm { width: 34px; height: 34px; font-size: 1em; }
img.avatar { object-fit: cover; }
.who-cell { display: flex; align-items: center; gap: 10px; }

/* ledger totals */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--sheet); border: 1px solid var(--line); padding: 12px 16px 10px; display: block; color: var(--ink); position: relative; border-top: 3px solid var(--navy); }
.stat small { color: var(--muted); display: block; font-weight: 500; }
.stat > .tile { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 12px; }
.stat > .tile .ic { width: 20px; height: 20px; }
.stat:has(> .tile) small { padding-right: 46px; }
.stat.warn > .tile { background: linear-gradient(160deg, #b9473f 0%, var(--bad) 65%, #7a2424 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 8px -2px rgba(156,47,47,.45); }
.stat.good > .tile { background: linear-gradient(160deg, #3f8a5d 0%, var(--ok) 65%, #1f5134 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 8px -2px rgba(44,110,71,.45); }
.stat b { font-family: var(--head); font-weight: 400; font-size: 2em; display: block; color: var(--navy); line-height: 1.25; }
.stat em { font-style: normal; font-size: .82em; color: var(--muted); }
.stat.warn { border-top-color: var(--bad); }
.stat.warn b { color: var(--bad); }
.stat.good { border-top-color: var(--ok); }
a.stat:hover { background: var(--paper); }

.badge { display: inline-block; padding: .05em .6em; border-radius: 2px; font-size: .8em; font-weight: 600; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.badge.paid { background: var(--ok-bg); color: var(--ok); border-color: #b9d8c2; }
.badge.partial { background: var(--warn-bg); color: var(--warn); border-color: #e7cf9a; }
.badge.due { background: var(--bad-bg); color: var(--bad); border-color: #e6bdb3; }
.badge.staff { background: var(--navy); color: #e0c06c; }
.badge.role { background: var(--gold-soft); color: var(--navy); }
.badge.shift.full { background: transparent; color: var(--navy-2); border-color: var(--line); }
.badge.shift.part { background: #e5e9f3; color: var(--navy-2); border-color: #c6cfe2; }

/* ---------- tables: register rulings ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--navy); font-weight: 700; font-size: .86em; padding: .6em .8em; border-bottom: 3px double var(--navy); background: var(--paper); white-space: nowrap; }
.tbl td { padding: .55em .8em; border-top: 1px solid var(--rule); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--paper); }
.tbl tr.total td { font-weight: 700; background: var(--gold-soft); }
.sub, .tbl .sub { display: block; color: var(--muted); font-weight: 400; }
.card:not(.flush) .tbl th:first-child, .card:not(.flush) .tbl td:first-child { padding-left: 0; }
.marks input { width: 72px; padding: .35em .4em; text-align: center; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters > * { width: auto; min-width: 160px; flex: 1; max-width: 300px; }
.filters > .btn { flex: none; min-width: 0; }
.week-nav input[type=date] { max-width: 200px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--gold); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: .5em 1em; color: var(--muted); font-weight: 600; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; white-space: nowrap; border-radius: 3px 3px 0 0; }
.tabs a.on { color: var(--navy); background: var(--sheet); border-color: var(--gold); }

.info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 500; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; margin: 0 0 14px; }
.card .actions.left { margin: 16px 0 0; }
.info-card { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.info-card .info { flex: 1; min-width: 240px; }
.info-card .actions { flex-basis: 100%; }
.photo-big { width: 150px; height: 180px; object-fit: cover; border: 1px solid var(--gold); padding: 4px; background: #fff; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }

.note-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-head .link { margin-left: auto; }
.notice p { margin: .4em 0 0; }
.notice { border-left: 3px solid var(--gold); }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12, 26, 49, .6); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--paper); padding: 20px 22px; width: 100%; max-width: 480px; border-top: 4px double var(--gold); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.wide { max-width: 640px; }
.modal h3 { color: var(--navy); margin-bottom: 14px; font-size: 1.25em; }
.modal .fields, .admit .fields { display: flex; flex-wrap: wrap; gap: 0 14px; }
.fields .field { flex: 1 1 100%; min-width: 0; }
.fields .field.half { flex: 1 1 calc(50% - 7px); min-width: 200px; }
.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--paper); padding: .55em 1.2em; border: 1px solid var(--gold); z-index: 60; }
.photo-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.photo-prev { width: 76px; height: 90px; object-fit: cover; border: 1px solid var(--gold); padding: 3px; background: #fff; }

/* admission form page */
.admit { padding: 8px 20px 0; }
.af-sec { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0 4px; }
.af-sec:first-child { border-top: 0; }
.af-sec legend { font-family: var(--head); color: var(--navy); font-size: 1.15em; padding: 0 10px 0 0; display: flex; align-items: center; gap: 8px; }
.af-sec legend::before { content: ''; width: 12px; height: 12px; background: var(--star) center/contain no-repeat; }

/* ---------- attendance ---------- */
.att { display: inline-block; padding: .05em .55em; border-radius: 2px; font-size: .82em; font-weight: 600; }
.att.present { background: var(--ok-bg); color: var(--ok); }
.att.absent { background: var(--bad-bg); color: var(--bad); }
.att.leave { background: #e3e8f3; color: var(--navy-2); }
.att.late { background: var(--warn-bg); color: var(--warn); }
.att.none { color: var(--muted); font-weight: 400; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .28em .7em; border: 1px solid var(--line); border-radius: 3px; font-size: .88em; background: var(--sheet); }
.seg .present input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.seg .absent input:checked + span { background: var(--bad); border-color: var(--bad); color: #fff; }
.seg .leave input:checked + span { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.seg .late input:checked + span { background: #b97c18; border-color: #b97c18; color: #fff; }
.att-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.att-box { padding: 10px; text-align: center; background: var(--sheet); border: 1px solid var(--line); }
.att-box b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.7em; line-height: 1.2; }
.att-box.present b { color: var(--ok); } .att-box.absent b { color: var(--bad); } .att-box.leave b { color: var(--navy-2); } .att-box.late b { color: var(--warn); }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--page) 40%); display: flex; justify-content: flex-end; z-index: 5; }
.admit .sticky-save { background: linear-gradient(transparent, var(--sheet) 40%); }
.sticky-save .btn { box-shadow: 0 3px 0 var(--navy-deep); padding: .65em 1.6em; }

/* ---------- study sheet ---------- */
.sheet { padding: 12px 16px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sheet-head .btn { margin-left: auto; }
.sheet-row { display: flex; gap: 12px; align-items: flex-end; padding: 7px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.sheet-sub { width: 170px; font-weight: 600; color: var(--navy); font-size: .92em; padding-bottom: 6px; }
.sheet-sub small { display: block; font-weight: 400; color: var(--muted); }
.sheet-fields { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; min-width: 0; }
.mini { display: flex; flex-direction: column; width: 96px; }
.mini.grow { flex: 1; min-width: 180px; width: auto; }
.mini small { color: var(--muted); font-size: .76em; }
.mini input { padding: .38em .5em; }
.rec .note-head .btn { margin-left: auto; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin-top: 8px; }
.rec-comment { margin: 8px 0 0; }
.fv { display: inline-block; margin-right: 12px; white-space: nowrap; }
.fv small { color: var(--muted); }
.wk-rates { display: flex; gap: 6px 18px; flex-wrap: wrap; padding: 4px 0 8px; font-size: .92em; color: var(--muted); }
.wk-rates b { color: var(--navy); margin-left: 4px; }

/* adab-akhlaq: three boxes, one ticked */
.adab-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.adab-pick label { cursor: pointer; position: relative; }
.adab-pick input { position: absolute; opacity: 0; pointer-events: none; }
.adab-pick span { display: inline-flex; align-items: center; gap: 7px; padding: .3em .75em .3em .45em; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); font-size: .9em; }
.adab-pick i { width: 18px; height: 18px; border: 1.5px solid var(--navy); display: grid; place-items: center; font-style: normal; font-size: 13px; line-height: 1; background: #fff; }
.adab-pick input:checked + span { border-color: var(--navy); background: var(--paper); font-weight: 600; }
.adab-pick input:checked + span i::after { content: '✓'; color: var(--navy); font-weight: 700; }
.adab-pick .good input:checked + span i { background: var(--ok-bg); border-color: var(--ok); }
.adab-pick .improve input:checked + span i { background: var(--warn-bg); border-color: var(--warn); }
.adab-pick .bad input:checked + span i { background: var(--bad-bg); border-color: var(--bad); }
.adab-pick input:focus-visible + span { outline: 2px solid var(--gold); }
.adab-tag { font-weight: 600; }
.ss-pick { margin-top: 6px; flex-basis: 100%; }
.adab-pick .given input:checked + span i { background: var(--ok-bg); border-color: var(--ok); }
.adab-pick .failed input:checked + span i { background: var(--bad-bg); border-color: var(--bad); }
.ss-tag { display: inline-block; margin-left: 6px; padding: 0 .45em; border: 1px solid currentColor; font-size: .85em; font-weight: 600; }
.ss-tag.failed { color: var(--bad); } .ss-tag.none { color: var(--muted, #777); }
.ab-count.given b { color: var(--ok); } .ab-count.failed b { color: var(--bad); }
.adab-tag.good { color: var(--ok); } .adab-tag.improve { color: var(--warn); } .adab-tag.bad { color: var(--bad); }
.adab-boxes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ab { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ab i { width: 16px; height: 16px; border: 1.2px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 12px; line-height: 1; }
.ab.on { color: var(--ink); font-weight: 700; }

/* ---------- ratings ---------- */
.rating { margin: 4px 0 6px; }
.rb { margin: 0 0 10px; }
.rb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.rb-top > span:first-child { color: var(--ink); font-weight: 600; }
.rb-top b { font-family: var(--head); font-weight: 400; font-size: 1.35em; color: var(--navy); margin-left: 8px; }
.rb.overall .rb-top > span:first-child, .rb.overall .rb-top b { color: var(--navy); font-weight: 700; }
.rb-top em { font-style: normal; font-size: .78em; font-weight: 600; }
.rb-top em.up { color: var(--ok); } .rb-top em.down { color: var(--bad); } .rb-top em.same { color: var(--muted); }
.rb-bar, .mbar { display: block; height: 10px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.rb.overall .rb-bar { height: 13px; }
.rb-bar > span, .mbar > span { display: block; height: 100%; border-radius: 99px; }
.mbar { width: 56px; height: 6px; display: inline-block; vertical-align: middle; margin-left: 5px; }
.red { background: #d93a2b; } .yellow { background: #e9b10c; } .blue { background: #3b7ddd; } .green { background: #22a04b; }
b.pc { background: none; }
b.pc.red { color: #b52a1d; } b.pc.yellow { color: #9a7300; } b.pc.blue { color: #2a63b8; } b.pc.green { color: #1b7d3a; }
.rt-parts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84em; color: var(--muted); margin-top: 6px; }
.rt-parts b { color: var(--ink); }
.att-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ab-count { padding: .05em .55em; border: 1px solid var(--line); font-size: .86em; }
.ab-count.good b { color: var(--ok); } .ab-count.improve b { color: var(--warn); } .ab-count.bad b { color: var(--bad); }

/* ---------- printable report: a sheet of paper ---------- */
.docbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 auto 12px; max-width: 640px; }
.report { background: #fff; padding: 26px 28px; max-width: 640px; margin: 0 auto 20px; position: relative; color: #1b1f29;
  border: 1px solid var(--line); box-shadow: 0 2px 0 var(--rule), 0 10px 24px rgba(20, 41, 74, .08); }
.report.af { max-width: 820px; }
.wide-report { max-width: none; }
.report::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--gold); pointer-events: none; }
.report::after { content: ''; position: absolute; inset: 11px; border: .5px solid var(--gold-soft); pointer-events: none; }
.lh { display: flex; align-items: center; gap: 14px; justify-content: center; padding-bottom: 8px; border-bottom: 3px double var(--navy); position: relative; z-index: 1; }
.lh-logo { width: 74px; height: 74px; }
.lh-text { text-align: center; }
.lh-bism { font-family: 'Amiri', serif; color: var(--gold-2); font-size: .95em; direction: rtl; line-height: 1.3; }
.lh-text h2 { color: var(--navy); font-size: 1.75em; line-height: 1.2; }
.lh-en { color: var(--gold-2); font-weight: 600; font-size: .9em; }
.lh-text small { color: var(--muted); }
.lh-title { text-align: center; margin: 10px auto 14px; color: var(--navy); position: relative; z-index: 1; }
.lh-title span { font-family: var(--head); font-size: 1.2em; display: inline-flex; align-items: center; gap: 10px; }
.lh-title span::before, .lh-title span::after { content: ''; width: 10px; height: 10px; background: var(--star) center/contain no-repeat; }
.lh-title small { display: block; color: var(--muted); }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; margin-bottom: 12px; }
.meta div { border-bottom: 1px dotted #c9b98f; padding-bottom: 3px; min-width: 0; }
.meta small { display: block; color: var(--muted); font-size: .76em; }
.meta b { font-weight: 600; overflow-wrap: anywhere; }
.report .tbl th { background: transparent; }
.rtbl td { vertical-align: top; }
.rtbl tr.wk td { background: var(--paper); }
.report .tbl th:first-child, .report .tbl td:first-child { padding-left: .4em; }
.rsec { font-size: .98em; color: var(--navy); margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; }
.rsec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.panel td, .panel th { font-size: .88em; }
.cellsum .fv { display: block; margin: 0; }
.comment { margin-top: 12px; border: 1px solid var(--line); padding: 6px 12px; min-height: 58px; }
.comment.tall { min-height: 110px; margin-top: 0; }
.comment small { color: var(--muted); }
.comment p { margin: 2px 0 0; }
.sign { margin: 18px 0 0 auto; width: 210px; text-align: center; }
.sign-box { height: 56px; display: flex; align-items: flex-end; justify-content: center; }
.sign-box img { max-height: 56px; max-width: 200px; }
.sign-line { border-top: 1px solid var(--ink); margin-top: 4px; padding-top: 2px; font-size: .84em; color: var(--muted); }
.rfoot { text-align: center; color: var(--muted); font-size: .72em; margin-top: 14px; }
.money-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.money-sum div { border: 1px solid var(--line); padding: 6px 8px; }
.money-sum small { display: block; color: var(--muted); }
.money-sum b { font-family: var(--head); font-weight: 400; font-size: 1.25em; }
.money-sum .bad b { color: var(--bad); }

/* admission form sheet */
.af-top { display: flex; gap: 14px; align-items: flex-start; }
.af-top .af-grid { flex: 1; }
.af-photo { width: 112px; height: 136px; border: 1px dashed var(--gold-2); display: grid; place-items: center; color: var(--muted); flex: none; font-size: .85em; }
.af-photo img { width: 100%; height: 100%; object-fit: cover; }
.af-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; }
.af-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.af-f { min-width: 0; }
.af-f.w2 { grid-column: span 2; }
.af-f.w4 { grid-column: 1 / -1; }
.af-f small { display: block; color: var(--muted); font-size: .76em; }
.af-f span { display: block; border-bottom: 1px dotted #b7a575; min-height: 1.7em; font-weight: 600; overflow-wrap: anywhere; }
.af-f .ticks { display: flex; gap: 16px; border-bottom: 0; font-weight: 500; }
.tickbox { display: inline-flex; align-items: center; gap: 6px; }
.tickbox i { width: 15px; height: 15px; border: 1.2px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 12px; line-height: 1; }
.pledge { margin-top: 14px; border: 1px solid var(--line); padding: 8px 12px; background: #fffcf3; }
.pledge p { margin: 3px 0 0; font-size: .92em; }
.af-signs { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.af-signs .sign { margin: 22px 0 0; }

/* PDF copy laid out at the paper's width (see js/pdf.js). These rules undo the phone layout,
   so the PDF looks the same whether it is made on a phone or a computer. */
.on-paper .no-print { display: none !important; }
.on-paper .meta { grid-template-columns: repeat(4, 1fr); }
.on-paper .money-sum { grid-template-columns: repeat(4, 1fr); }
.on-paper .af-top { flex-direction: row; }
.on-paper .af-grid { grid-template-columns: repeat(4, 1fr); }
.on-paper .af-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.on-paper .lh { gap: 14px; }
.on-paper .lh-logo { width: 74px; height: 74px; }
.on-paper .lh-text h2 { font-size: 1.75em; }
.on-paper .tbl th, .on-paper .tbl td { padding: .55em .8em; }
.on-paper { max-width: none !important; width: 100%; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.on-paper.paper-a5 { font-size: 12.5px; padding: 20px 22px; line-height: 1.5; }
.on-paper.paper-a5 .meta { grid-template-columns: repeat(4, 1fr); gap: 4px 10px; margin-bottom: 8px; }
.on-paper.paper-a5 .lh-logo { width: 56px; height: 56px; }
.on-paper.paper-a5 .lh-text h2 { font-size: 1.55em; }
.on-paper.paper-a5 .lh-title { margin: 6px auto 8px; }
.on-paper.paper-a5 .rsec { margin: 8px 0 4px; }
.on-paper.paper-a5 .tbl td { padding: .35em .6em; }
.on-paper.paper-a5 .comment { min-height: 44px; margin-top: 8px; }
.on-paper.paper-a5 .sign { margin-top: 10px; }
.on-paper.paper-a5 .sign-box { height: 44px; }
.on-paper.paper-a5 .rb { margin-bottom: 6px; }
.on-paper.paper-a4 { font-size: 14px; padding: 30px 34px; }
.on-paper.paper-a4l { font-size: 13px; padding: 24px 28px; }
.on-paper .scroll { overflow: visible; }

/* ---------- signature pad ---------- */
.sig-pad { width: 100%; max-width: 460px; height: 160px; border: 1px dashed var(--gold); background: #fff; touch-action: none; display: block; }
.sig-current { margin-bottom: 10px; }
.sig-current img { max-height: 70px; background: #fff; border: 1px solid var(--line); padding: 4px; }
.sig-thumb { max-height: 30px; }

/* ---------- print ---------- */
/* ---------- notifications: bell, bar, list ---------- */
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; color: #e0c06c; border: 1px solid rgba(224,192,108,.35); border-radius: 10px; background: linear-gradient(160deg, var(--navy-2), var(--navy-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.bell .ic { width: 21px; height: 21px; }
.bell b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-family: var(--text); }
.bell.has { color: #fff; border-color: var(--gold); animation: bell-ring 1.2s ease 1; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.notif-bar { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); color: var(--navy); padding: .5em 16px; border-bottom: 1px solid var(--gold); font-size: .92em; }
.notif-bar .ic { width: 18px; height: 18px; color: var(--gold-2); flex: none; }
.notif-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-bar em { font-style: normal; font-weight: 700; white-space: nowrap; }
.notif-list .notif { display: flex; align-items: center; gap: 12px; padding: .7em 1em; border-bottom: 1px solid var(--rule); color: var(--ink); }
.notif-list .notif:last-child { border-bottom: 0; }
.notif-list .notif.new { background: #fff8e2; }
.notif-list .nk { width: 34px; height: 34px; }
.notif-list .nk .ic { width: 18px; height: 18px; }
.notif-list .nt { flex: 1; min-width: 0; }
.notif-list .nt b { display: block; font-weight: 500; }
.notif-list .new .nt b { font-weight: 700; }
.notif-list .nt small { color: var(--muted); font-size: .82em; }
.badge.new { background: var(--bad); color: #fff; font-style: normal; }

/* ---------- complaints ---------- */
.to-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.to-pick label { flex: 1; min-width: 200px; cursor: pointer; position: relative; }
.to-pick input { position: absolute; opacity: 0; pointer-events: none; }
.to-pick span { display: block; padding: .6em .9em; border: 1.5px solid var(--line); border-radius: 3px; background: var(--sheet); }
.to-pick span small { display: block; color: var(--muted); font-size: .82em; }
.to-pick input:checked + span { border-color: var(--navy); background: var(--paper); box-shadow: inset 4px 0 0 var(--gold); }
.to-pick input:focus-visible + span { outline: 2px solid var(--gold); }
.complaint { border-left: 4px solid var(--line); }
.complaint.new { border-left-color: var(--bad); }
.complaint.replied { border-left-color: var(--gold); }
.complaint.resolved { border-left-color: var(--ok); }
.complaint > p { margin: .5em 0; }
.complaint .reply { background: var(--paper); border-left: 3px solid var(--gold); padding: .4em .8em; margin: .5em 0; }
.complaint .reply p { margin: .2em 0 0; }
.reply-form textarea { width: 100%; margin-top: .5em; }
.reply-form .chk { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.badge.cst.new { background: var(--bad-bg); color: var(--bad); border-color: #e6bdb3; }
.badge.cst.replied { background: var(--warn-bg); color: var(--warn); border-color: #e7cf9a; }
.badge.cst.resolved { background: var(--ok-bg); color: var(--ok); border-color: #b9d8c2; }
.tabs .count { background: var(--bad); color: #fff; border-radius: 9px; padding: 0 6px; font-size: .8em; }

/* ---------- half page button on the page box ---------- */
.page-mini { width: 118px; }
.half-wrap { display: flex; }
.half-wrap input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.half-btn { flex: none; width: 38px; border: 1px solid var(--line); border-left: 0; background: var(--paper-2); color: var(--navy); font-size: 1.05em; font-weight: 700; cursor: pointer; border-radius: 0 3px 3px 0; }
.half-btn.on { background: var(--navy); color: #e0c06c; border-color: var(--navy); }

@media print {
  body { background: #fff; }
  .no-print, .top, .side, .proto, .scrim, .toast, .modal-bg, .back, .tabs, .docbar, .filters { display: none !important; }
  .layout { display: block; min-height: 0; }
  main { padding: 0; max-width: none; }
  .report { box-shadow: none; border: 0; margin: 0; max-width: none; padding: 12px 16px; }
  body[data-paper="a5"] .report { font-size: 11.5px; }
  body[data-paper="a5"] .meta { grid-template-columns: repeat(2, 1fr); }
  .scroll { overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- phones ---------- */
.menu-btn { display: none; background: none; border: 0; color: var(--paper); padding: 4px; cursor: pointer; }
.menu-btn .ic { width: 26px; height: 26px; }
.scrim { display: none; }
@media (max-width: 860px) {
  .top { padding: 8px 12px; }
  .menu-btn { display: block; }
  .brand small, .who { display: none; }
  .brand b { font-size: 1.12em; }
  .brand .logo { width: 40px; height: 40px; }
  .layout { display: block; }
  .side {
    position: fixed; top: 0; bottom: 0; left: 0; width: 256px; z-index: 40; transform: translateX(-100%);
    transition: transform .2s; overflow-y: auto; padding-top: 20px; background: var(--paper-2);
  }
  .side a.on { margin-right: 0; border-right: 0; }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 26, 49, .5); z-index: 30; }
  main { padding: 16px 16px 44px; }
  .two { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .filters > * { max-width: none; min-width: 130px; }
  .stat b { font-size: 1.6em; }
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dt { margin-top: 8px; font-size: .88em; }
  .tbl th, .tbl td { padding: .5em .55em; }
  .meta { grid-template-columns: repeat(2, 1fr); }
  .report { padding: 20px 16px; }
  .lh { gap: 10px; }
  .lh-logo { width: 54px; height: 54px; }
  .lh-text h2 { font-size: 1.35em; }
  .sheet-sub { width: 100%; padding-bottom: 0; }
  .mini { width: calc(33% - 6px); min-width: 80px; }
  .half-btn { width: 30px; }
  .half-wrap input { padding-left: .35em; padding-right: .3em; }
  .att-tbl td:first-child, .att-tbl th:first-child { display: none; }
  .seg span { padding: .28em .5em; font-size: .82em; }
  .att-sum { grid-template-columns: repeat(2, 1fr); }
  .money-sum { grid-template-columns: repeat(2, 1fr); }
  .af-top { flex-direction: column-reverse; }
  .af-grid, .af-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 1.45em; }
}

/* ---------- footer (bottom of every page) ---------- */
.site-foot { background: var(--girih), var(--navy); color: var(--gold-soft); border-top: 1px solid var(--gold); box-shadow: 0 -3px 0 var(--navy), 0 -4px 0 var(--gold); margin-top: 4px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 34px 28px 26px; display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr; gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-logo { width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--paper); padding: 2px; }
.foot-brand b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.3em; color: #fff; line-height: 1.25; }
.foot-brand small { color: #e0c06c; }
.foot-brand p { margin: .6em 0 0; font-size: .88em; opacity: .8; line-height: 1.55; }
.foot-col h4 { font-family: var(--head); font-weight: 400; color: #fff; font-size: 1.08em; margin: 0 0 12px; padding-bottom: 7px; border-bottom: 1px solid rgba(224,192,108,.3); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93em; }
.foot-col li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.foot-col li .ic { width: 18px; height: 18px; color: #e0c06c; margin-top: 2px; }
.foot-col a { color: var(--gold-soft); }
.foot-col a:hover { color: #fff; }
.foot-bar { border-top: 1px solid rgba(224,192,108,.22); text-align: center; padding: 12px 16px; font-size: .84em; color: var(--gold-soft); opacity: .8; background: rgba(12,26,49,.45); }
@media (max-width: 860px) {
  .foot-in { grid-template-columns: 1fr 1fr; padding: 26px 16px 20px; gap: 22px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- cream page background: girih pattern that stays still while the page scrolls ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b98b2c' stroke-opacity='.22' stroke-width='.9'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l12 12M56 0L44 12M0 56l12-12M56 56L44 44M28 0v6M28 50v6M0 28h6M50 28h6'/%3E%3C/g%3E%3C/svg%3E"), var(--page);
}
@media print { body::before { display: none; } }

/* ---------- rounded corners everywhere + clear-glass boxes (2026-11-30) ----------
   Boxes that scroll over the patterned background are clear like glass: the pattern shows through sharply.
   Paper reports (.report) stay plain white so printing and PDFs do not change. */
.card, .stat, .att-box {
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 28px -16px rgba(20, 41, 74, .35), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.stat { border-top: 3px solid var(--navy); }
.stat.warn { border-top-color: var(--bad); }
.stat.good { border-top-color: var(--ok); }
a.stat:hover { background: rgba(255, 255, 255, .3); }
.card.flush { overflow: hidden; }
.card.notice { border-left: 3px solid var(--gold); }
.tbl th { background: rgba(255, 255, 255, .18); }
.tbl tr.click:hover td { background: rgba(255, 255, 255, .3); }
.notif-list .notif.new { background: rgba(241, 227, 184, .35); }
.btn { border-radius: 12px; }
input, select, textarea { border-radius: 12px; }
.half-wrap input { border-radius: 12px 0 0 12px; }
.half-btn { border-radius: 0 12px 12px 0; }
.badge, .att { border-radius: 99px; padding-left: .7em; padding-right: .7em; }
.seg span, .adab-pick span, .to-pick span { border-radius: 12px; }
.adab-pick i { border-radius: 6px; }
.demo-btns button { border-radius: 10px; }
.tabs a { border-radius: 12px 12px 0 0; }
.modal { border-radius: 22px; }
.login-card { border-radius: 26px; outline: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .4), inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--gold); }
.login-card::before { border-radius: 16px; }
.photo-big, .photo-prev { border-radius: 16px; }
.side a.on { border-radius: 14px 0 0 14px; }
.notif-bar { border-radius: 0; }
@media print { .card, .stat { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; box-shadow: none; } }

/* ---------- login page: clear-glass card over a still navy background (2026-11-30) ---------- */
.login-page { background: none; position: relative; }
.login-page::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--girih), var(--navy-deep); }
.login-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  outline: 1px solid rgba(224, 192, 108, .55); outline-offset: -9px;
  color: var(--paper);
}
.login-card::before { border-color: rgba(224, 192, 108, .25); }
/* login logo: img/logo-light.webp = the logo with its navy lettering turned cream, for the navy background */
.bismillah { color: #e0c06c; }
.login-card h1 { color: var(--paper); }
.login-card .addr, .login-card .muted, .login-card .help { color: var(--gold-soft); opacity: .9; }
.login-card .field > span { color: var(--paper); }
.demo { background: rgba(255, 255, 255, .05); border-color: rgba(224, 192, 108, .6); border-radius: 14px; }
.demo b { color: var(--paper); }
.demo small { color: var(--gold-soft); }
.demo-btns button { background: rgba(255, 255, 255, .08); color: var(--paper); border-color: rgba(224, 192, 108, .6); }
.demo-btns button:hover { background: rgba(255, 255, 255, .18); }
.lang-link { color: var(--paper); }
