/* The live app screens on the devices. Tokens from mobile/src/core/theme (see qa/sami-flows-spec.md §0). */
.device-ui { --brand: #0E8C71; --deep: #0A5C58; --mint: #E2F4EE; --paper: #F5F3EE; --sunk: #EFEDE6; --border: #E9E6DE; --text: #0E1C1A; --muted: #5A6865; --faint: #98A29F;
  --ok: #12A150; --okS: #E2F5E9; --bad: #E5484D; --badS: #FDEBEC; --warn: #C98200; --warnS: #FFF3D9; --vio: #6D5DF5; --vioS: #EEEBFF; --sky: #2F86F6; --skyS: #E7F0FE;
  --grad: linear-gradient(135deg, #14A084, #0B6660 60%, #083F47); --blue: linear-gradient(135deg, #5B7CFA, #3A4FD8);
  background: var(--paper); color: var(--text); font: 400 15px var(--f-ar); line-height: 1.45; text-align: right; user-select: none; }
.device-ui.phone { border-radius: 34px; }
.device-ui :where(button) { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
.device-ui svg { width: 20px; height: 20px; flex: none; }
.device-ui b { font-weight: 700; }
.device-ui small { font-size: 12px; }
.device-ui .muted { color: var(--muted); } .device-ui .faint { color: var(--faint); } .device-ui .center { text-align: center; } .device-ui .xs { font-size: 12px; }
.phn { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sb { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0; direction: ltr; font: 600 15px var(--f-ar); }
.sb.dark { position: absolute; top: 0; left: 0; right: 0; z-index: 3; color: #fff; }
.sbi { display: flex; align-items: center; gap: 3px; }
.sbi i { width: 4px; height: 8px; border-radius: 1px; background: currentColor; } .sbi i:nth-child(2) { height: 10px; } .sbi i:nth-child(3) { height: 12px; }
.sbi em { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; margin-left: 5px; position: relative; }
.sbi em::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.scroll { flex: 1; overflow-y: auto; padding: 0 16px; scroll-behavior: smooth; }
.scroll.grey { background: #ECEAE4; padding: 0; }
.pad { height: 120px; }

/* headers */
.shead { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.shead > b { font-size: 17px; }
.hb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.shead .hb:not(:empty) { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.shead .hb.brandc { color: var(--brand); background: none; box-shadow: none; } .shead .hb.brandc svg { width: 28px; height: 28px; }
.shead.tk .tkt { text-align: center; } .tkt b { display: block; font-size: 17px; } .tkt small { color: var(--muted); }
.phead { font-size: 26px; font-weight: 700; padding: 8px 4px 14px; }
.sect { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 8px; }
.sect b { font-size: 17px; } .sect a { color: var(--brand); font-size: 13.5px; font-weight: 600; }

/* building blocks */
.card { background: #fff; border-radius: 26px; padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(14, 28, 26, .05); }
.card.nop { padding: 0; overflow: hidden; }
.card.empty { text-align: center; } .card.empty b { display: block; } .card.empty small { color: var(--muted); }
.card.row { display: flex; align-items: center; gap: 12px; } .card.row > div { flex: 1; } .card.row b { display: block; } .card.row small { color: var(--muted); }
.sq { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.sq svg { width: 21px; height: 21px; }
.sq.mint { background: var(--mint); color: var(--deep); } .sq.vio { background: var(--vioS); color: var(--vio); } .sq.coral { background: #FFEDE7; color: #FF7A59; }
.sq.blue { background: var(--blue); color: #fff; } .sq.sky { background: var(--skyS); color: var(--sky); } .sq.ok { background: var(--okS); color: var(--ok); } .sq.warn { background: var(--warnS); color: var(--warn); }
.sq.g1, .ccard.g1, .chero.g1, .ls.g1 { background: var(--grad); color: #fff; } .sq.g2, .ccard.g2 { background: linear-gradient(135deg, #8E6CF5, #5B3FD0); color: #fff; } .sq.g3, .ls.g3 { background: var(--blue); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill svg { width: 14px; height: 14px; }
.pill.ok { background: var(--okS); color: var(--ok); } .pill.bad { background: var(--badS); color: var(--bad); } .pill.warn { background: var(--warnS); color: var(--warn); }
.pill.vio { background: var(--vioS); color: var(--vio); } .pill.info { background: var(--skyS); color: var(--sky); } .pill.mint { background: var(--mint); color: var(--deep); } .pill.grey { background: var(--sunk); color: var(--muted); }
.pill.vio2 { background: #EFE8FD; color: #7A4FD8; } .pill.amb { background: #FFF3D9; color: #D98A00; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; font-weight: 700; height: 50px; padding: 0 18px; }
.btn.sm { height: 38px; border-radius: 12px; font-size: 13.5px; padding: 0 12px; } .btn.lg { height: 58px; font-size: 16px; } .btn.full { width: 100%; }
.btn.pri { background: var(--grad); color: #fff; } .btn.sec { background: var(--mint); color: var(--deep); } .btn.out { background: #fff; border: 1px solid var(--border); }
.btn.white { background: #fff; color: var(--deep); } .btn.dsoft { background: var(--badS); color: var(--bad); }
.btn:disabled { opacity: .55; }
.ghostb { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 13.5px; padding: 6px 0; }
.ghostb.sm { font-size: 12px; color: var(--muted); }
.ghostb svg { width: 17px; height: 17px; }
.two { display: flex; gap: 10px; margin-top: 10px; } .two .btn { flex: 1; }
.col { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.ini { width: 40px; height: 40px; min-width: 40px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none !important; }
.av { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; flex: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { flex: none; background: #fff; padding: 12px 16px 26px; box-shadow: 0 -4px 18px rgba(14, 28, 26, .06); }
.field { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; min-height: 48px; display: flex; align-items: center; gap: 8px; }
.field .ph { color: var(--faint); } .field.ta { align-items: flex-start; min-height: 86px; line-height: 1.6; } .field.ta.big { min-height: 110px; }
.field.sel { justify-content: space-between; width: 100%; } .field.srch { margin: 10px 0; }
.caret { display: inline-block; width: 2px; height: 18px; background: var(--brand); vertical-align: middle; margin: 0 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.banner { background: var(--badS); color: var(--bad); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; margin: 8px 0; }
.sw { width: 46px; height: 28px; border-radius: 99px; background: #D9D6CE; position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw.on { background: var(--brand); } .sw.on::after { right: auto; left: 3px; }
.rows .arow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.rows .arow:last-child { border-bottom: 0; }
.rows .arow > div { flex: 1; } .rows .arow b { display: block; font-weight: 600; } .rows .arow small { color: var(--muted); }
.rows .arow > svg { color: var(--faint); width: 18px; height: 18px; } .arow.red b { color: var(--bad); }
.arow .tt { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .dot.ok { background: var(--ok); } .dot.warn { background: #E0A100; } .dot.bad { background: var(--bad); }
.mnav { display: flex; align-items: center; justify-content: space-between; } .mnav b { font-size: 17px; } .mnav .dim { opacity: .3; }
.hrow { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; }
.emptyb { text-align: center; padding: 50px 20px; color: var(--muted); } .emptyb svg { width: 46px; height: 46px; color: var(--faint); } .emptyb b { display: block; color: var(--text); margin: 8px 0 4px; }
.sheetbg { position: absolute; inset: 0; z-index: 5; background: rgba(14, 28, 26, .38); animation: fade .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 18px 28px; animation: up .3s cubic-bezier(.2, .8, .2, 1); }
.sheet .grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #D9D6CE; margin: 0 auto 14px; }
.sheet > b { display: block; font-size: 18px; margin-bottom: 4px; } .sheet .btn { margin-top: 10px; }
@keyframes up { from { transform: translateY(100%); } } @keyframes fade { from { opacity: 0; } }

/* tab bar (floating) and the offline pill */
.tabbar { position: absolute; left: 16px; right: 16px; bottom: 22px; height: 66px; border-radius: 32px; background: rgba(255, 255, 255, .94); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(14, 28, 26, .14); display: flex; padding: 6px; z-index: 4; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--faint); font-size: 11px; font-weight: 500; position: relative; border-radius: 26px; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--deep); font-weight: 700; background: linear-gradient(to bottom, rgba(14, 140, 113, .16), rgba(14, 140, 113, .07)); box-shadow: inset 0 0 0 1px rgba(14, 140, 113, .18); }
.tab em { position: absolute; top: 4px; left: 22px; min-width: 18px; height: 18px; border-radius: 9px; background: #FF7A59; color: #fff; font: 700 10px/18px var(--f-ar); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.offpill { position: absolute; z-index: 4; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: 94%; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--sunk); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.offpill svg { width: 15px; height: 15px; } .offpill.sync { background: var(--mint); color: var(--deep); }
.phn > .shead ~ .offpill { bottom: auto; top: 102px; }

/* Today */
.hero { position: relative; overflow: hidden; border-radius: 32px; background: var(--grad); color: #fff; padding: 18px; margin: 6px 0 12px; }
.hero i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); } .hero .c1 { width: 180px; height: 180px; top: -60px; left: -40px; } .hero .c2 { width: 120px; height: 120px; bottom: -50px; left: 90px; }
.hr1 { display: flex; align-items: center; gap: 10px; position: relative; } .hr1 > div { flex: 1; } .hr1 b { display: block; } .hr1 small { opacity: .8; }
.hsq { width: 40px; height: 40px; border-radius: 14px; background: #fff; color: var(--brand); display: grid; place-items: center; }
.hero h2 { margin: 16px 0 10px; font-size: 26px; position: relative; }
.yr { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 99px; position: relative; } .yr svg { width: 15px; height: 15px; }
.tiles3 { display: flex; gap: 10px; } .tiles3 > div { flex: 1; background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 2px 10px rgba(14, 28, 26, .05); }
.tiles3 .sq { width: 34px; height: 34px; border-radius: 12px; } .tiles3 b { display: block; font-size: 24px; margin-top: 8px; } .tiles3 small { color: var(--muted); }
.ccard { flex: none; width: 262px; border-radius: 26px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-align: right; }
.vlist .ccard { width: 100%; margin-bottom: 12px; }
.ccard b { font-size: 20px; } .ccard small { opacity: .85; } .chipw { align-self: flex-start; font-size: 12px; background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 99px; margin-top: 6px; color: #fff; }
.lessons { display: flex; gap: 10px; } .ls { flex: 1; border-radius: 22px; padding: 14px; } .ls small { display: block; opacity: .85; } .ls b { display: block; font-size: 16px; margin: 4px 0 2px; } .ls span { font-size: 12px; opacity: .9; }
.fthumbs { display: flex; gap: 8px; margin-bottom: 12px; } .fthumbs img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; }
.ci { padding: 16px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.ci.blue { background: var(--blue); } .ci.green { background: linear-gradient(135deg, #14A084, #0B6660); } .ci.grey { background: linear-gradient(135deg, #98A29F, #6B7774); }
.ci-row { display: flex; align-items: center; gap: 12px; } .ci-row > div { flex: 1; } .ci-row b { display: block; font-size: 17px; } .ci-row small { opacity: .85; }
.ci-ic { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; } .ci-ic svg { width: 24px; height: 24px; }
.ci-pill { background: rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 12px; }
.ci-boxes { display: flex; gap: 10px; } .ci-boxes > div { flex: 1; background: rgba(255, 255, 255, .14); border-radius: 20px; padding: 12px; }
.ci-boxes small { display: block; font-size: 11px; opacity: .8; } .ci-boxes b { font-size: 26px; font-variant-numeric: tabular-nums; }
.ci .btn.white { width: 100%; } .ci .btn.white:disabled { opacity: .9; }
.ci-bye { text-align: center; font-weight: 700; font-size: 17px; padding: 14px 0; }
.ci-link { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; opacity: .9; } .ci-link svg { width: 15px; height: 15px; }
.ptag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: var(--warnS); color: var(--warn); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; } .ptag svg { width: 14px; height: 14px; }
.aw-h { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; } .aw-h b { display: block; font-size: 17px; } .aw-h small { color: var(--muted); }
.aw-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); cursor: pointer; }
.aw-b { width: 52px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; background: var(--skyS); color: var(--sky); flex: none; } .aw-b.ok { background: var(--okS); color: var(--ok); }
.aw-m { flex: 1; display: flex; flex-direction: column; gap: 4px; } .okc { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: 13px; } .okc svg { width: 17px; height: 17px; }
.aw-ch { display: flex; gap: 6px; } .aw-ch i { font-style: normal; font-size: 12px; font-weight: 600; } .aw-ch .bad { color: var(--bad); background: var(--badS); padding: 1px 8px; border-radius: 99px; }
.aw-row > svg { color: var(--faint); width: 18px; height: 18px; }
.tw-p { margin-bottom: 10px; } .tw-row { display: flex; align-items: center; gap: 12px; cursor: pointer; } .tw-row > div { flex: 1; } .tw-row b { display: block; } .tw-row small { color: var(--muted); }
.prof { background: var(--grad); color: #fff; border-radius: 26px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.prof .ini { width: 58px; height: 58px; font-size: 22px; } .prof b { display: block; font-size: 18px; } .prof small { display: block; opacity: .85; margin-bottom: 6px; }
.gb { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 99px; margin-inline-end: 6px; } .gb svg { width: 13px; height: 13px; }
.langs { display: flex; gap: 10px; } .langs span { flex: 1; text-align: center; background: #fff; border-radius: 18px; padding: 12px; font-weight: 600; border: 1px solid var(--border); } .langs .on { border: 2px solid var(--brand); color: var(--deep); }
.card.msg p { margin: 2px 0 0; font-size: 13px; color: var(--muted); } .mt { display: flex; flex-direction: column; align-items: center; gap: 4px; } .mt em { font-style: normal; background: #FF7A59; color: #fff; border-radius: 9px; min-width: 18px; text-align: center; font-size: 11px; font-weight: 700; }
.chero { border-radius: 32px; padding: 18px; margin-bottom: 4px; } .chero b { display: block; font-size: 24px; } .chero small { opacity: .85; }
.bal { flex: none; width: 172px; background: #fff; border-radius: 22px; padding: 14px; } .bal b { display: block; margin: 8px 0 2px; } .bal em { font-style: normal; font-size: 24px; font-weight: 700; } .bal small { color: var(--muted); }

/* take attendance */
.prog { display: flex; align-items: center; gap: 10px; padding: 4px 20px 0; } .prog .tr { flex: 1; height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; } .prog .tr i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.deck { position: relative; height: 470px; margin: 14px 26px 0; }
.pcard { position: absolute; inset: 0 0 auto 0; background: #fff; border-radius: 32px; padding: 20px; text-align: center; box-shadow: 0 16px 40px rgba(14, 28, 26, .14); touch-action: none; cursor: grab; }
.pcard.under { transform: scale(.94) translateY(16px); opacity: .7; box-shadow: none; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; display: block; pointer-events: none; }
.pcard b { display: block; font-size: 24px; margin-top: 14px; } .pcard small { color: var(--muted); font-size: 14px; }
.stamp { position: absolute; top: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 14px; font-weight: 700; color: #fff; opacity: 0; font-size: 18px; }
.stamp.p { left: 34px; background: rgba(18, 161, 80, .92); transform: rotate(-10deg); } .stamp.a { right: 34px; background: rgba(229, 72, 77, .92); transform: rotate(10deg); }
.mbtns { display: flex; gap: 10px; padding: 0 18px; align-items: center; margin-top: 6px; }
.mb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; }
.mb.a, .mb.p { flex: 1; height: 84px; border-radius: 26px; color: #fff; font-size: 17px; } .mb.a { background: var(--bad); } .mb.p { background: var(--ok); }
.mb.a svg, .mb.p svg { width: 28px; height: 28px; }
.mb.l { flex-direction: row; gap: 5px; background: var(--warnS); color: var(--warn); border-radius: 20px; padding: 10px 14px; font-size: 13.5px; } .mb.l svg { width: 17px; height: 17px; }
.dfoot { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; } .dfoot button { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; }
.dfoot button:disabled { opacity: .35; } .dfoot small { color: var(--faint); }
.ctiles { display: flex; gap: 8px; margin: 6px 0 10px; } .ctiles > div { flex: 1; border-radius: 20px; padding: 10px; text-align: center; } .ctiles b { display: block; font-size: 22px; }
.ctiles .ok { background: var(--okS); color: var(--ok); } .ctiles .bad { background: var(--badS); color: var(--bad); } .ctiles .warn { background: var(--warnS); color: var(--warn); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 10px; }
.pg { display: flex; flex-direction: column; align-items: center; gap: 6px; } .pg small { font-size: 12px; font-weight: 600; text-align: center; }
.pg .ph { position: relative; width: 86px; height: 86px; border-radius: 30px; display: grid; place-items: center; }
.pg .ph img { width: 86px; height: 86px; border-radius: 30px; object-fit: cover; }
.pg.absent .ph img { box-shadow: 0 0 0 3px var(--bad); } .pg.late .ph img { box-shadow: 0 0 0 3px #E0A100; }
.pg.more .ph { background: var(--sunk); color: var(--muted); font-weight: 700; font-size: 18px; }
.bd { position: absolute; bottom: -4px; left: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; }
.bd svg { width: 14px; height: 14px; } .bd.ok { background: var(--ok); } .bd.bad { background: var(--bad); } .bd.warn { background: #E0A100; } .bd.vio { background: var(--vio); }
.savedh { background: var(--grad); color: #fff; border-radius: 32px; padding: 20px; text-align: center; margin: 6px 0 12px; }
.savedh .okb { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: inline-grid; place-items: center; } .savedh .okb svg { width: 32px; height: 32px; }
.savedh b { display: block; font-size: 20px; margin-top: 8px; } .savedh small { opacity: .85; }
.faces { display: flex; gap: 10px; justify-content: center; margin: 4px 0 6px; } .faces > span { display: flex; flex-direction: column; align-items: center; gap: 4px; } .faces .ph { position: relative; }
.faces img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; } .faces .bd { width: 20px; height: 20px; } .faces .bd svg { width: 11px; height: 11px; }

/* excuses, sheets, tasks */
.seg3, .seg2 { display: flex; background: var(--sunk); border-radius: 99px; padding: 4px; margin: 4px 0 12px; } .seg3 button, .seg2 button { flex: 1; text-align: center; padding: 8px 4px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg3 .on, .seg2 .on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.exh { display: flex; align-items: center; gap: 12px; } .exh > div { flex: 1; } .exh b { display: block; } .exh small { color: var(--muted); }
.card.ex p { margin: 6px 0; } .exd { display: block; margin-top: 10px; font-size: 13.5px; }
.share img { width: 100%; border-radius: 16px; margin: 8px 0; max-height: 300px; object-fit: cover; } .shr { display: flex; justify-content: space-around; color: var(--deep); font-weight: 600; } .shr span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tstat { margin-top: 10px; }
.dstep { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; } .dstep b { font-size: 15px; }
.cvc { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; } .cvh { display: flex; align-items: center; gap: 8px; } .cvh b { font-size: 17px; }
.cvc .btn { align-self: flex-start; } .cvd { display: flex; align-items: center; gap: 10px; background: var(--okS); border-radius: 16px; padding: 10px; } .cvd b { display: block; } .cvd small { color: var(--muted); }
.cvd .okc svg { width: 22px; height: 22px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--border); } .opt > span:not(.ini) { flex: 1; font-weight: 600; } .opt > svg { color: var(--brand); }

/* feed */
.post { background: #fff; margin-bottom: 8px; }
.poh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; } .poh > div { flex: 1; } .poh b { display: block; font-size: 14px; } .poh small { color: var(--muted); } .poh .ini { width: 38px; height: 38px; } .more { color: var(--muted); }
.pmedia { position: relative; cursor: pointer; } .pmedia img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.cnt { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.pop { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; animation: pop .7s ease both; } .pop svg { width: 110px; height: 110px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .3)); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
.pdots { display: flex; justify-content: center; gap: 5px; padding: 8px; } .pdots i { width: 6px; height: 6px; border-radius: 50%; background: #d6d2c8; } .pdots i.on { background: var(--brand); }
.pacts { display: flex; align-items: center; gap: 14px; padding: 0 14px; } .pacts svg { width: 28px; height: 28px; } .pacts .sp { flex: 1; } .hrt.on { color: #F0304A; }
.pbody { padding: 6px 14px 16px; } .pbody p { margin: 4px 0; font-size: 14px; } .rx { font-size: 14px; }
.tagc { display: inline-flex; align-items: center; gap: 4px; background: var(--mint); color: var(--deep); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; } .tagc svg { width: 14px; height: 14px; }
.mstrip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; }
.mt .mthumb { position: relative; width: 112px; height: 112px; display: block; } .mthumb img { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; }
.mst { position: absolute; bottom: 6px; right: 6px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: #fff; }
.mst.up { background: var(--sky); } .mst.proc { background: var(--warn); } .mst.ok { background: var(--ok); }
.tagn { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 2px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; } .tagn svg { width: 12px; height: 12px; }
.addm { flex: none; width: 56px; height: 112px; border-radius: 14px; border: 2px dashed rgba(14, 140, 113, .5); background: var(--mint); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; }
.addm.big { width: 112px; } .addm svg { width: 26px; height: 26px; }
.chips { display: flex; gap: 8px; } .chip { padding: 7px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-weight: 600; } .chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0; }
.tg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 16px; } .tg.on { background: var(--mint); }
.tph { position: relative; } .tph img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; display: block; } .tph img.cut { object-position: 50% 4%; background: #d9e3e0; }
.tph i { position: absolute; bottom: -4px; left: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; border: 2px solid #fff; } .tph i svg { width: 12px; height: 12px; }
.tg small { font-weight: 600; }

/* sync */
.syncst { display: flex; align-items: center; gap: 12px; background: var(--sunk); box-shadow: none; } .syncst svg { width: 26px; height: 26px; color: var(--muted); } .syncst b { display: block; font-size: 14px; } .syncst small { color: var(--muted); }
.syncst.on { background: var(--okS); } .syncst.on svg { color: var(--ok); }
.qi { display: flex; align-items: center; gap: 12px; } .qi > div { flex: 1; } .qi b { display: block; } .qi small { display: block; color: var(--muted); }
.qic { width: 36px; height: 36px; border-radius: 50%; background: var(--warnS); color: var(--warn); display: grid; place-items: center; } .qic svg { width: 19px; height: 19px; }
.qic.sy { background: var(--mint); color: var(--deep); } .qic.sy svg { animation: spin 1s linear infinite; }

/* the parents' phones */
.lockscr { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 10%, #2a5d7a, #0f2533 60%, #0a1820); color: #fff; text-align: center; padding-top: 70px; }
.lk-top svg { width: 20px; height: 20px; opacity: .85; } .lk-t { font-size: 78px; font-weight: 600; line-height: 1; margin-top: 8px; letter-spacing: -1px; } .lk-d { font-size: 17px; opacity: .85; margin-top: 4px; }
.lk-n { margin: 40px 12px 0; } .notif { display: block; width: 100%; text-align: right; background: rgba(245, 245, 245, .86); color: #111; border-radius: 22px; padding: 12px 14px; backdrop-filter: blur(20px); animation: drop .5s cubic-bezier(.2, .8, .2, 1) both .3s; }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.notif .nh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .notif .nh b { flex: 1; font-size: 13px; font-weight: 600; } .notif .nh small { color: #666; }
.appic { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); color: #fff; display: grid; place-items: center; } .appic svg { width: 14px; height: 14px; }
.notif .nt { display: block; font-size: 15px; } .notif p { margin: 2px 0 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-bar { position: absolute; bottom: 10px; left: 50%; width: 130px; height: 5px; margin-left: -65px; border-radius: 3px; background: #fff; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 12px 0 8px; text-align: center; } .cal i { font-style: normal; font-size: 11px; color: var(--faint); }
.cal .c { height: 38px; border-radius: 13px; display: grid; place-items: center; font-weight: 600; font-size: 13.5px; }
.cal .c:nth-of-type(1) { grid-column-start: 1; }
.cal .c.ok { background: var(--ok); color: #fff; } .cal .c.bad { background: var(--bad); color: #fff; } .cal .c.warn { background: #E0A100; color: #fff; } .cal .c.vio { background: var(--vio); color: #fff; }
.cal .c.fut { color: var(--faint); } .cal .c.today { box-shadow: 0 0 0 2px var(--brand); }
.legend { display: flex; gap: 12px; justify-content: center; font-size: 12px; color: var(--muted); } .legend span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; } .legend .ok { background: var(--ok); } .legend .bad { background: var(--bad); } .legend .warn { background: #E0A100; } .legend .vio { background: var(--vio); }
.stats5 { display: flex; gap: 6px; } .stats5 > div { flex: 1; border-radius: 20px; padding: 10px 2px; text-align: center; } .stats5 b { display: block; font-size: 18px; } .stats5 small { font-size: 10.5px; }
.stats5 .mint { background: var(--mint); color: var(--deep); } .stats5 .ok { background: var(--okS); color: var(--ok); } .stats5 .bad { background: var(--badS); color: var(--bad); } .stats5 .warn { background: var(--warnS); color: var(--warn); } .stats5 .vio { background: var(--vioS); color: var(--vio); }
.exrow { display: flex; align-items: center; gap: 10px; } .exrow > div { flex: 1; } .exrow b { display: block; font-size: 13.5px; } .exrow small { color: var(--muted); }
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px; }
.dchip { flex: none; width: 58px; height: 66px; border-radius: 20px; background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dchip small { font-size: 11px; color: var(--muted); } .dchip b { font-size: 18px; } .dchip.on { background: var(--brand); border-color: var(--brand); color: #fff; } .dchip.on small { color: #fff; }
.dchip.dash { border-style: dashed; color: var(--muted); } .dchip svg { width: 16px; height: 16px; }
.fileb { display: flex; align-items: center; gap: 12px; } .fileb img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; } .fileb > div { flex: 1; } .fileb b { display: block; font-size: 13.5px; } .fileb small { color: var(--muted); }
.success { text-align: center; padding: 70px 10px 0; } .sbig { width: 110px; height: 110px; border-radius: 50%; background: var(--mint); color: var(--brand); display: inline-grid; place-items: center; margin-bottom: 18px; }
.sbig svg { width: 52px; height: 52px; } .success b { display: block; font-size: 22px; margin-bottom: 6px; } .success p { margin: 0 0 26px; }
.avgc { display: flex; align-items: flex-end; justify-content: space-between; } .avgc small { color: var(--muted); } .avgc b { display: block; font-size: 44px; line-height: 1.1; }
.okc2 { color: var(--ok); } .blu { color: var(--sky); }
.mk .mkh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .mkr { display: flex; align-items: baseline; justify-content: space-between; } .mkr em { font-style: normal; font-size: 22px; font-weight: 700; }
.mk p { margin: 6px 0 0; font-size: 13.5px; }

/* the web app (laptop) */
.device-ui.laptop { background: #F7F7F5; font-size: 15px; }
.wb { position: absolute; inset: 0; display: flex; }
.wside { width: 288px; flex: none; background: #fff; border-left: 1px solid #ECEAE4; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.wbrand { display: flex; align-items: center; gap: 10px; } .wlogo { width: 40px; height: 40px; border-radius: 12px; background: #1E2B29; color: #FFB547; display: grid; place-items: center; }
.wbrand b { display: block; font-size: 17px; } .wbrand small { color: var(--muted); }
.wsec { display: flex; align-items: center; gap: 10px; background: #7c3aed; color: #fff; border-radius: 16px; padding: 10px 12px; } .wsec > div { flex: 1; } .wsec b { display: block; font-weight: 600; } .wsec small { opacity: .75; }
.wsq { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.wnav { display: flex; flex-direction: column; gap: 2px; } .wnav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: #3C4846; } .wnav a svg { width: 18px; height: 18px; }
.wnav a.on { background: #F1EAFE; color: #5B21B6; font-weight: 600; }
.wsvc { margin-top: auto; } .wsvc > small { color: var(--faint); } .wsvc > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.wsvc span { display: flex; flex-direction: column; align-items: center; gap: 3px; } .wsvc i { width: 40px; height: 40px; border-radius: 12px; opacity: .9; } .wsvc span.on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7c3aed; } .wsvc small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.wmain { flex: 1; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(to bottom, rgba(124, 58, 237, .06), rgba(124, 58, 237, 0) 180px); }
.wtop { height: 56px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 26px; border-bottom: 1px solid #ECEAE4; background: rgba(255, 255, 255, .7); }
.wtop .sp { flex: 1; } .wi, .wl, .wu { display: inline-flex; align-items: center; gap: 6px; color: #3C4846; font-size: 14px; } .wi svg, .wl svg { width: 18px; height: 18px; }
.wu i { width: 28px; height: 28px; border-radius: 50%; background: #7c3aed; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; }
.wpage.scroll { flex: 1; overflow-y: auto; padding: 16px 32px 40px; max-width: 1024px; width: 100%; margin: 0 auto; }
.wback { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; } .wback svg { width: 16px; height: 16px; }
.whead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 12px; }
.whead h1 { margin: 6px 0 2px; font-size: 24px; font-weight: 600; } .whead p { margin: 0; font-size: 13.5px; }
.wchips { display: flex; gap: 8px; } .tchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2563eb; background: #EAF1FE; padding: 3px 10px; border-radius: 99px; }
.tchip i { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; } .badge.warn { background: #FFF3D9; color: #8a5d05; } .badge.ok { background: #E2F5E9; color: #12803F; }
.wact { display: flex; gap: 8px; flex-wrap: nowrap; flex: none; }
.whead > div:first-child { min-width: 0; flex: 1; }
.wbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.wbtn svg { width: 16px; height: 16px; } .wbtn.out { background: #fff; border: 1px solid #E4E2DB; } .wbtn.pri { background: #7c3aed; color: #fff; } .wbtn.ghost { color: #5B21B6; }
.wbtn:disabled { opacity: .55; }
.wstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #E9E6DE; border: 1px solid #E9E6DE; border-radius: 12px; overflow: hidden; }
.wstats > div { background: #fff; padding: 10px 14px; } .wstats small { display: block; color: var(--muted); } .wstats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.whint { font-size: 12px; color: var(--muted); margin: 8px 0; }
.wtable { background: #fff; border: 1px solid #E9E6DE; border-radius: 12px; overflow: hidden; }
.wtr { display: grid; grid-template-columns: 44px 1.6fr 120px 130px 1.2fr; gap: 10px; align-items: center; padding: 6px 14px; border-bottom: 1px solid #F0EEE8; }
.wtr.th { color: var(--muted); font-size: 12px; padding: 9px 14px; background: #FAF9F6; }
.wtr.ed { background: #FFF8E6; }
.wst { display: flex; align-items: center; gap: 8px; } .wst i { width: 28px; height: 28px; border-radius: 50%; background: #EDE9FE; color: #5B21B6; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.wst b { font-weight: 600; } .wst small { color: var(--faint); }
.wsc { width: 96px; height: 32px; border: 1px solid #E4E2DB; border-radius: 8px; text-align: left; padding: 0 10px; font: 600 14px var(--f-ar); color: var(--text); background: #fff; user-select: text; }
.wsc:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); } .wsc.bad { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); }
.wsel { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid #E4E2DB; border-radius: 8px; font-size: 13px; } .wsel svg { width: 14px; height: 14px; color: var(--faint); }
.wcom { display: block; height: 32px; border: 1px solid #E4E2DB; border-radius: 8px; }
.wtoast { pointer-events: none; position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; background: #fff; color: #12803F; border: 1px solid #CDEBD8; border-radius: 12px; padding: 12px 16px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12); animation: drop .4s ease both; }
.wdlgbg { position: absolute; inset: 0; background: rgba(14, 28, 26, .35); animation: fade .2s; }
.wdlg { position: absolute; top: 50%; left: 50%; width: 460px; transform: translate(-50%, -50%); background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.wdlg b { display: block; font-size: 18px; } .wdlg p { color: var(--muted); margin: 8px 0 18px; } .wdlg .wact { justify-content: flex-start; }
.shx { position: absolute; top: 14px; left: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; }
.shx svg { width: 16px; height: 16px; }

/* the Bank of Palestine transfer e-notice (the receipt image parents upload) */
.bop { background: #fff; color: #111; border: 2px dashed #9C1C6B; border-radius: 4px; padding: 14px 16px 10px; font-family: 'Segoe UI', Tahoma, var(--f-ar); text-align: right; direction: rtl; }
.bop h4 { margin: 0 0 8px; color: #A5156B; font-size: 19px; line-height: 1.35; font-weight: 800; }
.bop em { display: block; font-style: normal; color: #A5156B; font-weight: 700; font-size: 14px; margin-top: 8px; }
.bop p { margin: 4px 0; font-size: 14px; } .bop b { display: block; font-size: 17px; margin: 2px 0 6px; }
.bop hr { border: 0; border-top: 1px solid #ddd; margin: 8px 0; }
.bop dl { margin: 0; } .bop dl div { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; } .bop dt { order: 1; } .bop dd { margin: 0; order: 2; }
.bop.sm { padding: 8px 10px 6px; border-width: 1.5px; } .bop.sm h4 { font-size: 12px; margin-bottom: 4px; } .bop.sm em { font-size: 10px; margin-top: 4px; }
.bop.sm p { font-size: 10px; margin: 2px 0; } .bop.sm b { font-size: 11px; margin: 0 0 3px; } .bop.sm dl div { font-size: 9px; padding: 1px 0; } .bop.sm hr { margin: 4px 0; }
/* canteen menu photos */
.device-ui .mimg { display: block; object-fit: cover; }
.device-ui .an-ta.an-photo { padding: 0; overflow: hidden; background: #F3EFE6 !important; }
.device-ui .an-ta.an-photo .mimg { width: 100%; height: 100%; }
.device-ui .an-ta.an-photo.off .mimg { filter: grayscale(1) opacity(.55); }
.device-ui .st-mi { width: 54px; height: 54px; border-radius: 14px; flex: none; margin-inline-end: 10px; }
.device-ui .stn-blocked .st-mi { filter: grayscale(1) opacity(.5); }
.device-ui .fm-mi { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 6px; }
.device-ui .fm-mt.bl .fm-mi { filter: grayscale(1) opacity(.5); }
