/* Captain Mentor | Aviation finish, 16 Nov 2026
   Visual-only layer. No remote assets, no layout rewrites, no decorative selection rails.
   Draws from US Aviation Academy navy, oxblood and aged-gold accents.
*/
:root {
  --navy:#273b70;
  --navy-dark:#0c1c35;
  --red:#b6323a;
  --gold:#ae884c;
  --ink:#14243e;
  --muted:#596a83;
  --line:#dde4ed;
  --paper:#f3f6f9;
  --white:#fff;
  --shadow:0 16px 44px -35px rgba(15,35,73,.5),0 4px 16px -11px rgba(18,38,74,.15);
  --radius:12px;
}
html {scroll-behavior:smooth}
body {
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:lining-nums;
}
::selection {background:#d7e1f1;color:#14243e}

/* Navigation: commissioned aviation instrument panel rather than a template sidebar. */
.sidebar {
  background:
    radial-gradient(ellipse 260px 330px at 110% -12%,rgba(107,142,200,.12),transparent 73%),
    repeating-linear-gradient(130deg,transparent 0 27px,rgba(220,233,253,.015) 28px,transparent 29px),
    linear-gradient(165deg,#0c1e3c 0%,#0b1931 54%,#08162a 100%);
  border-right:1px solid rgba(190,206,232,.15);
}
.sidebar .brand {font-weight:750;letter-spacing:-.35px;line-height:1.2;gap:11px}
.sidebar .brand small {color:#9cb2d2;letter-spacing:1.25px}
.sidebar .brand-mark {border-radius:8px;border:1px solid rgba(255,255,255,.24);box-shadow:0 3px 17px rgba(0,0,0,.16)}
.sidebar .nav-label {color:#95a9c9;letter-spacing:1.55px;font-size:10px}
.nav a {
  border:1px solid transparent;
  border-radius:9px;
  color:#c3d0e6;
  font-weight:480;
  transition:background-color .17s ease,color .17s ease,border-color .17s ease;
}
.nav a .icon {stroke-width:1.7;opacity:.89}
.nav a:hover {background:rgba(217,231,254,.075);color:#fff;border-color:rgba(209,225,253,.09)}
.nav a[aria-current=page] {
  color:#152d5a;
  font-weight:720;
  background:#edf3fc;
  border-color:#f2f6ff;
  box-shadow:0 7px 18px -13px rgba(0,0,0,.6);
}
.nav a[aria-current=page] .icon{opacity:1}
.sidebar-bottom {border-top:1px solid rgba(214,227,247,.12)}
.sidebar-signout {border-radius:8px}
.sidebar-collapse {border-radius:8px;transition:background-color .16s ease}
.sidebar-collapse:hover {background:rgba(255,255,255,.08)}

/* Calm, precise information layer. */
.workspace {background:var(--paper)}
.topbar {
  background:rgba(252,253,255,.97);
  border-bottom:1px solid #dde5ee;
  box-shadow:0 1px 0 rgba(255,255,255,.85);
}
.topbar-title strong,.topbar .mobile-brand {color:#182e57;letter-spacing:-.35px}
.prototype-banner {background:#eaf0f7;color:#4d6181;border-bottom:1px solid #d9e3ef}
.prototype-banner button {font-weight:680;color:#2a4578}
.content {
  background:
    radial-gradient(ellipse 680px 420px at 98% -9%,rgba(144,178,220,.13),transparent 77%),
    repeating-linear-gradient(0deg,transparent 0 75px,rgba(57,85,127,.013) 76px,transparent 77px),
    var(--paper);
}
.page-head {margin-bottom:30px;gap:24px}
.page-head h1 {font-weight:750;letter-spacing:-1.15px;color:#172a49}
.page-head p {color:#62728a;line-height:1.55}
.eyebrow {color:#697b94;letter-spacing:1.4px;font-weight:720}
h1,h2,h3 {text-wrap:balance}
h2 {letter-spacing:-.55px}
.section-head {gap:16px}
.section-head h2 {font-weight:730}

.surface,.tr-card,.tr-connector,.intro-card {
  background:#fff;
  border:1px solid #dce4ee;
  border-radius:13px;
  box-shadow:var(--shadow);
}
.surface {padding:clamp(21px,2vw,29px)}
.surface h2,.tr-card h2,.tr-connector h2 {color:#1c304f}
.notice {border-color:#d5dfeb;background:#edf3fa;color:#4d607c}
.notice.warning {background:#fcf6e9;border-color:#ebdfc5;color:#795c2e}
.divider {background:#e1e7f0}

/* Controls: compact, responsive, and visibly interactive. */
.btn {
  border-radius:8px;
  border-color:#d6dfec;
  font-weight:670;
  box-shadow:0 1px 0 rgba(255,255,255,.8);
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.btn.primary {
  background:#273b70;
  border-color:#273b70;
  color:#fff;
  box-shadow:0 7px 17px -12px rgba(18,39,89,.78);
}
.btn.primary:hover {background:#192f60;border-color:#192f60;box-shadow:0 10px 23px -14px rgba(10,33,80,.9)}
.btn:hover:not(:disabled) {border-color:#adbed7}
.btn:active:not(:disabled) {transform:translateY(1px);box-shadow:none}
.btn.quiet {box-shadow:none}
input,select,textarea {
  border:1px solid #bdcbdc;
  border-radius:8px;
  color:#1a2e4e;
  background:#fff;
  transition:border-color .14s ease,box-shadow .14s ease;
}
input:focus,select:focus,textarea:focus {border-color:#3a5a92;box-shadow:0 0 0 3px rgba(65,102,159,.13)}
:where(a,button,input,select,textarea):focus-visible {outline:3px solid #be9658;outline-offset:3px}
label {color:#34445d}
.mode-tabs {background:#e6ecf4;border:1px solid #dbe3ed;border-radius:9px}
.mode-tabs [aria-selected=true] {background:#fff;color:#193b73;box-shadow:0 2px 7px rgba(20,47,95,.08)}

/* Tables and reporting: signal without the four-KPI-template aesthetic. */
.table-wrap {border-radius:12px;border-color:#dce3eb;box-shadow:0 12px 30px -28px rgba(18,45,85,.25)}
.table-wrap th {background:#f5f8fb;color:#596d88;letter-spacing:.48px;font-size:10px;text-transform:uppercase}
.table-wrap td {border-bottom-color:#e7ecf3}
.table-wrap tbody tr:hover {background:#f7f9fd}
.metric-strip {border-top-color:#dce4ed;border-bottom-color:#dce4ed}
.metric-strip .number {font-weight:760;color:#1b376a;letter-spacing:-1.25px}
.metric-strip .caption {letter-spacing:.02em}
.topic-bar {background:#e4ebf2;height:7px}
.topic-bar span {background:#31588d}
.topic-rate {color:#274773}
.tag {border:1px solid #e1e7f0;background:#eef3f8;color:#4e5f78;font-weight:700}
.tag.green {border-color:#d6e8dd;background:#eaf5ee;color:#26694d}
.tag.amber {border-color:#f1e2bf;background:#fff5e1;color:#8b5d12}
.folder-link {border-radius:8px}
.folder-link.active {background:#e8eef8;color:#213f73;font-weight:740}
.folder-link:hover {background:#f0f4fa}

/* Practice is a deliberate study station, not a generic form. */
.training-meta {border-color:#dce5f0}
.practice-setup {box-shadow:0 21px 47px -39px rgba(17,46,95,.54),0 2px 9px rgba(25,53,90,.026)}
.question {color:#172b49;font-weight:690;line-height:1.35}
.answer {border-color:#cdd8e5;border-radius:10px;box-shadow:0 2px 10px -9px rgba(20,45,84,.3);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
.answer:hover {background:#f3f7fd;border-color:#a7bcdb}
.answer[aria-pressed=true] {background:#e9f0fb;border-color:#41649f;box-shadow:inset 0 0 0 1px #41649f}
.feedback {border-radius:10px}
.progress-track {background:#dce5f1}
.progress-fill {background:#31558b}
.session-row {border-bottom-color:#e5ebf2}
.session-icon {background:#edf2fa;color:#294879}

/* A considered flight-deck environment around the character, without neon or a new avatar. */
.voice-room .content {
  background:
    radial-gradient(ellipse 50% 47% at 50% 50%,rgba(62,105,154,.17),transparent 83%),
    repeating-linear-gradient(90deg,transparent 0 109px,rgba(199,215,240,.021) 110px,transparent 111px),
    linear-gradient(173deg,#08182e 0%,#0d2039 47%,#061427 100%) !important;
}
.cm-release-room {max-width:1110px}
.cm-room-heading .eyebrow {color:#c3b28f;letter-spacing:2px;font-weight:760}
.cm-room-heading h1 {font-weight:640;letter-spacing:-1.2px;color:#f6f8fc}
.cm-portrait-stage {isolation:isolate}
.cm-portrait-stage::before {
  content:'';pointer-events:none;position:absolute;
  z-index:0;top:50%;left:50%;width:min(62vw,590px);aspect-ratio:1;
  transform:translate(-50%,-49%);
  border:1px solid rgba(179,199,226,.14);
  border-radius:50%;
  box-shadow:0 0 0 45px rgba(173,201,239,.013),0 0 0 91px rgba(173,201,239,.013),0 0 0 137px rgba(173,201,239,.007);
}
.cm-portrait-stage::after {
  content:'';pointer-events:none;position:absolute;z-index:0;
  top:51%;left:7%;right:7%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,174,129,.25) 20%,rgba(201,174,129,.13) 50%,rgba(201,174,129,.25) 80%,transparent);
}
.cm-release-avatar.captain-avatar {z-index:1;filter:drop-shadow(0 18px 38px rgba(0,0,0,.18))}
.cm-release-avatar.captain-avatar:hover {filter:drop-shadow(0 16px 40px rgba(0,0,0,.23))}
.cm-room-controls .captain-status {color:#c2d0e4}
.cm-chat-link.btn {border-color:#647997;color:#eef3fd;background:rgba(227,237,255,.035)}
.cm-chat-link.btn:hover {border-color:#b5a17c;background:rgba(221,231,250,.08)}

/* Conversation is a focused workspace with clear authorship. */
.tr-chat,.conversation-layout {--chat-edge:#dce5ef}
.tr-conversation,.conversation-main {border-color:var(--chat-edge);border-radius:13px;box-shadow:var(--shadow)}
.tr-conversation .compose,.conversation-main .compose {background:#f5f8fc;border:1px solid #dce5ef;border-radius:10px}
.tr-chat-empty img,.conversation-empty img {border-color:#dce5ef}
.message.user {background:#ecf2fa;color:#1f3453}
.message.assistant {color:#233954}
.source-links button {border-color:#d5e0ef;background:#f5f8fc}

/* Arrival screen: editorial aviation feel, without extra marketing claims. */
.arrival-form {background:#fff}
.arrival h1 {font-weight:780;letter-spacing:-2px;color:#14284b}
.arrival .intro {color:#5b6b81}
.arrival-photo:after {background:linear-gradient(0deg,rgba(7,19,41,.88) 0%,rgba(10,28,59,.25) 72%)}
.photo-caption .eyebrow {color:#e4c999}
.photo-caption h2 {font-weight:720;letter-spacing:-1.35px}

/* Mobile: keep the Captain prominent, avoid compaction and preserve tab targets. */
@media(max-width:820px) {
  .topbar {background:#fbfcfe}
  .content {background:var(--paper)}
  .mobile-bottom {border-top:1px solid #dbe3ed;box-shadow:0 -8px 24px rgba(19,41,81,.06)}
  .mobile-bottom a {border-radius:8px;transition:background-color .16s ease,color .16s ease}
  .mobile-bottom a[aria-current=page] {background:#e9f0fa;color:#1b4077;font-weight:740}
  .cm-portrait-stage::before {width:min(108vw,570px);box-shadow:0 0 0 26px rgba(173,201,239,.012),0 0 0 58px rgba(173,201,239,.009)}
  .cm-portrait-stage::after {left:0;right:0;opacity:.55}
  .surface {padding:21px}
  .page-head {margin-bottom:24px}
  .page-head h1 {font-size:29px}
}
@media(max-width:500px) {
  .cm-room-heading .eyebrow {font-size:8px;letter-spacing:1.7px}
  .cm-room-heading h1 {font-size:26px}
  .cm-room-controls {padding-bottom:8px}
  .surface {padding:19px}
  .table-wrap th {letter-spacing:.1px}
  .btn {min-height:44px}
  .nav a {min-height:44px}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  *,*::before,*::after {animation:none!important;transition:none!important}
}