/* Corrigo — design system. Navy from the logo, white, red accents, light grey surfaces. */
:root {
  --navy: #1b3a8a;
  --navy-700: #142c6b;
  --navy-600: #22459f;
  --navy-100: #dfe6f7;
  --navy-50: #eef2fb;
  --red: #e0222e;
  --red-600: #c51c27;
  --red-50: #fdecec;
  --green: #12804a;
  --green-50: #e7f6ee;
  --amber: #a85a06;
  --amber-50: #fff3e2;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e4e8f0;
  --line-2: #eef1f6;
  --text: #0f1a33;
  --text-2: #3c4660;
  --muted: #6a738a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 30, 70, .05), 0 4px 16px rgba(16, 30, 70, .05);
  --shadow-lg: 0 20px 60px rgba(16, 30, 70, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; line-height: 1.25; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.02rem; font-weight: 650; }
h4 { font-size: .88rem; font-weight: 650; margin: 18px 0 6px; color: var(--text-2); }
p { margin: 0 0 8px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.fine { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; }
.fine .ic { margin-top: 2px; }
.center { justify-content: center; text-align: center; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.2s ease-in-out infinite; border-radius: 14px; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.94); } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(27, 58, 138, .3); }
.btn-primary:hover:not(:disabled) { background: var(--navy-600); }
.btn-soft { background: var(--navy-50); color: var(--navy); }
.btn-soft:hover:not(:disabled) { background: var(--navy-100); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-600); }
.btn-sm { height: 32px; padding: 0 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { height: 48px; font-size: .98rem; padding: 0 22px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--text-2); position: relative; }
.icon-btn:hover { background: var(--line-2); }
.link { color: var(--navy); font-weight: 600; font-size: .84rem; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { text-decoration: underline; }

/* Badges, notes, avatars */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.b-neutral { background: var(--line-2); color: var(--text-2); }
.b-navy { background: var(--navy-50); color: var(--navy); }
.b-green { background: var(--green-50); color: var(--green); }
.b-amber { background: var(--amber-50); color: var(--amber); }
.b-red { background: var(--red-50); color: var(--red-600); }
.pill { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--line-2); color: var(--text-2); white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.pill.red { background: var(--red-50); color: var(--red-600); }
.note { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 700; font-size: 1.05rem; padding: 4px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.note small { font-size: .7em; font-weight: 600; opacity: .7; }
.note-sm { font-size: .92rem; padding: 2px 8px; }
.note.big { font-size: 2.2rem; padding: 10px 18px; border-radius: 16px; }
.n-good { background: var(--green-50); color: var(--green); }
.n-mid { background: var(--navy-50); color: var(--navy); }
.n-low { background: var(--red-50); color: var(--red-600); }
.avatar { --h: 220; flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 650; font-size: .82rem; color: hsl(var(--h) 45% 30%); background: hsl(var(--h) 60% 93%); }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who span { display: flex; flex-direction: column; min-width: 0; }
.who small, .ev-cell small, .sub { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.sub { margin-top: 3px; }
.red-txt { color: var(--red-600); font-weight: 600; }

/* Cards & layout helpers */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.content > * + *, .e-content > * + * { margin-top: 18px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; color: var(--muted); }
.empty strong { color: var(--text); }
.empty p { margin: 0; font-size: .86rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar p { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 550; font-size: .85rem; color: var(--text-2); }
.chip em { font-style: normal; font-size: .74rem; background: var(--line-2); padding: 1px 7px; border-radius: 999px; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.active em { background: rgba(255, 255, 255, .2); }
.info-box { display: flex; gap: 8px; align-items: flex-start; background: var(--navy-50); color: var(--navy-700); padding: 10px 12px; border-radius: 10px; font-size: .86rem; margin: 10px 0; }
.info-box .ic { margin-top: 2px; }
.warn-line { display: flex; gap: 8px; align-items: flex-start; background: var(--amber-50); color: var(--amber); padding: 10px 12px; border-radius: 10px; font-size: .86rem; margin: 10px 0; }
.ok-line { display: flex; gap: 6px; align-items: center; color: var(--green); font-size: .86rem; font-weight: 550; margin: 12px 0 0; }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-600)); border-radius: 99px; transition: width .4s ease; }
.progress.thin { height: 5px; margin: 12px 0 8px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.label { display: block; margin: 16px 0 8px; }
.field input, .field select, .field textarea, .b-row input, .q-preview select, .r-text, .tech textarea, .r-warning textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; outline: none; transition: border .15s, box-shadow .15s; }
.field input, .field select { height: 42px; }
textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .b-row input:focus, .q textarea:focus, .q-pts input:focus, .r-text:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 58, 138, .12); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.form-row > .field { flex: 1 1 160px; }
.form-row > .grow { flex: 3 1 260px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg a { padding: 7px 13px; border-radius: 8px; font-size: .84rem; font-weight: 550; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.seg .active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 30, 70, .12); }
.seg em { font-style: normal; font-size: .72rem; background: var(--navy-50); color: var(--navy); padding: 0 6px; border-radius: 99px; }
.seg.wide { display: flex; margin: 14px 0; }
.seg.wide a { flex: 1; justify-content: center; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; }
.switch-row small { display: block; color: var(--muted); font-size: .76rem; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; width: 40px; height: 23px; border-radius: 99px; background: #cfd5e2; position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--navy); }
.switch-row input:checked + .switch::after { transform: translateX(17px); }
.switch-row input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(27, 58, 138, .2); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1.5px dashed #c5cde0; border-radius: 12px; padding: 26px 16px; cursor: pointer; color: var(--navy); background: #fafbfe; transition: background .15s, border-color .15s; margin-top: 10px; }
.dropzone span { color: var(--muted); font-size: .8rem; }
.dropzone strong { color: var(--text); }
.dropzone:hover, .dropzone.over { background: var(--navy-50); border-color: var(--navy); }
.dropzone.small { padding: 16px; flex-direction: row; justify-content: center; gap: 10px; }
.import-rows { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.import-rows li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.import-rows .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.import-rows .fn small { display: block; color: var(--muted); font-size: .74rem; }
.import-rows select { max-width: 48%; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.files { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.file-btn { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 550; text-align: left; }
.file-btn:hover { text-decoration: underline; }
.file-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: .86rem; cursor: pointer; margin-top: 10px; }
.form-error { display: flex; gap: 8px; align-items: center; background: var(--red-50); color: var(--red-600); padding: 12px 14px; border-radius: 10px; font-weight: 550; font-size: .88rem; }

/* ---------- Teacher shell ---------- */
.app.prof { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.brand { display: block; padding: 2px 6px 16px; }
.brand img { height: 50px; width: auto; display: block; }
img[src*=logo-corrigo], img[src*=icone-corrigo] { mix-blend-mode: multiply; }
.new-eval { margin-bottom: 16px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: .9rem; position: relative; }
.nav-item:hover { background: var(--line-2); color: var(--text); }
.nav-item.active { background: var(--navy-50); color: var(--navy); }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.count { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--red); color: #fff; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.me div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me strong { font-size: .86rem; }
.me span { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(245, 247, 251, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.page-title { font-size: 1.15rem; font-weight: 650; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.bell i { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: .66rem; font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.content { padding: 8px 28px 120px; max-width: 1320px; width: 100%; }
.only-mobile { display: none !important; }
.scrim { display: none; }

.hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hello h2 { font-size: 1.5rem; }
.hello p { margin: 4px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.kpi:hover { border-color: var(--navy-100); transform: translateY(-1px); }
.kpi strong { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi div span { font-size: .8rem; color: var(--muted); }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-ic.navy { background: var(--navy-50); color: var(--navy); }
.kpi-ic.amber { background: var(--amber-50); color: var(--amber); }
.kpi-ic.red { background: var(--red-50); color: var(--red); }
.kpi-ic.green { background: var(--green-50); color: var(--green); }
.todo, .simple-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.todo a, .simple-list a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; }
.todo a:hover, .simple-list a:hover { background: var(--bg); }
.todo li + li, .simple-list li + li { border-top: 1px solid var(--line-2); }
.t-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.t-ic.red { background: var(--red-50); color: var(--red); }
.t-ic.green { background: var(--green-50); color: var(--green); }
.t-ic.amber { background: var(--amber-50); color: var(--amber); }
.t-ic.navy { background: var(--navy-50); color: var(--navy); }
.t-ic.neutral { background: var(--line-2); color: var(--text-2); }
.t-main, .simple-list a > span:not(.pill) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-main strong { font-size: .88rem; }
.t-main span, .simple-list small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-main em { font-style: normal; font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.todo .ic:last-child, .simple-list .ic:first-child { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--muted); padding: 12px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: #fafbff; }
.table .dim td { color: var(--muted); }
.row-go { color: var(--muted); width: 30px; }
.ev-cell { display: block; max-width: 280px; }
.bareme td:last-child, .bareme th:last-child { text-align: right; }
.bareme .total td { background: #fafbfd; font-weight: 600; }
.spark { width: 64px; height: 22px; }
.spark polyline { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 4px; height: calc(var(--h) + 34px); margin-top: 26px; }
.bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: min(46px, 70%); background: linear-gradient(180deg, var(--navy-600), var(--navy)); border-radius: 8px 8px 3px 3px; position: relative; transition: height .5s ease; }
.bar.red { background: linear-gradient(180deg, #ee4d57, var(--red)); }
.bar span { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font-size: .74rem; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.bar-label { font-size: .72rem; color: var(--muted); margin-top: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; height: 18px; }
.notions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.notions li { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; font-size: .88rem; }
.nbar { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.nbar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.nbar i.mid { background: #e2a03f; }
.nbar i.low { background: var(--red); }
.notions strong { text-align: right; font-variant-numeric: tabular-nums; }

/* Notifications */
.notifs { list-style: none; margin: 0; padding: 0; }
.notifs li + li { border-top: 1px solid var(--line-2); }
.notifs a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.notifs a:hover { background: #fafbff; }
.n-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--text-2); }
.tone-succes .n-ic { background: var(--green-50); color: var(--green); }
.tone-alerte .n-ic { background: var(--red-50); color: var(--red); }
.n-txt { flex: 1; font-size: .88rem; color: var(--text-2); min-width: 0; }
.n-txt small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.notifs .unread .n-txt { color: var(--text); font-weight: 550; }
.notifs .unread a { background: linear-gradient(90deg, rgba(27, 58, 138, .04), transparent); }
.notifs a > .ic:last-child { color: var(--muted); }
.card > .notifs { margin: -6px -20px -20px; }

/* Copy detail */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
.crumbs a:hover { color: var(--navy); }
.copy-head { display: flex; gap: 14px; align-items: center; }
.copy-head .avatar { width: 46px; height: 46px; font-size: .95rem; }
.copy-head span { font-size: .86rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pane.left { position: sticky; top: 76px; }
.pane.right { display: flex; flex-direction: column; gap: 16px; }
.viewer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.viewer-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.viewer-tools > span:first-child { display: inline-flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom { display: flex; }
.viewer-body { --z: 1; height: calc(100vh - 200px); min-height: 420px; overflow: auto; background: #e9ecf3; padding: 18px; }
.paper { width: calc(100% * var(--z)); min-width: 300px; background: #fff; margin: 0 auto; padding: 26px 26px 34px; box-shadow: 0 2px 10px rgba(16, 30, 70, .12); border-radius: 3px; font-size: calc(14px * var(--z)); }
.paper.hand { background-image: repeating-linear-gradient(#fff 0 31px, #cfe0f5 31px 32px); background-position: 0 14px; border-left: 2px solid #f2a7ab; padding-left: 34px; font-family: var(--hand); font-size: calc(21px * var(--z)); line-height: 32px; color: #1d2b6b; }
.paper.typed { font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; color: #222; }
.paper-head { display: flex; justify-content: space-between; gap: 12px; font-size: .78em; margin-bottom: 18px; line-height: 1.3; }
.paper.hand .paper-head { font-size: .85em; line-height: 1.2; }
.paper-title { text-align: center; font-weight: 700; flex: 1; }
.ans { margin-bottom: 14px; }
.ans-q { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.paper.typed .ans-q { text-decoration: none; font-family: var(--font); font-size: .86em; color: var(--navy); }
.ans p { margin: 2px 0 0; }
.scan { width: calc(100% * var(--z)); display: block; margin: 0 auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(16, 30, 70, .15); }
.pdf { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 4px; }
.file-slot { height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .86rem; padding: 20px; }
.cta-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 24px; color: var(--navy); }
.cta-card p { color: var(--muted); max-width: 420px; }
.score-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.big-note { font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-note small { font-size: .45em; color: var(--muted); font-weight: 600; }
.mod { color: var(--amber); }
.score-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sig { border-left: 4px solid var(--line); }
.sig-eleve { border-left-color: var(--red); background: linear-gradient(90deg, #fff7f7, #fff 40%); }
.sig-modere { border-left-color: #e2a03f; }
.sig-faible { border-left-color: var(--green); }
.sig-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sig-eleve .sig-head { color: var(--red-600); }
.sig-modere .sig-head { color: var(--amber); }
.sig-faible .sig-head { color: var(--green); }
.sig ul { margin: 0 0 6px; padding-left: 18px; font-size: .87rem; color: var(--text-2); }
.sig ul li + li { margin-top: 4px; }
.sig .btn { margin-top: 12px; }
.qs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.q-top { display: flex; align-items: flex-start; gap: 10px; }
.q-num { flex: none; min-width: 30px; height: 24px; border-radius: 7px; background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: .76rem; display: grid; place-items: center; padding: 0 6px; }
.q-title { flex: 1; font-size: .87rem; font-weight: 550; padding-top: 2px; }
.q-pts { display: flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--muted); white-space: nowrap; }
.q-pts input { width: 62px; height: 34px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-weight: 700; color: var(--text); outline: none; }
.q-pts b { font-size: 1rem; color: var(--text); }
.q textarea { width: 100%; margin-top: 10px; border: 1px solid var(--line-2); background: #fafbfd; border-radius: 9px; padding: 8px 10px; font-size: .86rem; color: var(--text-2); outline: none; }
.q-com { margin: 8px 0 0; font-size: .87rem; color: var(--text-2); }
.errs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.errs span { display: inline-flex; gap: 4px; align-items: center; font-size: .75rem; font-weight: 550; background: var(--red-50); color: var(--red-600); border-radius: 99px; padding: 2px 9px; }
.q-ref { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: .76rem; color: var(--navy); font-weight: 550; }
.q-ortho { background: #fafbfd; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; font-size: .86rem; }
.timeline li > span { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); margin-top: 6px; box-shadow: 0 0 0 3px var(--navy-50); }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 4.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline small { display: block; color: var(--muted); font-size: .75rem; }
.timeline.small li { font-size: .82rem; padding-bottom: 10px; }
.timeline .ev-onglet > span, .timeline .ev-plein_ecran > span, .timeline .ev-interruption > span { background: #e2a03f; box-shadow: 0 0 0 3px var(--amber-50); }
.timeline .ev-suspension > span { background: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.timeline .ev-signal > span, .timeline .ev-reprise > span { background: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.timeline .ev-avertissement > span, .timeline .ev-info > span { background: #9aa3b8; box-shadow: 0 0 0 3px var(--line-2); }
.action-bar { position: sticky; bottom: 14px; z-index: 20; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); }
.mobile-switch { background: var(--line-2); border-radius: 10px; padding: 3px; }
.mobile-switch button { flex: 1; padding: 8px; border-radius: 8px; font-weight: 600; font-size: .86rem; color: var(--text-2); }
.mobile-switch .active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 30, 70, .12); }

/* Verification report */
.verif-card { border-top: 3px solid var(--navy); }
.analysis { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.analysis strong { text-transform: none; }
.analysis p { margin: 4px 0 0; font-size: .87rem; }
.a-bonne { background: var(--green-50); color: #0d5c35; }
.a-partielle { background: var(--amber-50); color: #7a4204; }
.a-fragile { background: var(--red-50); color: #8f141c; }
.oral-list, .qcm-list { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.oq { display: flex; gap: 6px; font-weight: 600; font-size: .87rem; margin: 0; }
.oq .ic { margin-top: 3px; color: var(--navy); }
blockquote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--navy-100); background: #fafbfd; border-radius: 0 8px 8px 0; font-size: .87rem; color: var(--text-2); }
.oral-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .76rem; color: var(--muted); }
.oral-meta span { display: inline-flex; gap: 4px; align-items: center; }
.audio-slot audio { width: 100%; height: 36px; margin-top: 6px; }
.qcm-score { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; }
.qcm-score strong { font-size: 1.9rem; color: var(--navy); }
.qcm-score span { color: var(--muted); font-size: .86rem; }
.qcm-list li { font-size: .86rem; }
.qcm-list li span { display: block; }
.qcm-list small { font-weight: 600; }
.qr-ok small { color: var(--green); }
.qr-ko small { color: var(--red-600); }
.qr-none small, .qr-na small { color: var(--muted); }
.sec-events { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.sec-events h4 { margin: 0 0 10px; display: flex; gap: 6px; align-items: center; }
.decide { margin-top: 16px; padding: 14px; background: var(--navy-50); border-radius: 12px; }
.decide h4 { margin: 0 0 4px; color: var(--navy); }
.decide .fine { margin: 0 0 12px; }
.decide-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.decide-btns .btn-soft { background: #fff; }

/* Modal & toasts */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(15, 26, 51, .45); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.modal-wrap.in { opacity: 1; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); transform: translateY(8px) scale(.98); transition: transform .2s; }
.modal-wrap.in .modal { transform: none; }
.modal.wide { max-width: 720px; }
.modal h3 { font-size: 1.2rem; margin-bottom: 6px; padding-right: 36px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.choice-card { text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); transition: border-color .15s, background .15s; }
.choice-card strong { color: var(--text); }
.choice-card span { font-size: .82rem; color: var(--muted); }
.choice-card .ic { color: var(--navy); }
.choice-card.active { border-color: var(--navy); background: var(--navy-50); box-shadow: 0 0 0 3px rgba(27, 58, 138, .1); }
.q-preview { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.q-preview li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: .86rem; }
.qn { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.qt { flex: 1; min-width: 0; }
.qt small { display: block; color: var(--green); font-size: .75rem; margin-top: 2px; }
.q-preview select { width: 76px; height: 34px; padding: 0 6px; }
.ai-run { text-align: center; padding: 6px 0; }
.ai-orb { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy), #3a63c9); box-shadow: 0 10px 30px rgba(27, 58, 138, .35); animation: orb 1.6s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.06) rotate(4deg); box-shadow: 0 14px 40px rgba(27, 58, 138, .45); } }
.ai-steps { list-style: none; padding: 0; margin: 18px 0; text-align: left; display: flex; flex-direction: column; gap: 9px; }
.ai-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; }
.ai-steps li .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--line-2); color: transparent; transition: all .25s; }
.ai-steps li.done { color: var(--text); }
.ai-steps li.done .ic { background: var(--green); color: #fff; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--navy-700); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 500; animation: tin .25s ease; }
.toast.t-warn { background: #8a4a05; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.done-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--green); padding: 10px 0; }
.done-box h2, .done-box h3 { color: var(--text); }
.done-box p { color: var(--text-2); max-width: 440px; }
.done-box.susp { color: var(--red); }
.tech { width: 100%; text-align: left; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tech .field { width: 100%; }

/* Evaluations */
.eval-grid, .verif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.eval-card { display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.eval-card:hover, .vcard:hover { border-color: var(--navy-100); transform: translateY(-2px); }
.eval-card h3 { margin-top: 6px; }
.eval-card p { margin: 0; }
.ec-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ec-stats { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.ec-stats strong { color: var(--text); font-size: .95rem; }
.ev-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ev-head > div:first-child { flex: 1 1 380px; }
.ev-head h2 { margin: 8px 0 6px; }
.ev-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 10px 14px; font-weight: 600; font-size: .88rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .active { color: var(--navy); border-color: var(--red); }
.settings-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 14px 0; font-size: .9rem; }
.settings-dl dt { color: var(--muted); }
.settings-dl dd { margin: 0; font-weight: 600; }
.vcard { display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.vc-top, .vc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .84rem; }
.vc-type { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; color: var(--navy); }
.intro { margin: 0; }
.principles ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; }
.principles li { display: flex; gap: 12px; font-size: .9rem; color: var(--text-2); }
.principles li .ic { color: var(--navy); margin-top: 2px; }

/* New evaluation form */
.form-page { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.form-sec { display: flex; gap: 16px; }
.sec-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .86rem; }
.sec-body { flex: 1; min-width: 0; }
.sec-body > .field { margin-top: 14px; }
.sec-body > p { margin: 4px 0 0; }
.req-dst { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--line-2); padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.is-dst .req-dst { background: var(--red-50); color: var(--red-600); }
.bareme-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.b-row { display: flex; gap: 8px; align-items: center; }
.b-row input:first-of-type { flex: 1; height: 40px; }
.b-row input[type=number] { width: 84px; height: 40px; text-align: center; font-weight: 600; }
.bareme-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .88rem; flex-wrap: wrap; gap: 8px; }
.ia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 14px; }
.ia-grid .seg { align-self: flex-start; }

/* ---------- Student shell ---------- */
.app.eleve { min-height: 100vh; }
.e-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.e-header-in { max-width: 920px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 20px; }
.e-header .brand { padding: 0; }
.e-header .brand img { height: 40px; }
.e-tabs { display: flex; gap: 4px; flex: 1; justify-content: center; }
.e-tab { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--text-2); }
.e-tab:hover { background: var(--line-2); }
.e-tab.active { background: var(--navy-50); color: var(--navy); }
.e-tab i, .bn i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.e-me { display: flex; align-items: center; gap: 10px; }
.e-me-txt { display: flex; flex-direction: column; line-height: 1.2; }
.e-me-txt span { font-size: .74rem; color: var(--muted); }
.e-content { max-width: 760px; margin: 0 auto; padding: 24px 20px 120px; }
.bottom-nav { display: none; }
.e-hello h2 { font-size: 1.6rem; }
.e-hello p { color: var(--muted); margin: 4px 0 0; }
.e-title { font-size: 1.4rem; }
.e-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 650; }
.flash { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--navy-50); color: var(--navy-700); font-weight: 550; font-size: .9rem; border: 1px solid var(--navy-100); }
.flash span { flex: 1; }
.flash.tone-succes { background: var(--green-50); color: #0d5c35; border-color: #c4e8d4; }
.flash.tone-alerte { background: var(--red-50); color: #8f141c; border-color: #f7c9cc; }
.todo-cards, .list-cards { display: flex; flex-direction: column; gap: 10px; }
.todo-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.todo-card:hover, .lc:hover { transform: translateY(-1px); border-color: var(--navy-100); }
.todo-card.urgent { border-color: #f7c9cc; background: linear-gradient(90deg, #fff6f6, #fff 55%); }
.tc-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy); }
.urgent .tc-ic { background: var(--red); color: #fff; }
.tc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tc-main span { font-size: .8rem; color: var(--muted); }
.tc-main em { font-style: normal; font-size: .8rem; color: var(--text-2); font-weight: 550; margin-top: 2px; }
.urgent .tc-main em { color: var(--red-600); }
.lc { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.lc > span:not(.note):not(.badge) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc small { color: var(--muted); font-size: .78rem; }
.lc > .ic { color: var(--muted); }
.back { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-weight: 550; font-size: .86rem; }
.back:hover { color: var(--navy); }
.due { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--navy); background: var(--navy-50); padding: 5px 10px; border-radius: 8px; font-size: .85rem; margin: 8px 0 4px; }
.due.late { color: var(--red-600); background: var(--red-50); }
.sujet-qs { padding-left: 20px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.sujet-qs small { color: var(--muted); }
.steps { display: flex; gap: 8px; margin-bottom: 14px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; position: relative; }
.step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: .78rem; z-index: 1; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.step.ok { color: var(--green); }
.step.ok span { background: var(--green); color: #fff; }
.card .todo-card { margin: 12px 0; box-shadow: none; }
.cam { margin-top: 10px; position: relative; }
.card > .btn-lg { margin-top: 6px; }
.note-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.note-hero h2 { margin: 4px 0; }
.avg-card { display: flex; align-items: center; gap: 14px; }
.avg-card strong { font-size: 1.8rem; color: var(--navy); }
.avg-card strong small { font-size: .5em; color: var(--muted); }
details.card summary { cursor: pointer; font-weight: 650; }
details.card[open] summary { margin-bottom: 14px; }
details .viewer-body { height: 520px; }

/* ---------- Verification runner ---------- */
.runner { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, #e6ecfa, var(--bg) 60%); display: flex; flex-direction: column; }
.r-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.r-top img { height: 38px; }
.r-secure { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--navy-100); padding: 6px 11px; border-radius: 99px; }
.r-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 16px 16px 40px; }
.r-card { width: 100%; max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.r-card > h2 { font-size: 1.35rem; }
.r-kicker { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.r-rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.r-rules li { display: flex; gap: 12px; font-size: .9rem; color: var(--text-2); background: #fafbfd; border-radius: 10px; padding: 10px 12px; }
.r-rules .ic { color: var(--navy); margin-top: 2px; }
.mic-check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--navy-50); color: var(--navy-700); font-size: .86rem; }
.mic-check span { flex: 1; }
.mic-check.ok { background: var(--green-50); color: var(--green); }
.mic-check.ko { background: var(--amber-50); color: var(--amber); }
.r-progress { display: flex; gap: 6px; }
.r-progress span { flex: 1; height: 5px; border-radius: 99px; background: var(--line-2); }
.r-progress .done { background: var(--navy); }
.r-progress .now { background: var(--red); }
.r-qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ring { width: 60px; height: 60px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring text { transform: rotate(90deg); transform-origin: 32px 32px; text-anchor: middle; font-weight: 700; font-size: 17px; fill: var(--text); font-family: var(--font); }
.ring.low .ring-fg { stroke: var(--red); }
.ring.low text { fill: var(--red); }
.r-q { font-size: 1.25rem; line-height: 1.35; }
.r-choices { display: flex; flex-direction: column; gap: 10px; }
.r-choice { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .95rem; font-weight: 500; transition: border-color .12s, background .12s; }
.r-choice span { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--text-2); }
.r-choice:hover { border-color: var(--navy-100); background: #fafbff; }
.r-choice.sel { border-color: var(--navy); background: var(--navy-50); }
.r-choice.sel span { background: var(--navy); color: #fff; }
.bot { display: flex; gap: 14px; align-items: flex-start; }
.bot-av { flex: none; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), #3a63c9); color: #fff; display: grid; place-items: center; position: relative; box-shadow: 0 8px 24px rgba(27, 58, 138, .3); }
.bot-av i { position: absolute; inset: -6px; border-radius: 22px; border: 2px solid rgba(27, 58, 138, .35); opacity: 0; }
.bot-av.speaking i { animation: wave 1.6s ease-out infinite; }
.bot-av.speaking i:nth-child(3) { animation-delay: .5s; }
.bot-av.speaking i:nth-child(4) { animation-delay: 1s; }
@keyframes wave { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
.bot-bubble { flex: 1; background: #f4f6fc; border-radius: 4px 16px 16px 16px; padding: 12px 14px; }
.bot-bubble p { margin: 4px 0 0; font-size: 1.02rem; font-weight: 550; }
.r-phase { display: flex; flex-direction: column; gap: 12px; }
.r-phase > .muted { display: inline-flex; gap: 6px; align-items: center; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-50); animation: pulse 1s infinite; }
.rec-dot.off { background: #9aa3b8; box-shadow: 0 0 0 4px var(--line-2); animation: none; }
.r-phase .r-qhead strong { flex: 1; display: flex; align-items: center; gap: 6px; }
.live-tr { min-height: 90px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; font-size: .95rem; color: var(--text); background: #fcfcfe; }
.r-warning { position: fixed; inset: 0; z-index: 150; background: rgba(15, 26, 51, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.r-warning .r-card { text-align: center; align-items: center; color: var(--amber); }
.r-warning h2, .r-warning p { color: var(--text); margin: 0; }
.r-warning [data-tech-box] { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-side { background: linear-gradient(160deg, #f3f6fd 0%, #e5ecfa 100%); padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 26px; position: relative; overflow: hidden; }
.login-side::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; bottom: -160px; background: radial-gradient(circle, rgba(27, 58, 138, .12), transparent 70%); }
.login-logo { width: 250px; height: auto; mix-blend-mode: multiply; }
.login-side h1 { font-size: 2.1rem; line-height: 1.18; letter-spacing: -.025em; max-width: 520px; color: var(--navy-700); }
.login-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.login-points li { display: flex; gap: 12px; color: var(--text-2); font-size: .97rem; }
.login-points .ic { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.tagline { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.tagline span { width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--navy) 0 40%, #fff 40% 60%, var(--red) 60%); }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.login-logo-m { display: none; }
.login-card h2 { font-size: 1.6rem; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 6px 0; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.acc { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s, transform .1s; }
.acc:hover { border-color: var(--navy); background: #fafbff; }
.acc > span:not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc strong { font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.acc em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--red-600); background: var(--red-50); padding: 2px 7px; border-radius: 99px; }
.acc small { color: var(--muted); font-size: .78rem; }
.acc > .ic { color: var(--navy); }
.acc-prof { border-color: var(--navy-100); background: var(--navy-50); }
.acc-list { display: flex; flex-direction: column; gap: 8px; }

/* Demo helper */
body[data-space=prof] .action-bar { margin-right: 104px; }
.demo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.fab-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; border-radius: 99px; background: #fff; color: var(--navy); font-weight: 650; font-size: .86rem; border: 1px solid var(--navy-100); box-shadow: var(--shadow-lg); }
.fab-panel { position: absolute; right: 0; bottom: 52px; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fab-panel > strong { font-size: .86rem; }
.fab-accounts { display: flex; flex-direction: column; gap: 4px; }
.fab-accounts button { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-align: left; font-size: .86rem; font-weight: 550; }
.fab-accounts button span { display: flex; flex-direction: column; }
.fab-accounts small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.fab-accounts button:hover { background: var(--line-2); }
.fab-accounts .cur { background: var(--navy-50); color: var(--navy); }
.fab-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fab-row a { font-size: .76rem; font-weight: 600; color: var(--navy); background: var(--navy-50); padding: 4px 9px; border-radius: 99px; display: inline-flex; gap: 3px; align-items: center; }
.fab-panel .fine { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .only-mobile { display: inline-flex !important; }
  .mobile-switch.only-mobile { display: flex !important; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 26, 51, .4); z-index: 35; }
  .topbar { padding: 0 12px; background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); }
  .topbar-logo { width: 30px; height: 30px; border-radius: 8px; }
  .content { padding: 16px 16px 120px; }
  .split { display: block; }
  .split[data-show=left] .pane.right, .split[data-show=right] .pane.left { display: none; }
  .pane.left { position: static; }
  .viewer-body { height: 70vh; }
  .demo-fab { bottom: 16px; }
  body[data-space=prof] .action-bar { margin-right: 0; }
  body[data-space=prof] .demo-fab { bottom: 90px; right: 12px; }
}
@media (max-width: 820px) {
  .e-tabs, .e-me-txt { display: none; }
  .e-header-in { justify-content: space-between; height: 58px; padding: 0 16px; }
  .e-header .brand img { height: 34px; }
  .e-content { padding: 18px 16px 110px; }
  body[data-space=eleve] .demo-fab { bottom: 80px; right: 12px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); padding: 6px 0; border-radius: 10px; position: relative; }
  .bn i { position: absolute; top: 2px; left: calc(50% + 6px); }
  .bn.active { color: var(--navy); }
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-logo-m { display: block; width: 200px; margin: 0 auto 6px; }
  .login-card h2 { text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .kpi strong { font-size: 1.25rem; }
  .card { padding: 16px; }
  .card > .notifs { margin: -6px -16px -16px; }
  .hello h2 { font-size: 1.3rem; }
  .hello .btn { width: 100%; }
  .choice { grid-template-columns: 1fr; }
  .ia-grid { grid-template-columns: 1fr; }
  .form-sec { flex-direction: column; gap: 10px; }
  .modal { padding: 20px 18px; border-radius: 16px; }
  .modal-wrap { align-items: flex-end; padding: 0; }
  .modal { max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-actions .btn { flex: 1; }
  .action-bar { left: 0; right: 0; bottom: 10px; }
  .action-bar .btn { flex: 1 1 auto; }
  .notions li { grid-template-columns: 1fr 44px; }
  .notions .nbar { grid-column: 1 / -1; grid-row: 2; }
  .table th, .table td { padding: 10px 12px; }
  .r-card { padding: 20px 18px; border-radius: 18px; }
  .r-main { padding: 6px 12px 30px; }
  .r-q { font-size: 1.1rem; }
  .note-hero { flex-direction: column-reverse; align-items: flex-start; }
  .score-card { flex-direction: column; }
  .score-side { align-items: flex-start; flex-direction: row; }
  .paper { padding: 18px 16px 24px; }
  .paper.hand { padding-left: 24px; }
  .viewer-body { padding: 10px; }
  .toolbar .btn { width: 100%; }
  .ev-head-actions { width: 100%; }
  .ev-head-actions .btn { flex: 1; }
  .q-top { flex-wrap: wrap; }
  .q-pts { margin-left: 40px; }
}
