/* ARES Mission Control shell for every role: header "ARES · MISSION CONTROL", avatars, icons.
   Palette from base.css; values from the confirmed lecturer mockup (admin.css). */
:root { --faint: #8290a7; --surface-3: #29344a; --amber: #e9c46a; --rust-ink: #ffb08c; --cyan-ink: #a3e8ef; }
.i { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i.sm { width: 15px; height: 15px; flex-basis: 15px; }
.i.xs { width: 13px; height: 13px; flex-basis: 13px; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 11px var(--sans); color: #10141d; flex: 0 0 30px; }
.av.lg { width: 38px; height: 38px; flex-basis: 38px; font-size: 13px; }
.av0 { background: #5fd0dc; } .av1 { background: #e9c46a; } .av2 { background: #b3a8ff; } .av3 { background: #7bd88f; } .av4 { background: #f2a07f; } .av5 { background: #8fb4ff; }

.mc-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; min-height: 64px; padding: 0 32px;
  background: rgba(15, 19, 28, .94); backdrop-filter: blur(8px); border: 0; }
.mc-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--rust), rgba(224, 96, 42, .25) 35%, var(--line) 70%); }
.mc-topbar .mc-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; min-width: 0; }
.mc-topbar .mc-brand:hover { text-decoration: none; }
.mc-mark { width: 28px; height: 28px; flex: 0 0 28px; }
.mc-brand-text { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 18px; letter-spacing: .26em; }
.mc-brand-dot { color: var(--rust); letter-spacing: 0; margin: 0 .55em 0 .1em; }
.mc-brand-sub { font: 600 12px var(--mono); letter-spacing: .2em; color: var(--muted); }
.mc-spacer { flex: 1; }
.mc-nav { display: flex; gap: 6px; margin-left: auto; }
.mc-topbar .mc-nav-link, .mc-topbar .mc-inbox { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; border: 1px solid transparent; text-decoration: none; }
.mc-topbar .mc-nav-link:hover, .mc-topbar .mc-inbox:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.mc-topbar .mc-nav-link[aria-current="page"], .mc-topbar .mc-inbox[aria-current="page"] { color: var(--ink); background: var(--surface-2); border-color: var(--line-2); }
.mc-topbar .mc-inbox { position: relative; padding: 8px 12px; }
.mc-count { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #1b1608; font: 700 11px var(--mono); }
.mc-user { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.mc-who { display: flex; flex-direction: column; line-height: 1.25; }
.mc-who b { font-size: 13px; color: var(--ink); } .mc-who span { font-size: 12px; color: var(--muted); }
.mc-topbar button.mc-account { display: inline-flex; align-items: center; gap: 10px; padding: 4px; min-height: 38px; text-align: left; background: transparent; border: 1px solid transparent; }
.mc-topbar button.mc-account:hover:not(:disabled) { background: var(--surface); border-color: var(--line); }
.mc-topbar button.mc-account:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.account-overlay { position: fixed; inset: 0; z-index: 60; display: flex; }
.account-overlay .scrim { position: absolute; inset: 0; background: rgba(5, 8, 14, .68); backdrop-filter: blur(2px); }
.account-overlay .account-dialog { position: relative; margin: auto; width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.account-overlay .o-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.account-overlay .o-head h2 { margin: 3px 0 0; font-size: 21px; }
.account-overlay .o-close { margin-left: auto; }
.account-overlay .o-body { padding: 20px 24px; overflow: auto; flex: 1; }
.account-overlay .o-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
.account-overlay .spacer { flex: 1; }
.overlay.account-overlay .field { margin-bottom: 18px; }
.account-identity { margin: 0 0 22px; color: var(--muted); overflow-wrap: anywhere; }
.account-identity b { color: var(--ink); }
.account-status { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--muted); }
.account-status.error { color: var(--rust-ink); }
button.mc-signout { min-height: 0; padding: 6px 8px; margin-left: 6px; background: transparent; border: 1px solid transparent; color: var(--muted); font-weight: 600; font-size: 13px; }
button.mc-signout:hover:not(:disabled) { color: var(--ink); background: var(--surface); border-color: var(--line); }
.mc-tag { margin-left: auto; font: 600 10.5px var(--mono); letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; }
.mc-topbar:not(:has(.mc-nav)) .mc-user { margin-left: auto; }
/* The one refresh button of the team area (icon only, labelled "Refresh"). */
button.mc-refresh { display: inline-grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; margin-left: -10px; border-radius: 9px;
  background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; }
button.mc-refresh:hover:not(:disabled) { color: var(--ink); background: var(--surface); }
button.mc-refresh:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.site-footer > span:first-child { letter-spacing: .14em; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; max-width: min(640px, calc(100vw - 32px)); background: #29344a; border: 1px solid var(--line-2); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-size: 13.5px; display: flex; gap: 9px; align-items: center; }
.toast-ok .i { color: #7bd88f; }
body.mc-locked { overflow: hidden; }

/* Problem reports: red header icon; dialog and lecturer list also outside body.mc (team mission view). */
.mc-topbar button.mc-bug { display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; margin-left: -12px; border-radius: 9px;
  background: transparent; border: 1px solid transparent; color: #ff6b6b; cursor: pointer; }
.mc-topbar button.mc-bug:hover:not(:disabled) { color: #ff9292; background: rgba(255, 107, 107, .1); border-color: transparent; }
.mc-topbar button.mc-bug:focus-visible { outline: 2px solid #ff6b6b; outline-offset: 2px; }
.bug-overlay { position: fixed; inset: 0; z-index: 60; display: flex; }
.bug-overlay .scrim { position: absolute; inset: 0; background: rgba(5, 8, 14, .68); backdrop-filter: blur(2px); }
.bug-overlay .dialog { position: relative; margin: auto; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 56px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.bug-overlay .drawer { position: relative; margin-left: auto; height: 100%; width: min(1180px, 97vw); background: var(--bg-2); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; box-shadow: -30px 0 90px rgba(0, 0, 0, .5); }
.bug-overlay .o-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.bug-overlay .o-head h2 { margin: 3px 0 0; font-size: 21px; }
.bug-overlay .o-head .o-actions { display: flex; gap: 8px; margin-left: auto; }
.bug-overlay .o-head .o-actions + .o-close, .bug-overlay .o-head .o-close { margin-left: 4px; }
.bug-overlay .o-head .o-title + .o-close { margin-left: auto; }
.bug-overlay .o-body { padding: 20px 24px; overflow: auto; flex: 1; }
.bug-overlay .o-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.bug-overlay .o-foot .spacer { flex: 1; }
.bug-overlay .btn { display: inline-flex; align-items: center; gap: 8px; }
.bug-overlay .icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 0; padding: 0; background: transparent; border-color: transparent; color: var(--muted); }
.bug-intro { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.bug-body .field textarea { min-height: 120px; }
.bug-preview { display: flex; align-items: flex-end; gap: 12px; margin: -6px 0 12px; }
.bug-preview img { max-width: 220px; max-height: 130px; border-radius: 8px; border: 1px solid var(--line-2); }
.bug-status { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--muted); }
.bug-status.error { color: var(--rust-ink); }
.bug-done { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-size: 15px; color: var(--ink); }
.bug-done .i { color: #7bd88f; }
.bug-table { overflow: auto; border-radius: 10px; background: var(--surface); }
.bug-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bug-table th { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bug-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bug-table tr.click { cursor: pointer; }
.bug-table tr.click:hover, .bug-table tr.click:focus-visible { background: rgba(95, 208, 220, .05); outline: none; }
.bug-when { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.bug-sub { display: block; color: var(--faint); font-size: 12px; }
.bug-first { max-width: 520px; }
.bug-has-image { margin-left: 8px; color: var(--faint); }
.bug-toolbar { margin-bottom: 14px; }
.bug-overlay h3.bug-h { font: 600 11px var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin: 26px 0 10px; }
.bug-overlay .bug-detail > h3.bug-h:first-of-type { margin-top: 4px; }
.bug-description { white-space: pre-wrap; font-size: 15px; line-height: 1.6; margin: 0 0 18px; color: var(--ink); }
.bug-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: 13px; }
.bug-facts dt { color: var(--faint); } .bug-facts dd { margin: 0; overflow-wrap: anywhere; }
button.bug-shot { display: block; padding: 0; min-height: 0; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; max-width: 640px; }
button.bug-shot img { display: block; max-width: 100%; max-height: 360px; }
.bug-overlay .bug-log td { font-size: 12.5px; padding: 6px 12px; white-space: nowrap; }
.bug-overlay .bug-log td:last-child { width: 100%; white-space: normal; overflow-wrap: anywhere; }
.bug-log tr.lv-error td { color: var(--rust-ink); } .bug-log tr.lv-warn td { color: var(--amber); }
.bug-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 var(--mono); background: var(--surface); border-radius: 10px; padding: 12px 14px; max-height: 420px; overflow: auto; color: var(--muted); }

@media (max-width: 980px) {
  .mc-topbar { padding: 0 18px; gap: 12px; }
  .mc-who { display: none; }
  .mc-user { padding-left: 10px; }
}
@media (max-width: 640px) {
  .mc-topbar { padding: 0 10px; gap: 4px; flex-wrap: nowrap; min-height: 56px; }
  .mc-topbar .mc-user .av { display: inline-grid; }
  .mc-topbar .mc-nav { gap: 2px; }
  button.mc-signout { margin-left: 0; padding: 6px 6px; }
  .mc-brand-text { font-size: 15px; letter-spacing: .18em; }
  .mc-brand-sub, .mc-brand-dot { display: none; }
  .mc-topbar .mc-nav-link, .mc-topbar .mc-inbox { padding: 7px 9px; }
  .mc-nav-link span, .mc-inbox-label { display: none; }
  .mc-user { border-left: 0; padding-left: 0; }
  button.mc-refresh { margin-left: 0; width: 34px; }
}

/* Privacy notice (privacy.js): the full notice for everyone and the confirmation page after sign-in. One reading
   column, plain text, no banners; outside the mission world. */
body.mc .page.privacy-page { max-width: 780px; }
body.mc .pv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
body.mc .pv-bar .spacer { flex: 1; }
body.mc button.pv-lang { min-height: 0; padding: 5px 10px; border-radius: 8px; background: transparent; border: 1px solid var(--line-2);
  color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; white-space: nowrap; }
body.mc button.pv-lang:hover:not(:disabled) { color: var(--ink); border-color: var(--cyan); background: transparent; }
body.mc button.pv-lang:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
body.mc .pv-notice, body.mc .pv-gate { color: #c4cddb; font-size: 15px; line-height: 1.62; }
body.mc .pv-notice h1, body.mc .pv-gate h1 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: 0; }
body.mc .pv-notice h2 { margin: 34px 0 10px; font-size: 18px; line-height: 1.3; color: var(--ink); }
body.mc .pv-notice h3 { margin: 22px 0 8px; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
body.mc .pv-notice p, body.mc .pv-gate p { margin: 0 0 12px; }
body.mc .pv-notice ul, body.mc .pv-notice ol { margin: 0 0 14px; padding-left: 22px; }
body.mc .pv-notice li { margin: 0 0 6px; }
body.mc .pv-notice strong, body.mc .pv-gate strong { color: var(--ink); }
body.mc .pv-status { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; font: 600 11px var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); }
body.mc .pv-box { margin: 16px 0; padding: 14px 18px 4px; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 10px 10px 0; }
body.mc .pv-table-wrap { overflow-x: auto; margin: 0 0 14px; }
body.mc .pv-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
body.mc .pv-table th, body.mc .pv-table td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-top: 1px solid var(--line); }
body.mc .pv-table th { color: var(--ink); font-weight: 600; border-top: 0; }
body.mc .pv-table td:first-child { width: 40%; color: var(--ink); padding-right: 18px; }
/* Confirmation page: one calm column with the summary, a link, one tick box and one button. */
body.mc .page.privacy-page#privacy-gate { max-width: 700px; padding-top: 64px; }
body.mc .pv-gate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.mc .pv-gate-head h1 { margin-bottom: 18px; }
body.mc .pv-gate-head .pv-lang { margin-top: 6px; }
body.mc .pv-more { margin: 2px 0 26px; }
body.mc .pv-more a { color: var(--cyan); }
body.mc .pv-form { padding-top: 22px; border-top: 1px solid var(--line); }
body.mc label.pv-check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 15px; line-height: 1.5; cursor: pointer; }
body.mc label.pv-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--cyan); }
body.mc .pv-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
@media (max-width: 640px) {
  body.mc .page.privacy-page#privacy-gate { padding-top: 28px; }
  body.mc .pv-notice h1, body.mc .pv-gate h1 { font-size: 23px; }
  body.mc .pv-table td:first-child { width: auto; }
  body.mc .pv-actions .btn { width: 100%; justify-content: center; }
}
