/* Bellmeir · Features explorer scenes (xp-acts.js). Every screen is drawn at a
   fixed design size (a monitor's UI at 520px wide, a phone's at 280px) and scaled
   to its device; the whole room is scaled to the stage. */
.xq-room { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: 50% 50%; }
.xq-svg { position: absolute; inset: 0; display: block; overflow: visible; }
.xq-dev { position: absolute; z-index: 2; background: var(--ink); box-shadow: 0 34px 60px -30px rgba(31, 43, 77, .6); }
.xq-dev.mon { border-radius: 20px; padding: 12px; }
.xq-dev.xq-ph { border-radius: 40px; padding: 11px; }
.xq-scr { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 9px; background: #F5F6F8; }
.xq-dev.xq-ph .xq-scr { border-radius: 30px; background: #fff; }
.xq-fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ---------- the portal ---------- */
.xq { position: relative; width: 100%; height: 100%; font-family: var(--ft); color: var(--ink); background: #F5F6F8; overflow: hidden; }
.xq-top { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); font: 700 12.5px/1 var(--fd); }
.xq-top img { border-radius: 5px; }
.xq-tm { margin-left: auto; font: 600 12px/1 var(--ft); color: var(--ink5); position: relative; }
.xq-av { width: 22px; height: 22px; border-radius: 50%; background: var(--mb); color: var(--mc); display: grid; place-items: center; font: 800 9.5px/1 var(--fd); font-style: normal; }
.xq-row { display: flex; height: calc(100% - 32px); }
.xq-dock { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; background: #fff; border-right: 1px solid var(--line); }
.xq-dock i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--ink4); }
.xq-dock i.on { background: var(--mb); color: var(--mc); }
.xq-dock svg { width: 15px; height: 15px; }
.xq-main { flex: 1; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.xq-h { display: flex; align-items: center; gap: 10px; }
.xq-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--mb); color: var(--mc); display: grid; place-items: center; flex: none; }
.xq-ic svg { width: 18px; height: 18px; }
.xq-ht { min-width: 0; flex: 1; }
.xq-ht h4 { font: 800 17px/1.15 var(--fd); letter-spacing: -.02em; color: var(--ink); }
.xq-ht p { font: 500 12px/1.3 var(--ft); color: var(--ink5); margin-top: 2px; }
.xq-pn { background: #fff; border-radius: 13px; box-shadow: 0 1px 2px rgba(31, 43, 77, .06); padding: 11px; }
.xq-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font: 700 11.5px/1 var(--fd); white-space: nowrap; }
.xq-pill.ok { background: #DFF4EE; color: #0F6B57; }
.xq-pill.mute { background: #EEF0F4; color: var(--ink5); }
.xq-pill.info { background: #E3F2FD; color: #125E9C; }
.xq-pill.warn { background: #FFF3D6; color: #8A6200; }
.xq-pill.bad { background: #FEE9E7; color: #B3271A; }
.xq-sts { position: relative; display: inline-grid; }
.xq-sts > .xq-s { grid-area: 1 / 1; white-space: nowrap; }
.xq-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--line); font-size: 13px; }
.xq-ft .mu { color: var(--ink5); font-weight: 600; }
.xq-ft b { font: 800 14px/1 var(--fd); }
.xq-btns { display: flex; gap: 6px; }
.xq-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 13px; border-radius: 10px; font: 700 12.5px/1 var(--fd); white-space: nowrap; transition: background-color .3s, color .3s; }
.xq-btn.gh { background: #fff; color: #0F6B57; box-shadow: inset 0 0 0 1.5px #9ED9C9; }
.xq-btn.teal { background: #0F6B57; color: #fff; }
.xq-btn.teal.xq-done { background: #DFF4EE; color: #0F6B57; }
.xq-btn.grape { background: #7445E0; color: #fff; }
.xq-cur { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(31, 43, 77, .3)); }
.xq-ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(43, 179, 154, .4); opacity: 0; z-index: 29; pointer-events: none; }
.xq-tag { position: absolute; left: 0; top: 0; translate: -50% -100%; z-index: 25; padding: 6px 10px; border-radius: 9px; background: var(--ink); color: #fff; font: 700 11.5px/1 var(--fd); white-space: nowrap; }
.xq-tag::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }

/* the register */
.xq-tiles { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.xq-t { position: relative; height: 42px; border-radius: 9px; border: 1.5px dashed rgba(31, 43, 77, .22); background: #fff; display: grid; place-items: center; font-style: normal; }
.xq-t small { position: absolute; left: 4px; top: 3px; font: 600 8.5px/1 var(--ft); color: var(--ink4); }
.xq-t b { font: 800 15px/1 var(--fd); }
.xq-t.pr { border: 0; background: #DFF4EE; }
.xq-t.pr b { color: #0F6B57; }
.xq-t.pr small { color: #4F9C88; }
.xq-t.ab { border: 0; background: #F4756B; }
.xq-t.ab b, .xq-t.ab small { color: #fff; }
.xq-brd { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.xq-brd-n { display: inline-flex; align-items: baseline; gap: 4px; font: 800 24px/1 var(--fd); letter-spacing: -.03em; }
.xq-brd-n small { font: 600 12px/1 var(--fd); color: var(--ink5); letter-spacing: 0; }
.xq-brd-t b { display: block; font: 700 13px/1.2 var(--fd); }
.xq-brd-t small { font-size: 11.5px; color: var(--ink5); }
.xq-bar { position: relative; flex: 1; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.xq-bar i { position: absolute; inset: 0; background: var(--teal); border-radius: inherit; transform-origin: 0 50%; }

/* marks */
.xq-mk { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 9px; }
.xq-tbl { padding: 6px 10px; position: relative; }
.xq-mr { display: grid; grid-template-columns: 30px minmax(0, 1fr) 96px 62px; align-items: center; gap: 6px; height: 34px; border-bottom: 1px solid var(--line); font-size: 13px; }
.xq-mr:last-of-type { border-bottom: 0; }
.xq-mr.hd { height: 26px; font: 700 10.5px/1 var(--fd); color: var(--ink5); text-transform: uppercase; letter-spacing: .03em; }
.xq-mr .n { color: var(--ink5); font-weight: 600; }
.xq-mr .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xq-in { position: relative; display: flex; align-items: center; height: 28px; padding: 0 9px; border-radius: 8px; background: #F7F8FA; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14px/1 var(--fd); transition: box-shadow .2s, background-color .2s; }
.xq-in.bad { background: #FEF1EF; box-shadow: inset 0 0 0 1.5px #F4756B; color: #B3271A; }
.xq-car { display: inline-block; width: 2px; height: 16px; margin-left: 1px; background: var(--mc, var(--ink)); opacity: 0; animation: xqblink 1s steps(1) infinite; }
@keyframes xqblink { 50% { visibility: hidden; } }
.xq-abs { position: absolute; right: 4px; top: 4px; padding: 0 6px; height: 20px; display: grid; place-items: center; border-radius: 6px; font: 700 10px/1 var(--fd); color: var(--ink5); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.xq-abs.on { background: var(--ink); color: #fff; box-shadow: none; }
.xq-g { display: flex; }
.xq-err { display: inline-block; margin: 6px 0 2px; padding: 6px 9px; border-radius: 8px; background: #FEE9E7; color: #B3271A; font: 700 11.5px/1 var(--fd); }
.xq-lad { padding: 9px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.xq-lad b { font: 700 11px/1.2 var(--fd); color: var(--ink5); margin-bottom: 2px; }
.xq-lad span { display: flex; align-items: center; gap: 6px; padding: 3px 4px; white-space: nowrap; border-radius: 7px; color: var(--ink7); }
.xq-lad i { width: 24px; text-align: center; padding: 3px 0; border-radius: 6px; background: #EDE7FB; color: #7445E0; font: 800 10px/1 var(--fd); font-style: normal; }

/* timetable */
.xq-tt { display: grid; grid-template-columns: 30px repeat(6, 1fr); gap: 4px; padding: 9px; perspective: 600px; }
.xq-dh, .xq-ph { font: 700 10.5px/1 var(--fd); color: var(--ink5); display: grid; place-items: center; height: 18px; }
.xq-dh.today { color: #125E9C; }
.xq-ph { height: auto; }
.xq-c { height: 33px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; padding: 0 6px; font-size: 10px; line-height: 1.1; background: #F7F8FA; }
.xq-c b { font: 800 11.5px/1.1 var(--fd); }
.xq-c small { font-size: 9.5px; color: var(--ink5); }
.xq-c.free { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.xq-c.free small { color: var(--ink4); }
.xq-c.cVA { background: #DFF4EE; } .xq-c.cVIB { background: #E3F2FD; } .xq-c.cVIIA { background: #EDE7FB; }
.xq-c.today { outline: 1.5px solid rgba(59, 163, 240, .35); outline-offset: 0; }
.xq-c.now { background: #3BA3F0; } .xq-c.now b, .xq-c.now small { color: #fff; }
.xq-c.cov.on { background: #FFC93C; box-shadow: none; } .xq-c.cov.on small { color: var(--ink); }
.xq-note { position: absolute; right: 10px; top: 40px; z-index: 20; width: 236px; display: flex; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(31, 43, 77, .08), 0 18px 36px -16px rgba(31, 43, 77, .45); }
.xq-note b { display: block; font: 800 13px/1.2 var(--fd); }
.xq-note span { display: block; font-size: 12px; line-height: 1.35; color: var(--ink7); margin-top: 2px; }
.xq-note small { display: block; font-size: 10.5px; color: var(--ink5); margin-top: 4px; }
.xq-ni { width: 30px; height: 30px; border-radius: 10px; background: #FFF3D6; color: #8A6200; display: grid; place-items: center; flex: none; }
.xq-ni svg { width: 16px; height: 16px; }
.xq-note.ok .xq-ni { background: #DFF4EE; color: #0F6B57; }

/* lesson plan */
.xq-form { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.xq-form label { font: 700 11.5px/1 var(--fd); color: var(--ink5); }
.xq-in.wide { font: 600 13px/1 var(--ft); }
.xq-txt { font-size: 12.5px; line-height: 1.4; color: var(--ink7); padding: 6px 9px; border-radius: 8px; background: #F7F8FA; }
.xq-rmk { flex: 1; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--ink7); padding: 7px 10px; border-radius: 10px; background: #DFF4EE; }
.xq-rmk b { display: block; font: 700 10.5px/1.2 var(--fd); color: #0F6B57; margin-bottom: 2px; }

/* the phone app */
.xq-app { background: #fff; padding: 0 14px; }
.xq-sb { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 0 8px; font: 700 12px/1 var(--fd); }
.xq-sig { display: flex; gap: 2px; align-items: flex-end; }
.xq-sig i { width: 3px; border-radius: 1px; background: var(--ink5); }
.xq-sig i:nth-child(1) { height: 5px; } .xq-sig i:nth-child(2) { height: 8px; } .xq-sig i:nth-child(3) { height: 11px; }
.xq-ah { padding: 8px 2px 12px; }
.xq-ah small { display: block; font: 600 12px/1.2 var(--ft); color: var(--ink5); }
.xq-ah b { display: block; font: 800 21px/1.15 var(--fd); letter-spacing: -.02em; margin-top: 3px; }
.xq-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #F1F3F6; margin-bottom: 14px; }
.xq-seg span { position: relative; z-index: 1; text-align: center; padding: 8px 0; font: 700 13px/1 var(--fd); color: var(--ink5); transition: color .3s; }
.xq-seg span.on { color: var(--ink); }
.xq-seg i { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(31, 43, 77, .12); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.xq-seg.r i { transform: translateX(100%); }
.xq-views { display: flex; width: calc(200% + 28px); margin: 0 -14px; }
.xq-v { width: 50%; flex: none; display: flex; flex-direction: column; gap: 9px; padding: 0 14px; }
.xq-prog { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: #F5F6F8; font: 700 13px/1 var(--fd); margin-bottom: 4px; }
.xq-tp { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/1.25 var(--ft); }
.xq-ck { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; font-style: normal; }
.xq-ck svg { width: 14px; height: 14px; }
.xq-tp.xq-done .xq-ck { background: var(--teal); box-shadow: none; color: var(--ink); }
.xq-tp.xq-done span { color: var(--ink5); }
.xq-v.xq-dyv label { font: 700 11.5px/1 var(--fd); color: var(--ink5); margin-top: 4px; }
.xq-v.xq-dyv .xq-in { height: auto; min-height: 38px; padding: 9px 10px; font: 600 13px/1.35 var(--ft); flex-wrap: wrap; }
.xq-v.xq-dyv .xq-in.area { min-height: 64px; align-items: flex-start; }
.xq-v.xq-dyv .xq-pill { width: fit-content; }
.xq-btn.send { height: 44px; margin-top: 10px; border-radius: 13px; font-size: 14px; }
.xq-toast { position: absolute; left: 14px; right: 14px; bottom: 26px; z-index: 20; display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-radius: 14px; background: var(--ink); color: #fff; font: 700 13px/1.25 var(--fd); }
.xq-toast i { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--ink); display: grid; place-items: center; flex: none; }
.xq-toast svg { width: 13px; height: 13px; }

/* the stage's replay button */
.xp-replay { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--sh1); font: 700 13px/1 var(--fd); color: var(--ink); cursor: pointer; }
.xp-replay svg { width: 15px; height: 15px; }
.xp-replay[hidden] { display: none; }
/* a narrow stage holds the phone at its right edge: the button moves to the floor on the left */
.xp-stage { container-type: inline-size; }
@container (max-width: 619px) { .xp-replay { right: auto; left: 10px; bottom: 10px; height: 32px; padding: 0 11px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .xq-car { animation: none; } .xp-replay { display: none; } }

/* ---------- shared screen pieces (BM.XQ.kit) ---------- */
.xq-rows { display: grid; gap: 5px; }
.xq-rw { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; padding: 7px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; transition: box-shadow .3s, background-color .3s; }
.xq-rw .l { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xq-rw .l small { display: block; font-weight: 500; font-size: 11px; color: var(--ink5); margin-top: 1px; }
.xq-rw .r { display: flex; align-items: center; gap: 6px; flex: none; color: var(--ink5); font-size: 12px; }
.xq-rw .r b { color: var(--ink); font: 700 12.5px/1 var(--fd); }
.xq-rw.hl { box-shadow: inset 0 0 0 2px var(--mc); background: var(--mb); }
.xq-rw.mute { opacity: .55; }
.xq-in .xq-phd { position: absolute; left: 10px; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--ink4); pointer-events: none; white-space: nowrap; }
.xq-search { gap: 8px; color: var(--ink5); }
.xq-search svg { width: 15px; height: 15px; flex: none; }
.xq-search .xq-phd { left: 32px; }
.xq-search .v { color: var(--ink); }
.xq-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(31, 43, 77, .3); opacity: 0; }
.xq-mb { width: 300px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -20px rgba(31, 43, 77, .55); }
.xq-mb > b { display: block; font: 800 15px/1.25 var(--fd); }
.xq-mb > p { font-size: 12.5px; line-height: 1.45; color: var(--ink7); margin: 6px 0 12px; }
.xq-mb .xq-btns { justify-content: flex-end; }
.xq-toast2 { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 35; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: var(--ink); color: #fff; font: 700 12.5px/1.2 var(--fd); white-space: nowrap; opacity: 0; }
.xq-toast2 i { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: var(--ink); display: grid; place-items: center; flex: none; }
.xq-toast2 svg { width: 12px; height: 12px; }
.xq-banner { position: absolute; left: 10px; right: 10px; top: 42px; z-index: 30; padding: 11px 12px; border-radius: 16px; background: rgba(255, 255, 255, .98); box-shadow: 0 2px 4px rgba(31, 43, 77, .08), 0 16px 30px -14px rgba(31, 43, 77, .5); opacity: 0; }
.xq-banner .top { display: flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--ft); color: var(--ink5); margin-bottom: 6px; }
.xq-banner .top img { width: 16px; height: 16px; border-radius: 4px; }
.xq-banner b { display: block; font: 800 13.5px/1.25 var(--fd); }
.xq-banner span { display: block; font-size: 11.5px; color: var(--ink5); margin-top: 2px; }
.xq-banner .xq-btns { margin-top: 10px; }
.xq-banner .xq-btns .xq-btn { flex: 1; height: 34px; }
.xq-pill svg { width: 13px; height: 13px; flex: none; }
.xq-banner .xq-pill { display: flex; margin-top: 0; font-size: 12.5px; }
.xq-kpi { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(31, 43, 77, .06); }
.xq-kpi small { font: 600 11px/1.2 var(--ft); color: var(--ink5); }
.xq-kpi b { font: 800 22px/1 var(--fd); letter-spacing: -.03em; }
.xq-kpi > span { font-size: 11px; color: var(--ink5); }
.xq-map { display: block; border-radius: 14px; overflow: hidden; }
.xq-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xq-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xq-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.xq-grid4 .xq-kpi b { font-size: 19px; }
.xq-btn.coral { background: #B3271A; color: #fff; }
.xq-btn.navy { background: var(--ink); color: #fff; }
.xq-btn.amber { background: #FFF3D6; color: #8A6200; box-shadow: inset 0 0 0 1.5px #F2D58A; }
.xq-btn.xq-sm { height: 24px; padding: 0 9px; font-size: 11px; border-radius: 8px; }
.xq-btn.off { opacity: .45; }
.xq-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #F1F3F6; font: 700 11.5px/1 var(--fd); color: var(--ink7); white-space: nowrap; }
.xq-chip.on { background: var(--ink); color: #fff; }
.xq-stamp { position: absolute; z-index: 32; padding: 6px 14px; border: 3px solid #0F6B57; border-radius: 10px; color: #0F6B57; font: 900 18px/1 var(--fd); letter-spacing: .06em; transform: rotate(-10deg); opacity: 0; background: rgba(255, 255, 255, .7); }
.xq-doc { position: absolute; z-index: 30; left: 50%; top: 50%; width: 230px; translate: -50% -50%; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -20px rgba(31, 43, 77, .55); font-size: 11.5px; opacity: 0; }
.xq-doc h5 { font: 800 13px/1.2 var(--fd); margin-bottom: 8px; }
.xq-doc .dl { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--ink7); }
.xq-doc .dl b { color: var(--ink); }
.xq-ttl { font: 800 13px/1.2 var(--fd); color: var(--ink); }
.xq-sub { font: 500 11.5px/1.3 var(--ft); color: var(--ink5); }
.xq-pv { position: relative; }

/* ---------- office scenes (xp-acts-office.js) ---------- */
.xq label { display: block; font: 700 11px/1 var(--fd); color: var(--ink5); margin: 4px 0 5px; }
.xq .xq-pn > label:first-child { margin-top: 0; }
.xq-tabs { display: flex; gap: 6px; }
.xq-tabs.xq-sm .xq-chip { padding: 4px 8px; font-size: 10.5px; }
.xq-pv { position: relative; }
.xq-vb { position: absolute; left: 0; right: 0; top: 0; }
.xq-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xq-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.xq-chip.on { background: var(--ink); color: #fff; }
.xq-eq .xq-grid2 { margin-bottom: 4px; }
.xq-eq .xq-in { height: 30px; font: 600 13px/1 var(--ft); }
.xq-rw.new .r .xq-btn { height: 24px; }
.xq-green { color: #0F6B57 !important; }
.xq-rw.hid .l { color: var(--ink5); }

/* admissions board */
.xq-board { display: grid; grid-template-columns: 1.15fr 1fr 0.85fr; gap: 8px; }
.xq-col { display: flex; flex-direction: column; gap: 7px; padding: 9px; border-radius: 12px; background: #EDF0F4; min-height: 210px; }
.xq-col > b { font: 700 11px/1 var(--fd); color: var(--ink5); text-transform: uppercase; letter-spacing: .04em; }
.xq-card { padding: 10px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(31, 43, 77, .1); display: flex; flex-direction: column; gap: 6px; }
.xq-card.xq-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px dashed var(--line); border: 1.5px dashed #CFD5E0; }
.xq-cks { display: grid; gap: 4px; }
.xq-cks span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink5); }
.xq-cks svg { width: 14px; height: 14px; padding: 2px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; flex: none; }
.xq-cks span.on { color: var(--ink); }
.xq-cks span.on svg { background: var(--teal); box-shadow: none; color: var(--ink); }
.xq-card .xq-btn { align-self: flex-start; }

/* principal: classes on the board */
.xq-kpi b small { font: 600 12px/1 var(--fd); color: var(--ink5); letter-spacing: 0; }
.xq-cls { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.xq-cls span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; border-radius: 8px; background: #DFF4EE; color: #0F6B57; }
.xq-cls b { font: 800 10.5px/1 var(--fd); }
.xq-cls small { font-size: 9px; font-weight: 600; }
.xq-cls span.nm { background: #EEF0F4; color: var(--ink5); }
.xq-pv .xq-dd { position: absolute; right: 0; top: 40px; z-index: 12; width: 250px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 18px 36px -14px rgba(31, 43, 77, .45); }
.xq-dn { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; background: #FFF8E8; }
.xq-dots { display: inline-flex; gap: 4px; margin-left: 6px; align-items: center; }
.xq-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.xq-dots i.d5 { background: #E3E7EF; }
.xq-dots i.d5.on { background: var(--teal); }
.xq .xq-pn .xq-in { margin-top: 6px; }
.xq-seat { font: 600 12px/1 var(--ft); color: var(--ink5); white-space: nowrap; }
.xq-seat b { font: 800 18px/1 var(--fd); color: var(--ink); margin-right: 3px; }

/* accounts */
.xq-mk2 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 9px; }
.xq-slip .dl, .xq-doc .dl { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; color: var(--ink7); }
.xq-slip .dl b { color: var(--ink); font-weight: 700; }
.xq-slip .dl.mu2 b { color: var(--ink5); font-weight: 600; }
.xq-slip .dl.net { border-bottom: 0; font-weight: 700; color: var(--ink); }
.xq-slip .dl.net b { font: 800 14px/1 var(--fd); }
.xq-slip .xq-ttl { margin-bottom: 4px; }
.xq-hist { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.xq-hist span { display: block; font: 700 10.5px/1 var(--fd); color: var(--ink5); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.xq-hist p { font-size: 11.5px; color: var(--ink7); line-height: 1.4; }
.xq-doc .xq-stamp { position: absolute; }

/* infirmary and library */
.xq-hp { flex: none; }
.xq-hp .xq-rw .xq-sts { justify-items: end; }
.xq-pick { margin: 6px 0 4px; }
.xq-search { margin-top: 0; }

/* owner */
.xq-bar.big { display: block; height: 10px; margin-top: 8px; }
.xq-bar.big i { background: var(--tang); }
.xq-seats { display: grid; gap: 9px; }
.xq-srow { display: grid; grid-template-columns: 70px 1fr 150px; align-items: center; gap: 10px; }
.xq-srow .xq-bar i { background: #3BA3F0; }
.xq-admv { display: grid; margin-top: 8px; }
.xq-admv > * { grid-area: 1 / 1; align-self: start; }
.xq-admv .xq-pipe { margin-top: 0; }
.xq-wlh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.xq-srow { border-radius: 9px; padding: 3px 5px; margin: -3px -5px; transition: background-color .3s, box-shadow .3s; }
.xq-srow.hl { background: var(--mb); box-shadow: inset 0 0 0 2px var(--mc); }
.xq-pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 8px; }
.xq-pipe span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(31, 43, 77, .06); }
.xq-pipe b { font: 800 18px/1 var(--fd); }
.xq-pipe small { font-size: 9.5px; color: var(--ink5); font-weight: 600; }
.xq-ph2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.xq-ph2 > i { width: 36px; height: 36px; border-radius: 50%; background: #E3F2FD; color: #125E9C; display: grid; place-items: center; font: 800 13px/1 var(--fd); font-style: normal; }
.xq-drop { position: absolute; left: 0; right: 0; top: 34px; z-index: 12; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 18px 36px -14px rgba(31, 43, 77, .45); }
.xq-prof { margin-top: 8px; }

/* ---------- phone scenes (xp-acts-family.js) ---------- */
.xq-app .xq-rows { gap: 6px; }
.xq-app .xq-rw { min-height: 42px; padding: 9px 11px; border-radius: 13px; font-size: 13px; }
.xq-btn.xq-wide { display: flex; width: 100%; height: 46px; margin-top: 12px; border-radius: 14px; font-size: 14px; }
.xq-lab { font: 700 11.5px/1 var(--fd); color: var(--ink5); text-transform: uppercase; letter-spacing: .04em; margin: 14px 2px 8px; }
.xq-start { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 128px; border-radius: 22px; background: #FFC93C; color: var(--ink); box-shadow: inset 0 -5px 0 rgba(138, 98, 0, .2); transition: background-color .4s; }
.xq-start .lab { font: 800 24px/1 var(--fd); letter-spacing: -.02em; }
.xq-start small { font: 600 12.5px/1 var(--ft); color: #6B5200; }
.xq-start.on { background: #DFF4EE; box-shadow: inset 0 0 0 2px #9ED9C9; }
.xq-live { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #DFF4EE; font: 700 12.5px/1.2 var(--fd); color: #0F6B57; }
.xq-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.xq-views2 { position: relative; }
.xq-v2 { position: absolute; left: 0; right: 0; top: 0; }
.xq-mapw { border-radius: 16px; overflow: hidden; height: 300px; box-shadow: inset 0 0 0 1px var(--line); }
.xq-mapw.tall { height: 520px; margin-top: 4px; }
.xq-mapw svg { display: block; width: 100%; height: 100%; }
.xq-navbar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.xq-navbar b { font: 800 14px/1.2 var(--fd); }
.xq-navbar span { font: 600 12px/1 var(--ft); color: #9FB0D6; }
.xq-chipbar { position: absolute; left: 14px; right: 14px; top: 44px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(31, 43, 77, .92); color: #fff; font: 700 12px/1 var(--fd); opacity: 0; }
.xq-chipbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.xq-net { position: absolute; left: 14px; right: 14px; bottom: 26px; z-index: 20; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 16px 30px -14px rgba(31, 43, 77, .5); font: 700 12.5px/1.25 var(--fd); }
.xq-net .xq-s { display: flex; align-items: center; gap: 8px; }
.xq-net i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.xq-net i.w { background: #F2B83A; } .xq-net i.g { background: var(--teal); }
.xq-om { margin-top: 10px; background: #FFF8E8; box-shadow: inset 0 0 0 1.5px #F2D58A; overflow: hidden; }
.xq-om .xq-btns { margin-top: 10px; }
.xq-om .xq-btn { flex: 1; height: 38px; }
.xq-sos { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
.xq-sos .sb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #E25B50; color: #fff; font: 900 22px/1 var(--fd); letter-spacing: .06em; box-shadow: 0 0 0 10px rgba(244, 117, 107, .18), inset 0 -5px 0 rgba(0, 0, 0, .12); }
.xq-sos small { font: 600 12px/1.3 var(--ft); color: var(--ink5); text-align: center; }
.xq-mapc { position: relative; }
.xq-mapc .xq-mapw { height: 240px; }
.xq-st { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: 13px; background: #fff; box-shadow: 0 10px 24px -12px rgba(31, 43, 77, .45); }
.xq-st .xq-sts { font: 800 17px/1.1 var(--fd); }
.xq-st small { display: block; font: 600 11.5px/1 var(--ft); color: var(--ink5); margin-top: 4px; }
.xq-mapc + .xq-rows { margin-top: 12px; }
.xq-lock { display: flex; flex-direction: column; align-items: center; padding: 34px 0 26px; }
.xq-lock > b { font: 800 64px/1 var(--fd); letter-spacing: -.04em; }
.xq-lock small { font: 600 14px/1 var(--ft); color: var(--ink5); margin-top: 8px; }
.xq-notes { display: grid; gap: 10px; }
.xq-nt { padding: 12px 13px; border-radius: 16px; background: #F3F4F7; }
.xq-nt .top { display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--ft); color: var(--ink5); margin-bottom: 6px; }
.xq-nt .top img { width: 16px; height: 16px; border-radius: 4px; }
.xq-nt b { display: block; font: 800 14px/1.25 var(--fd); }
.xq-nt span { display: block; font-size: 12px; color: var(--ink5); margin-top: 2px; }
.xq-nt.n1, .xq-nt.n2 { opacity: 0; }
.xq-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xq-slots span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 0; border-radius: 13px; box-shadow: inset 0 0 0 1.5px var(--line); font: 800 15px/1 var(--fd); transition: background-color .3s, color .3s; }
.xq-slots span small { font: 600 10.5px/1 var(--ft); color: var(--ink4); }
.xq-slots span.off { color: var(--ink4); background: #F3F4F7; box-shadow: none; }
.xq-slots span.on { background: var(--ink); color: #fff; box-shadow: none; }
.xq-kids { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: #F1F3F6; margin: 8px 0 14px; }
.xq-kids span { position: relative; z-index: 1; text-align: center; padding: 10px 0; font: 700 13px/1 var(--fd); color: var(--ink5); transition: color .3s; }
.xq-kids span.on { color: var(--ink); }
.xq-kids i { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(31, 43, 77, .14); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.xq-kids.r i { transform: translateX(100%); }
.xq-due { display: flex; flex-direction: column; gap: 4px; background: #FFF8E8; box-shadow: inset 0 0 0 1.5px #F2D58A; padding: 14px; }
.xq-due small { font: 700 11px/1 var(--fd); color: #8A6200; text-transform: uppercase; letter-spacing: .04em; }
.xq-due b { font: 800 28px/1 var(--fd); letter-spacing: -.03em; }
.xq-due span { font-size: 12.5px; color: var(--ink7); }
.xq-hwd > span { display: block; font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
.xq-add { position: relative; display: grid; place-items: center; height: 170px; border-radius: 14px; border: 2px dashed #CFD5E0; }
.xq-add .plus { font: 700 14px/1 var(--fd); color: var(--ink5); }
.xq-photo { position: absolute; inset: 10px; border-radius: 10px; background: #FFFDF6; box-shadow: 0 6px 16px -8px rgba(31, 43, 77, .4); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 16px; transform: rotate(-2deg); }
.xq-photo i { display: block; height: 3px; border-radius: 2px; background: #7DA7D9; }
.xq-photo i:nth-child(2) { width: 80%; } .xq-photo i:nth-child(3) { width: 65%; } .xq-photo i:nth-child(4) { width: 72%; }
.xq-bars { display: grid; gap: 12px; padding: 14px; }
.xq-bars > div { display: grid; grid-template-columns: 62px 1fr 30px; align-items: center; gap: 8px; font: 600 12.5px/1 var(--ft); }
.xq-bars i { height: 10px; border-radius: 6px; background: #EEF0F4; overflow: hidden; }
.xq-bars i b { display: block; height: 100%; border-radius: inherit; background: var(--teal); transform-origin: 0 50%; }
.xq-bars em { font: 800 13px/1 var(--fd); font-style: normal; text-align: right; }
.xq-bars > .xq-ovr, .xq-ovr { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); font: 700 13px/1 var(--fd); }
.xq-ovr b { font: 800 22px/1 var(--fd); color: #0F6B57; }
.xq-app .xq-doc { width: 220px; }
.xq-app .xq-doc.xrc { top: auto; bottom: 18px; translate: -50% 0; }
