/* Style iOS : couleurs système, listes groupées, typographie San Francisco. */
:root {
  --bg: #F2F2F7;
  --cell: #FFFFFF;
  --cell-pressed: #E5E5EA;
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.29);
  --fill: rgba(118, 118, 128, 0.12);
  --blue: #007AFF;
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  --gray: #8E8E93;
  --bar: rgba(249, 249, 249, 0.86);
  --mark: rgba(0, 122, 255, 0.14);
  --src-pronote: #34C759;
  --src-ecoledirecte: #007AFF;
  --src-one: #AF52DE;
  --src-demo: #8E8E93;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --cell: #1C1C1E; --cell-pressed: #2C2C2E; --label: #FFFFFF;
    --label-2: rgba(235, 235, 245, 0.6); --label-3: rgba(235, 235, 245, 0.3); --sep: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24); --blue: #0A84FF; --green: #30D158; --red: #FF453A; --orange: #FF9F0A;
    --bar: rgba(22, 22, 24, 0.86); --mark: rgba(10, 132, 255, 0.28);
    --src-pronote: #30D158; --src-ecoledirecte: #0A84FF; --src-one: #BF5AF2;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 17px; letter-spacing: -0.41px; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--blue); text-decoration: none; }
svg.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

main { max-width: 600px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 100px); }

/* En-tête « grand titre » */
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 0 -8px; }
.nav-btn { min-width: 44px; height: 44px; padding: 0 8px; border: none; background: none; color: var(--blue); font-size: 17px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.nav-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.spin svg { animation: spin 0.9s linear infinite; }
.nav-btn:disabled { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
h1 { margin: 2px 0 0; font-family: var(--font-display); font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.37px; }
.subtitle { color: var(--label-2); font-size: 15px; letter-spacing: -0.24px; margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot.err { background: var(--red); }
.dot.off { background: var(--gray); }

/* Contrôle segmenté */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 2px; margin: 16px 0 4px; border-radius: 9px; background: var(--fill); }
.segmented button { height: 32px; border: none; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 500; letter-spacing: -0.08px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--cell); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }
@media (prefers-color-scheme: dark) { .segmented button[aria-pressed="true"] { background: #636366; } }

/* Sections groupées */
.section-header { margin: 28px 16px 7px; font-size: 13px; letter-spacing: -0.08px; color: var(--label-2); text-transform: uppercase; display: flex; justify-content: space-between; }
.section-footer { margin: 7px 16px 0; font-size: 13px; letter-spacing: -0.08px; line-height: 18px; color: var(--label-2); }
.group { background: var(--cell); border-radius: 10px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; position: relative; color: var(--label); width: 100%; border: none; background: none; text-align: left; cursor: pointer; }
.row + .row::before, .row + .row-wrap::before, .row-wrap + .row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 16px); height: 0.5px; background: var(--sep); }
.row.has-icon { --inset: 60px; }
.row:active { background: var(--cell-pressed); }
.row.static { cursor: default; }
.row.static:active { background: none; }
.row .grow { flex: 1; min-width: 0; }
.row .value { color: var(--label-2); text-align: right; }
.row .chev { width: 14px; height: 14px; color: var(--label-3); stroke-width: 3; }
.row .check { color: var(--blue); stroke-width: 2.6; width: 18px; height: 18px; }
.row .title { font-size: 17px; }
.row .sub { font-size: 15px; color: var(--label-2); letter-spacing: -0.24px; margin-top: 1px; }
.row-wrap { position: relative; }
.tile { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex-shrink: 0; font-weight: 600; font-size: 15px; }
.tile svg { width: 18px; height: 18px; stroke-width: 2.2; }
.row select { border: none; background: none; color: var(--label-2); text-align: right; direction: rtl; font-size: 17px; max-width: 60%; appearance: none; -webkit-appearance: none; cursor: pointer; }
.row input[type="text"], .row input[type="date"], .row input[type="time"] { border: none; background: var(--fill); border-radius: 7px; padding: 5px 8px; font-size: 17px; min-width: 0; color: var(--label); }

/* Cartes d'événement */
.cards { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.card { background: var(--cell); border-radius: 12px; overflow: hidden; display: flex; }
.card-bar { width: 5px; flex-shrink: 0; }
.card-content { flex: 1; min-width: 0; }
.card-main { display: block; padding: 12px 14px 10px 12px; color: inherit; }
.card-main:active { background: var(--cell-pressed); }
.card-when { font-size: 13px; font-weight: 600; letter-spacing: -0.08px; text-transform: uppercase; color: var(--child, var(--gray)); }
.card-title { font-size: 17px; font-weight: 600; margin-top: 2px; line-height: 22px; }
.card-meta { font-size: 15px; color: var(--label-2); letter-spacing: -0.24px; margin-top: 2px; }
.card-alert { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 15px; letter-spacing: -0.24px; color: var(--orange); }
.card-alert svg { width: 17px; height: 17px; margin-top: 2px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--sep); }
.card-actions button { height: 44px; border: none; background: none; font-size: 17px; cursor: pointer; }
.card-actions button:active { background: var(--cell-pressed); }
.card-actions button + button { border-left: 0.5px solid var(--sep); }
.card-actions .ignore { color: var(--red); }
.card-actions .add { color: var(--blue); font-weight: 600; }

.empty { text-align: center; color: var(--label-2); padding: 64px 24px; font-size: 15px; line-height: 20px; }
.empty svg { width: 44px; height: 44px; color: var(--label-3); stroke-width: 1.5; margin-bottom: 12px; }
.empty strong { display: block; font-size: 20px; line-height: 25px; font-weight: 600; color: var(--label); margin-bottom: 4px; }

/* Détail */
.quote { padding: 12px 16px 14px; }
.author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(#A5ABB6, #858994); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.author b { display: block; font-size: 15px; font-weight: 600; }
.author small { display: block; font-size: 13px; color: var(--label-2); }
.quote p { margin: 0; font-size: 15px; line-height: 21px; letter-spacing: -0.24px; white-space: pre-line; }
mark { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 2px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: center; padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid var(--sep); }
.btn { flex: 1; max-width: 300px; height: 50px; border-radius: 12px; border: none; font-size: 17px; font-weight: 600; cursor: pointer; }
.btn.filled { background: var(--blue); color: #fff; }
.btn.gray { background: var(--fill); color: var(--red); flex: 0 0 auto; padding: 0 20px; }
.btn.danger { background: var(--fill); color: var(--red); }
.btn.plain { background: var(--cell); color: var(--blue); width: 100%; max-width: none; }
.btn:active { opacity: 0.7; }
body.detail .tabbar { display: none; }

/* Barre d'onglets */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(env(safe-area-inset-bottom) + 4px); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid var(--sep); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 44px; justify-content: center; color: var(--gray); font-size: 10px; font-weight: 500; letter-spacing: 0.1px; }
.tabbar a.active { color: var(--blue); }
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active svg { stroke-width: 2.2; }
.badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 12px; font-weight: 500; display: grid; place-items: center; }

/* Interrupteur iOS */
.switch { width: 51px; height: 31px; border-radius: 16px; border: none; padding: 0; background: var(--fill); position: relative; flex-shrink: 0; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06); transition: left 0.2s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { left: 22px; }

.banner { background: var(--cell); border-radius: 10px; padding: 12px 16px; font-size: 15px; color: var(--label-2); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.feed { word-break: break-all; font-size: 13px; color: var(--blue); user-select: all; -webkit-user-select: all; }
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); transform: translateX(-50%); z-index: 10; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--label); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 8px; }
.toast svg { color: var(--green); }

/* Mode vidéo : texte illisible mais la mise en page reste visible */
.video .pii { color: transparent !important; text-shadow: 0 0 9px rgba(0, 0, 0, 0.7); user-select: none; -webkit-user-select: none; }
@media (prefers-color-scheme: dark) { .video .pii { text-shadow: 0 0 9px rgba(255, 255, 255, 0.75); } }
.video mark .pii { text-shadow: 0 0 9px rgba(0, 122, 255, 0.8); }
.video .avatar .pii { text-shadow: 0 0 7px rgba(255, 255, 255, 0.95); }
.video .card-alert .pii { text-shadow: 0 0 9px rgba(255, 149, 0, 0.9); }
.video .row select { filter: blur(6px); }
.switch:disabled { opacity: 0.4; cursor: default; }

/* Le style display des éléments ne doit pas annuler l'attribut hidden */
[hidden] { display: none !important; }

/* Bienvenue */
.welcome { text-align: center; padding: 24px 12px 4px; }
.welcome-icon { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25); }
.welcome h1 { margin-top: 18px; }
.welcome p { margin: 8px 0 0; color: var(--label-2); font-size: 17px; line-height: 23px; }

/* Formulaire de connexion */
.tile-lg { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
.row.field { cursor: text; gap: 8px; }
.row.field:active { background: none; }
.field-label { width: 104px; flex-shrink: 0; }
.row input.field-input { flex: 1; border-radius: 0; min-width: 0; border: none; background: none; padding: 0; font-size: 17px; color: var(--label); outline: none; }
.row input.field-input::placeholder { color: var(--label-3); }
.btn.wide { width: 100%; max-width: none; display: block; }
.btn:disabled { opacity: 0.6; }
.form-error { display: flex; gap: 8px; align-items: flex-start; margin: 16px 4px 0; color: var(--red); font-size: 15px; line-height: 20px; }
.form-error svg { width: 18px; height: 18px; margin-top: 1px; }

/* Logo en tête de l'accueil */
.brand { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

/* ===== Première ouverture : animation du logo + présentation ===== */
body.ob-open { overflow: hidden; }
.ob { position: fixed; inset: 0; z-index: 50; background: var(--bg); transition: opacity 0.35s ease, transform 0.35s ease; }
.ob--closing { opacity: 0; transform: scale(1.03); pointer-events: none; }

/* Animation du logo */
.ob-splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity 0.45s ease, transform 0.45s ease; }
.ob--slides .ob-splash { opacity: 0; transform: translateY(-40px) scale(0.92); pointer-events: none; }
.ob-logo { width: 128px; height: 128px; border-radius: 29px; background: #5856D6; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(88, 86, 214, 0.35); animation: ob-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.ob-letters { position: relative; display: inline-flex; color: #fff; font: 900 66px/1 ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif; letter-spacing: -2px; transform: translate(-7px, -4px); }
.ob-p, .ob-m { display: inline-block; animation: ob-rise 0.45s ease-out both; }
.ob-p { animation-delay: 0.3s; }
.ob-m { animation-delay: 0.45s; }
.ob-dot { position: absolute; right: -19px; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: #FF9500; animation: ob-drop 0.85s cubic-bezier(0.3, 0, 0.3, 1) 0.75s both; }
.ob-word { font: 700 28px/1 var(--font-display); letter-spacing: 0.2px; animation: ob-rise 0.5s ease-out 1.35s both; }
@keyframes ob-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ob-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ob-drop {
  0% { transform: translateY(-150px); opacity: 0; }
  45% { transform: translateY(0); opacity: 1; }
  62% { transform: translateY(-16px); }
  78% { transform: translateY(0); }
  89% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Présentation */
.ob-panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 16px); opacity: 0; transform: translateY(24px); transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s; pointer-events: none; }
.ob--slides .ob-panel { opacity: 1; transform: none; pointer-events: auto; }
.ob-top { display: flex; justify-content: flex-end; padding: 8px 12px 0; min-height: 52px; }
.ob-skip { color: var(--label-2); }
.ob-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { flex: 0 0 100%; scroll-snap-align: center; box-sizing: border-box; padding: 0 28px; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; max-width: 100%; }
.ob-slide h2 { margin: 28px 0 0; font: 700 28px/34px var(--font-display); letter-spacing: 0.3px; text-align: center; }
.ob-slide p { margin: 12px auto 0; max-width: 420px; font-size: 17px; line-height: 24px; color: var(--label-2); text-align: center; }
.ob-art { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.ob-bottom { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 24px 4px; flex-shrink: 0; }
.ob-dots { display: flex; gap: 8px; }
.ob-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--label-3); transition: width 0.25s ease, background 0.25s ease; }
.ob-dots span.on { width: 22px; background: #5856D6; }
.btn.ob-next { flex: none; height: 50px; width: 100%; max-width: 420px; background: #5856D6; }

/* Illustration 1 : les messageries convergent vers Petitmot */
.ob-art-sources { display: flex; align-items: center; gap: 10px; }
.ob-src-col { display: flex; flex-direction: column; gap: 14px; }
.ob-src { display: flex; align-items: center; gap: 10px; background: var(--cell); border-radius: 12px; padding: 8px 12px 8px 8px; font-size: 15px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.ob-flow { width: 54px; height: 120px; fill: none; stroke: #5856D6; stroke-width: 2.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.ob--slides .ob-flow path { animation: ob-flow 1.2s linear infinite; }
@keyframes ob-flow { to { stroke-dashoffset: -18; } }
.ob-mini-logo, .ob-notif-icon { position: relative; width: 84px; height: 84px; border-radius: 19px; background: #5856D6; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(88, 86, 214, 0.3); }
.ob-mini-logo span, .ob-notif-icon span { color: #fff; font: 900 42px/1 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; letter-spacing: -1px; transform: translate(-4px, -2px); }
.ob-mini-logo i, .ob-notif-icon i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #FF9500; right: 13px; top: 24px; }

/* Illustration 2 : du message à l'événement */
.ob-art-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ob-msg { background: var(--cell); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 21px; color: var(--label-2); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.ob-msg mark { color: var(--label); }
.ob-arrow { width: 26px; height: 26px; fill: none; stroke: #5856D6; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ob-art-card .card { width: 100%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }

/* Illustration 3 : notification + calendrier */
.ob-art-cal { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.ob-notif { display: flex; gap: 10px; align-items: center; background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 18px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.ob-notif-icon { width: 38px; height: 38px; border-radius: 9px; box-shadow: none; flex-shrink: 0; }
.ob-notif-icon span { font-size: 19px; transform: translate(-2px, -1px); }
.ob-notif-icon i { width: 5px; height: 5px; right: 4px; top: 8px; }
.ob-notif b, .ob-event b { display: block; font-size: 15px; }
.ob-notif small, .ob-event small { display: block; font-size: 13px; color: var(--label-2); }
.ob-cal { background: var(--cell); border-radius: 18px; padding: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.ob-cal-head { font-weight: 700; font-size: 17px; color: var(--red); margin-bottom: 10px; }
.ob-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; gap: 2px; }
.ob-week small { display: block; font-size: 11px; color: var(--label-2); }
.ob-week b { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: 4px; border-radius: 50%; font-size: 15px; font-weight: 500; }
.ob-week .on b { background: var(--red); color: #fff; font-weight: 700; }
.ob-event { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(175, 82, 222, 0.12); border-left: 4px solid #AF52DE; }
.ob-check { width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.ob-check svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .ob *, .ob { animation: none !important; transition: none !important; }
}

/* Carte qui part après « Ajouter » / « Ignorer » */
.card { transition: opacity 0.25s ease, transform 0.25s ease; }
.card.leaving { opacity: 0; transform: translateX(40px) scale(0.98); pointer-events: none; }

/* ===== Notes ===== */
.grade-summary { background: var(--cell); border-radius: 14px; padding: 18px 18px 16px; margin-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.grade-summary .big { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.5px; }
.grade-summary .big small { font-size: 20px; font-weight: 600; color: var(--label-2); margin-left: 2px; }
.grade-summary .label { font-size: 15px; color: var(--label-2); margin-top: 6px; }
.grade-summary .side { text-align: right; font-size: 15px; color: var(--label-2); line-height: 21px; }
.score { min-width: 58px; height: 34px; padding: 0 8px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.score small { font-size: 11px; font-weight: 600; opacity: 0.75; }
.score.good { background: rgba(52, 199, 89, 0.16); color: #1E7B3A; }
.score.mid { background: rgba(255, 149, 0, 0.18); color: #9A5300; }
.score.low { background: rgba(255, 59, 48, 0.15); color: #B3261E; }
.score.none { background: var(--fill); color: var(--label-2); }
@media (prefers-color-scheme: dark) {
  .score.good { color: #4CD964; } .score.mid { color: #FFB340; } .score.low { color: #FF6961; }
}
.new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.subject-grades { background: var(--bg); }
.subject-grades .row { padding-left: 32px; }

/* Appareil non connecté : pas d'onglets, seulement l'accueil et la connexion */
body.logged-out .tabbar { display: none; }
