/* NBS notifications: Dynaura's light island, in the site's colours and font (navy text, Inter).
   Only colours, the font and the content of our rich cards are set here: the shape, sizes and
   every movement stay Dynaura's own (lib/dynaura/dynaura.css). */
.dynaura-root[data-theme="light"]{
  --dynaura-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --dynaura-bg: #ffffff;
  --dynaura-fg: #05143F;
  --dynaura-muted: rgba(5, 20, 63, .62);
  --dynaura-ring: rgba(5, 20, 63, .10);
  --dynaura-btn: rgba(5, 20, 63, .07);
  --dynaura-success: #16a34a;
  --dynaura-error: #e11d48;
  --dynaura-warning: #b45309;
  --dynaura-info: #1d4ed8;
  --dynaura-loading: #05143F;
}
/* a soft shadow so the white island stands out on the light pages */
.dynaura-root[data-theme="light"] .dynaura-island{box-shadow:0 10px 30px rgba(5,20,63,.16),0 2px 6px rgba(5,20,63,.08)}

/* The loading circle never stops turning. Dynaura turns the circle INSIDE its SVG, which browsers
   animate on the page's main thread: while the site is busy drawing a timetable image or a PDF, it
   froze. Here the whole little SVG turns instead (same speed, 800 ms per turn), as a transform on
   its own layer, which the browser animates apart from the page — so it keeps turning while the page
   works. Dynaura's own file is left unchanged. */
.dynaura-badge .dynaura-spin{animation:none}
.dynaura-badge svg:has(.dynaura-spin){animation:nbs-nt-spin 800ms linear infinite;will-change:transform;transform:translateZ(0)}
@keyframes nbs-nt-spin{to{transform:translateZ(0) rotate(360deg)}}

/* Match request: a soft violet glow breathing in from the edges (never reaching the middle).
   An overlay above the island's own drawing, animated by opacity only (light for the phone). */
.dynaura-island.nbs-nt-req{position:relative}
.dynaura-island.nbs-nt-req::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 0 14px 2px rgba(139,92,246,.42),inset 0 0 0 1px rgba(139,92,246,.30);
  opacity:.25;animation:nbs-nt-breathe 2.4s ease-in-out infinite;will-change:opacity}
@keyframes nbs-nt-breathe{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.dynaura-island.nbs-nt-req::after{animation:none;opacity:.6}}
/* the player's icon: their rank */
.nbs-nt-rank{display:inline-flex;align-items:center;justify-content:center;position:relative;min-width:22px;height:22px;padding:0 3px;border-radius:999px;
  background:linear-gradient(145deg,#8b5cf6,#5b21b6);color:#fff;font-size:10.5px;font-weight:800;letter-spacing:-.02em;box-sizing:border-box}
.nbs-nt-rank.is-on::after{content:"";position:absolute;right:-2px;bottom:-2px;width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 2px #fff}

/* Two equal buttons across the card, from each edge to the middle: Accept green, Decline red
   (match request); OK green, Edit neutral (attendance). Dynaura's own press movement is kept. */
.dynaura-island.nbs-nt-req .dynaura-actions,.dynaura-island.nbs-nt-att .dynaura-actions,.dynaura-island.nbs-nt-ask .dynaura-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-inline-start:0}
.dynaura-island.nbs-nt-req .dynaura-button,.dynaura-island.nbs-nt-att .dynaura-button,.dynaura-island.nbs-nt-ask .dynaura-button{text-align:center;padding:10px 12px;font-weight:700}
.dynaura-island.nbs-nt-req .dynaura-button:not(.dynaura-secondary),.dynaura-island.nbs-nt-att .dynaura-button:not(.dynaura-secondary),.dynaura-island.nbs-nt-ask .dynaura-button:not(.dynaura-secondary){color:#15803d;background:rgba(22,163,74,.12)}
.dynaura-island.nbs-nt-req .dynaura-button:not(.dynaura-secondary):hover,.dynaura-island.nbs-nt-att .dynaura-button:not(.dynaura-secondary):hover,.dynaura-island.nbs-nt-ask .dynaura-button:not(.dynaura-secondary):hover{background:rgba(22,163,74,.20)}
.dynaura-island.nbs-nt-req .dynaura-secondary,.dynaura-island.nbs-nt-ask .dynaura-secondary{color:#be123c;background:rgba(225,29,72,.10)}
.dynaura-island.nbs-nt-req .dynaura-secondary:hover,.dynaura-island.nbs-nt-ask .dynaura-secondary:hover{background:rgba(225,29,72,.18)}
.dynaura-island.nbs-nt-att .dynaura-secondary{color:#05143F;background:rgba(5,20,63,.07)}
.dynaura-island.nbs-nt-att .dynaura-secondary:hover{background:rgba(5,20,63,.12)}

/* Attendance: the absent students, ID and name in two neat columns */
.nbs-nt-absent table{border-collapse:collapse;width:100%;font-size:13px}
.nbs-nt-absent td{padding:3px 0;border-top:1px solid rgba(5,20,63,.06);vertical-align:top}
.nbs-nt-absent tr:first-child td{border-top:0}
.nbs-nt-absent td.id{width:1%;white-space:nowrap;padding-right:12px;font-weight:800;color:var(--dynaura-muted);font-variant-numeric:tabular-nums}

/* The thin bar of folded match requests: a small violet line at the very top, over the page (it
   takes no room in it); the button around it is bigger than the line so it is easy to tap */
.nbs-nt-bar{position:fixed;top:max(4px,env(safe-area-inset-top,0px));left:50%;z-index:2147483646;
  width:96px;height:22px;margin:0;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;
  display:flex;align-items:center;justify-content:center;
  transform:translate(-50%,-140%);opacity:0;transition:transform .45s cubic-bezier(.22,1,.36,1),opacity .3s ease}
.nbs-nt-bar.on{transform:translate(-50%,0);opacity:1}
.nbs-nt-bar.now,.nbs-nt-bar.now i{transition:none}
/* the shape that carries the island into the bar and back */
.nbs-nt-ghost{position:fixed;z-index:2147483647;pointer-events:none;contain:strict}
.nbs-nt-bar i{display:block;width:64px;height:6px;border-radius:999px;background:linear-gradient(90deg,#8b5cf6,#6d28d9);
  box-shadow:0 2px 8px rgba(109,40,217,.45);animation:nbs-nt-barbeat 2.4s ease-in-out infinite}
.nbs-nt-bar:hover i,.nbs-nt-bar:focus-visible i{width:76px}
.nbs-nt-bar:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px;border-radius:999px}
@keyframes nbs-nt-barbeat{0%,100%{opacity:.75}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.nbs-nt-bar,.nbs-nt-bar i{transition:none;animation:none}}

/* Match request card */
.nbs-nt-match{display:grid;gap:3px;margin:2px 0 4px}
.nbs-nt-match p{margin:0;font-size:13px;line-height:1.4;color:var(--dynaura-fg)}
.nbs-nt-match b{display:inline-block;min-width:54px;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--dynaura-muted)}

/* Attendance: absent students */
.nbs-nt-absent{margin:2px 0 4px}
.nbs-nt-absent .nbs-nt-count{margin:0 0 4px;font-weight:800;color:var(--dynaura-error)}
.nbs-nt-absent ul{margin:0;padding:0 0 0 16px;font-size:13px;line-height:1.45}
.nbs-nt-absent .nbs-nt-more{margin:3px 0 0;font-size:12.5px;font-weight:700;color:var(--dynaura-muted)}

/* the old toast box is no longer used */
#toast{display:none !important}
/* teachers' absences: the whole list, scrolling inside the island when it is long */
.nbs-nt-scroll{max-height:190px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;
  padding-right:4px;-webkit-mask-image:linear-gradient(#000 calc(100% - 18px),transparent);mask-image:linear-gradient(#000 calc(100% - 18px),transparent)}
.nbs-nt-scroll::-webkit-scrollbar{width:4px}.nbs-nt-scroll::-webkit-scrollbar-thumb{background:rgba(5,20,63,.18);border-radius:4px}

/* A message never leaves the screen: the island, its row and its text keep a 12px margin from both
   sides of the phone, and a long text wraps onto a second line instead of running off the edge */
.dynaura-island{max-width:calc(100vw - 24px)}
.dynaura-inner,.dynaura-custom{max-width:min(380px,calc(100vw - 24px))!important}
.dynaura-row{max-width:min(380px,calc(100vw - 24px))}
.dynaura-row .dynaura-title{white-space:normal;overflow-wrap:anywhere;min-width:0;line-height:1.3}

/* The absences list scrolls by itself (a finger moving in it never drags the message) */
.nbs-nt-scroll{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
