/* ===== App chrome shared by all pages (WP-0). Taken from the mocks' page styles; `.btn`, `.chip`, `.card`
   and the sheet typography live in tokens.css (copied from mocks/shared/tokens.css). Layout classes on <body>:
   .l-student (phone-first), .l-admin (laptop-first), .l-phone (teacher's phone column). ===== */

.i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i *{vector-effect:non-scaling-stroke}
.chip .i{width:14px;height:14px}
[hidden]{display:none !important}

/* ---------- top bar: logo left, "me" right (mocks/student/tests.html, mocks/admin/tests.html) ---------- */
.wrap{max-width:480px;margin:0 auto;padding:0 20px}
.top{display:flex;align-items:center;justify-content:space-between;height:68px;position:relative}
.logo{display:block;height:22px;width:auto}
.me{display:flex;align-items:center;gap:10px;border:0;background:none;padding:4px 0 4px 8px;cursor:pointer;font-size:13px;color:var(--ink-3)}
.me b{font-weight:300;color:var(--ink-2)}
.ava{width:30px;height:30px;border-radius:50%;background:var(--paper-2);display:grid;place-items:center;font-size:11px;font-weight:500;color:var(--ink-2);letter-spacing:.02em;flex:none}
.menu{position:absolute;right:20px;top:60px;z-index:5;background:var(--paper);border:1px solid var(--line-2);border-radius:var(--radius);padding:4px;min-width:140px}
.menu a,.menu button{display:flex;align-items:center;gap:10px;width:100%;height:40px;padding:0 12px;border:0;background:none;border-radius:var(--radius-s);font-size:14px;font-weight:500;cursor:pointer;text-align:left}
.menu a:hover,.menu button:hover{background:var(--paper-2)}

/* admin header: «Банк» next to the logo (mocks/admin/bank.html) */
.nav{display:flex;align-items:center;gap:32px}
.nav__a{position:relative;padding:6px 0;font-size:15px;font-weight:500;color:var(--ink-3);transition:color .12s}
.nav__a:hover,.nav__a.is-on{color:var(--ink)}
.nav__a.is-on::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;border-radius:1px;background:var(--yellow)}
@media (max-width:859px){.nav{gap:20px}.nav__a{font-size:14px}}

/* laptop */
@media (min-width:860px){
  .l-student .wrap{max-width:1180px;padding:0 40px}
  .l-student .top{height:96px}
  .l-student .logo{height:26px}
  .l-student .me{font-size:14px;gap:12px}
  .l-student .ava{width:36px;height:36px;font-size:12px}
  .l-student .menu{right:40px;top:78px}
}

/* admin: laptop-first */
.l-admin .wrap{max-width:1180px;padding:0 40px}
.l-admin .top{height:96px}
.l-admin .logo{height:26px}
.l-admin .me{gap:12px;font-size:14px;color:var(--ink-2)}
.l-admin .ava{width:36px;height:36px;font-size:12px}
.l-admin .menu{right:40px;top:78px;min-width:160px}
@media (max-width:859px){
  .l-admin .wrap{padding:0 16px}
  .l-admin .top{height:68px}
  .l-admin .logo{height:22px}
  .l-admin .me b{display:none}
  .l-admin .ava{width:32px;height:32px}
  .l-admin .menu{right:16px;top:56px}
}

/* teacher's phone (mocks/admin/phone--students.html) */
.l-phone{max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.l-phone .top{display:block;height:auto;padding:16px 20px 6px}
.l-phone .logo{height:18px}
.l-phone .t-title{font-family:var(--font-serif);font-weight:400;font-size:24px;line-height:1.2;margin:18px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- status dot + pulse (admin lists), timer ---------- */
.pulse{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--yellow-2)}
.pulse::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--yellow);animation:pulse 1.6s ease-out infinite}
@keyframes pulse{from{transform:scale(1);opacity:.9}to{transform:scale(3);opacity:0}}
.dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--ink-4)}
.timer{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.pulse::after{animation:none}}

/* ---------- placeholder page of a not-yet-implemented screen (501) ---------- */
.stub{display:grid;place-items:center;min-height:50vh;color:var(--ink-4);font-size:14px;text-align:center}
.stub b{display:block;font-family:var(--font-serif);font-weight:400;font-size:40px;color:var(--ink-3);margin-bottom:8px}
