:root {
  font-family: "Open Sans", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152329;
  background: #f2f6f6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f2f6f6; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }

.sidebar {
  background: #001e62;
  color: #eef7f7;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: #c5cfda; color: #001e62;
}
.brand strong { display: block; letter-spacing: .08em; }
.brand span { display: block; color: #9eb6b8; font-size: 12px; margin-top: 2px; }
nav { display: grid; gap: 8px; }
.nav-item {
  border: 0; background: transparent; color: #bdd0d1; text-align: left;
  padding: 12px 14px; border-radius: 10px;
}
.nav-item.active, .nav-item:hover { background: #153578; color: #fff; }
.sidebar-footer { margin-top: auto; color: #8fa9ab; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c5cfda; }

.main { padding: 34px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #548086; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; }
.primary, .secondary {
  border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700;
}
.primary { background: #001e62; color: white; }
.primary:hover { background: #153578; }
.secondary { background: #e7eeee; color: #29484c; }

.hero {
  background: linear-gradient(120deg, #001e62, #153578);
  color: white; border-radius: 18px; padding: 28px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  box-shadow: 0 15px 40px rgba(11, 31, 36, .12);
}
.hero h2 { margin-bottom: 8px; font-size: 25px; }
.hero p { margin-bottom: 0; max-width: 720px; color: #d4e8e8; }
.eyebrow.light { color: #80d7cf; }
.hero-badge {
  width: 120px; height: 120px; flex: 0 0 120px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center;
  align-content: center; background: rgba(255,255,255,.08);
}
.hero-badge span, .hero-badge small { font-size: 11px; color: #bde5e1; }
.hero-badge strong { font-size: 42px; line-height: 1; margin: 2px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px; margin: 20px 0;
}
.stat-card {
  background: white; border: 1px solid #dce7e7; border-radius: 14px;
  padding: 18px; min-height: 105px;
}
.stat-card span { color: #678084; font-size: 13px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 28px; }

.panel {
  background: white; border: 1px solid #dce7e7; border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; border-bottom: 1px solid #e8eeee;
}
.panel-head h3 { margin-bottom: 0; font-size: 19px; }
.tools { display: flex; gap: 10px; }
.tools input, .tools select {
  border: 1px solid #cad8d9; border-radius: 9px; padding: 9px 11px;
  background: white; min-height: 40px;
}
.tools input { width: 280px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 980px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #edf1f1; text-align: left; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6c8487; background: #fbfcfc; }
td { font-size: 13px; vertical-align: middle; }
.client-event strong { display: block; }
.client-event span { display: block; color: #71868a; margin-top: 3px; }
.pill {
  display: inline-flex; border-radius: 999px; padding: 5px 9px;
  font-size: 11px; font-weight: 750; white-space: nowrap;
  background: #edf4f4; color: #36585c;
}
.pill.sent { background: #e9f4ff; color: #225b88; }
.pill.progress { background: #fff5df; color: #7a5814; }
.pill.complete, .pill.approved { background: #e9eef5; color: #001e62; }
.pill.reviewed { background: #eef0ff; color: #4c4f8d; }
.action-btn {
  border: 1px solid #cfdcdc; background: white; color: #21575b;
  border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: 12px;
}
.empty { text-align: center; padding: 60px 20px; }
.empty-icon {
  margin: 0 auto 12px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #e7f5f2; color: #001e62; font-weight: 800;
}
.hidden { display: none !important; }

dialog {
  width: min(680px, calc(100vw - 32px)); border: 0; border-radius: 16px;
  padding: 0; box-shadow: 0 28px 80px rgba(6, 31, 36, .25);
}
dialog::backdrop { background: rgba(4, 22, 26, .58); }
dialog form { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.dialog-head h3 { margin: 0; font-size: 22px; }
.icon-btn { border: 0; background: #eef3f3; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { font-size: 12px; font-weight: 750; color: #4b666a; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input {
  width: 100%; margin-top: 7px; border: 1px solid #c9d6d7;
  border-radius: 9px; padding: 11px 12px; color: #182d31;
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-error { margin: 14px 0 0; color: #a52a2a; font-size: 13px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 210px 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 20px; }
  .hero { align-items: flex-start; }
  .hero-badge { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-head { align-items: stretch; flex-direction: column; }
  .tools { flex-direction: column; }
  .tools input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
}

.interview-body { background: #eaf0f0; }
.interview-shell { width: min(980px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 54px; }
.interview-top {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  background: #001e62; color: white; border-radius: 18px 18px 0 0; padding: 20px 24px;
}
.progress-wrap { width: min(430px, 48vw); }
.progress-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #c9dcdd; margin-bottom: 7px; }
.progress-track { height: 7px; background: #27434a; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #c5cfda; transition: width .25s ease; }
.event-context {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: #d6e1e1; border-left: 1px solid #d6e1e1; border-right: 1px solid #d6e1e1;
}
.event-context div { background: white; padding: 14px 18px; min-width: 0; }
.event-context span { display: block; color: #778e91; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.event-context strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-card {
  background: white; border: 1px solid #d6e1e1; border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 45px rgba(13, 38, 43, .08); overflow: hidden;
}
.messages {
  min-height: 420px; max-height: 60vh; overflow-y: auto; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.message { max-width: 82%; }
.message.user { align-self: flex-end; }
.message-role { font-size: 10px; font-weight: 800; letter-spacing: .09em; color: #6f888b; margin: 0 0 6px 4px; }
.message-text { border-radius: 16px; padding: 15px 17px; line-height: 1.55; background: #eff5f5; color: #173136; }
.message.assistant .message-text { border-top-left-radius: 5px; }
.message.user .message-text { background: #001e62; color: white; border-top-right-radius: 5px; }
.answer-box { border-top: 1px solid #e0e8e8; padding: 20px 24px 22px; background: #fbfcfc; }
.answer-box label { display: block; font-size: 12px; font-weight: 750; color: #4a6669; margin-bottom: 8px; }
.answer-box textarea {
  display: block; width: 100%; resize: vertical; min-height: 110px;
  border: 1px solid #bfd0d1; border-radius: 12px; padding: 13px 14px; line-height: 1.5;
}
.answer-box textarea:focus { outline: 2px solid #9bb2dc; border-color: #385487; }
.answer-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.answer-actions span { color: #7b8e90; font-size: 12px; }
.complete-panel { padding: 48px 24px 52px; text-align: center; border-top: 1px solid #e0e8e8; }
.complete-panel p { color: #667f82; margin-bottom: 0; }
@media (max-width: 760px) {
  .interview-top { align-items: flex-start; flex-direction: column; }
  .progress-wrap { width: 100%; }
  .event-context { grid-template-columns: 1fr 1fr; }
  .messages { padding: 20px; max-height: none; }
  .message { max-width: 94%; }
}

.review-shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 54px; }
.review-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: #001e62; color: white; border-radius: 18px 18px 0 0; padding: 20px 24px;
}
.link-button { display: inline-flex; align-items: center; text-decoration: none; }
.review-panel {
  background: white; border: 1px solid #d6e1e1; border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 45px rgba(13, 38, 43, .08); overflow: hidden;
}
.review-toolbar {
  padding: 22px 24px; display: flex; justify-content: space-between; gap: 24px;
  align-items: flex-start; border-bottom: 1px solid #e4ecec;
}
.review-toolbar h1 { font-size: 22px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.review-status {
  padding: 12px 24px; background: #f7fafa; border-bottom: 1px solid #e4ecec;
  display: flex; align-items: center; gap: 12px; min-height: 52px;
}
.output-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px;
}
.output-grid label { font-size: 12px; font-weight: 750; color: #4b666a; }
.output-grid textarea {
  width: 100%; margin-top: 8px; border: 1px solid #c9d6d7; border-radius: 10px;
  padding: 12px; resize: vertical; line-height: 1.5; color: #183035; background: #fff;
}
.output-grid textarea:focus { outline: 2px solid #9bb2dc; border-color: #385487; }
.muted { color: #758a8d; font-size: 12px; }
@media (max-width: 860px) {
  .review-toolbar { flex-direction: column; }
  .review-actions { justify-content: flex-start; }
  .output-grid { grid-template-columns: 1fr; }
}

.source-panel { margin-bottom: 24px; }
.source-panel p { line-height: 1.6; }
.source-forms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 20px; }
.source-form { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid #d4dfdf; border-radius: 12px; }
.source-form label { display: grid; gap: 6px; }
.source-form input, .source-form select, .source-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.source-item { margin-top: 16px; padding: 16px; border: 1px solid #d4dfdf; border-radius: 12px; }
.source-heading { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.source-heading strong { overflow-wrap: anywhere; }
.source-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; padding: 12px; background: #f2f6f6; color: #173b40; font: inherit; }
.source-item summary { cursor: pointer; overflow-wrap: anywhere; }
#sourceStatus { min-height: 1.5em; }
@media(max-width: 760px) { .source-forms { grid-template-columns: 1fr; } }

.source-panel { padding: 24px; }
.source-panel .review-toolbar { padding: 0 0 18px; }
.source-form h3 { margin: 0 0 6px; }
.source-form label { font-size: 14px; font-weight: 600; }
.source-form input, .source-form select, .source-form textarea { padding: 10px 12px; border: 1px solid #cbd8da; border-radius: 8px; background: #fff; color: #173b40; font: inherit; font-weight: 400; }
.source-form input:focus, .source-form select:focus, .source-form textarea:focus { outline: 2px solid #385487; outline-offset: 2px; }
@media(max-width: 760px) { .source-panel { padding: 16px; } .source-panel .review-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 16px; } }

/* DIRECTIONS corporate identity: crisp vector logo and navy / white interface */
:root { color: #001e62; background: #f5f7fa; }
body, .interview-body { background: #f5f7fa; }
.sidebar { background: #001e62; color: #fff; }
.brand { min-width: 0; }
.brand-logo { width: 100%; max-width: 320px; height: auto; display: block; }
.sidebar .brand { display: block; }
.sidebar .brand-logo { margin: 0 auto; }
.brand-subtitle { display: block; margin-top: 10px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .28em; color: #fff; }
.interview-top .brand, .review-top .brand { width: min(330px, 46%); display: block; }
.interview-top .brand-subtitle, .review-top .brand-subtitle { text-align: left; }
.nav-item { color: #e0e7f2; }
.nav-item.active, .nav-item:hover { background: #153578; color: white; }
.sidebar-footer { color: #c5cfda; }
h1, h2, h3, h4 { color: #001e62; }
.hero h2, .interview-top h2, .review-top h2 { color: #fff; }
.eyebrow { color: #385487; }
.eyebrow.light { color: #c5cfda; }
.hero { background: linear-gradient(115deg,#001e62,#153578); }
.hero p { color: #e2e9f2; }
.hero-badge span, .hero-badge small { color: #e2e9f2; }
.primary { background: #001e62; color: #fff; }
.primary:hover { background: #153578; }
.secondary { background: #e9eef5; color: #001e62; }
.stat-card, .panel { border-color: #dce3ed; }
.stat-card strong { color: #001e62; }
.stat-card span, .client-event span { color: #60718d; }
th { color: #385487; background: #f5f7fa; }
.pill, .pill.sent, .pill.progress, .pill.complete, .pill.approved, .pill.reviewed { background: #e9eef5; color: #001e62; border: 1px solid #b9c8df; }
.action-btn { color: #001e62; border-color: #b9c8df; }
.action-btn:hover { background: #e9eef5; }
.message.user .message-text { background: #001e62; }
.progress-bar { background: #c5cfda; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline-color: #385487; }
@media (max-width:780px) { .sidebar { display: flex; padding: 16px; gap: 16px; } .sidebar .brand-logo { max-width: 240px; } .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); } .sidebar-footer { display: none; } }

/* Live management dashboard */
.main { max-width: 1640px; width: 100%; margin: 0 auto; padding: 36px clamp(20px,3.2vw,56px); }
.topbar h1 { font-size: clamp(25px,2.2vw,34px); letter-spacing: -.025em; }
.hero { min-height: 184px; }
.stats-grid { gap: 16px; }
.stat-card { box-shadow: 0 4px 14px rgba(0,30,98,.035); border-radius: 12px; }
.stat-card strong { font-size: 31px; }
.dashboard-focus { margin: 30px 0 26px; }
.focus-heading { display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px; }
.focus-heading h2 { font-size:22px;margin:0; }
.focus-subtitle { color:#60718d;font-size:12px; }
.focus-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.focus-card { background:white;border:1px solid #dce3ed;border-radius:14px;padding:22px;box-shadow:0 4px 14px rgba(0,30,98,.035); }
.focus-card-top { display:flex;justify-content:space-between;align-items:center; }
.focus-icon { display:grid;place-items:center;width:36px;height:36px;background:#e9eef5;border-radius:10px;color:#001e62;font-weight:800;font-size:18px; }
.focus-kicker { color:#60718d;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase; }
.focus-card strong { display:block;color:#001e62;font-size:36px;margin:13px 0 0;line-height:1.1; }
.focus-card p { color:#526782;font-size:13px;margin:7px 0 17px; }
.focus-link { padding:0;border:0;background:none;color:#001e62;font-size:12px;font-weight:700;text-align:left; }
.focus-link:hover { text-decoration:underline; }
.register-context { margin:7px 0 0;color:#60718d;font-size:12px; }
@media(max-width:1100px) { .focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:780px) { .main { padding:22px 16px; } .focus-grid { grid-template-columns:1fr; } .focus-heading { align-items:start;flex-direction:column; } .topbar { gap:12px; } }

/* Approved intelligence and actionable follow-up */
.insights-section { margin: 30px 0 28px; }
.insights-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.insight-panel { background:white;border:1px solid #dce3ed;border-radius:14px;overflow:hidden; }
.insight-panel h3 { margin:0;padding:19px 22px;border-bottom:1px solid #e3e9f1;font-size:17px; }
.insight-content { padding:4px 22px; }
.insight-item { padding:16px 0;border-bottom:1px solid #e8edf4; }
.insight-item:last-child { border-bottom:0; }
.insight-source { display:block;font-size:11px;font-weight:700;color:#385487;letter-spacing:.025em;margin-bottom:7px; }
.insight-item p { color:#283d59;font-size:13px;line-height:1.65;margin:0 0 8px; }
.insight-open { font-size:12px;font-weight:700;color:#001e62;text-decoration:none; }
.insight-open:hover { text-decoration:underline; }
.insight-empty { color:#60718d;font-size:13px;line-height:1.6;padding:16px 0; }
@media(max-width:900px) { .insights-grid { grid-template-columns:1fr; } }

/* Searchable, read-only knowledge library */
.library-view { padding: 6px 0 32px; }
.library-header { display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 26px; }
.library-header h2 { font-size:clamp(24px,2.4vw,34px);margin:5px 0 10px; }
.library-header p:not(.eyebrow) { color:#60718d;font-size:13px;line-height:1.6; }
.library-approved { background:#e9eef5;color:#001e62;border:1px solid #b9c8df;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:700;white-space:nowrap; }
.library-toolbar { display:flex;gap:12px;align-items:center;margin:0 0 12px; }
.library-toolbar input { flex:1;min-width:0; }
.library-toolbar select { min-width:185px; }
.library-toolbar input,.library-toolbar select { background:white;border:1px solid #dce3ed;border-radius:8px;padding:12px 14px;color:#001e62;font:inherit;font-size:13px; }
.library-toolbar button { padding:12px 20px; }
.library-layout { display:grid;grid-template-columns:minmax(230px,32%) minmax(0,1fr);gap:16px;align-items:start;margin-top:20px; }
.library-results,.library-detail { background:#fff;border:1px solid #dce3ed;border-radius:14px;min-height:220px; }
.library-results { overflow:hidden; }
.library-result { display:flex;flex-direction:column;gap:5px;padding:17px 18px;border:0;border-bottom:1px solid #e9eef5;background:white;width:100%;text-align:left;cursor:pointer; }
.library-result:last-child { border-bottom:0; }
.library-result strong { color:#001e62;font-size:14px; }
.library-result span { color:#435875;font-size:12px; }
.library-result small { color:#60718d;font-size:11px; }
.library-result:hover,.library-result.selected { background:#e9eef5; }
.library-result.selected { box-shadow:inset 4px 0 #001e62; }
.library-detail { padding:26px; }
.library-detail h3 { font-size:22px;margin:8px 0 10px; }
.library-meta { font-size:12px;color:#60718d;margin:7px 0; }
.library-knowledge-section { margin-top:27px;border-top:1px solid #e4eaf2;padding-top:20px; }
.library-knowledge-section h4 { font-size:15px;margin:0 0 12px; }
.library-knowledge-text { color:#283d59;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px; }
.library-pager { display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:16px;color:#60718d;font-size:12px; }
.library-pager button { padding:8px 14px; }
.library-pager button:disabled { opacity:.45;cursor:not-allowed; }
@media(max-width:900px) { .library-layout { grid-template-columns:1fr; } .library-toolbar { flex-wrap:wrap; } .library-toolbar input { flex-basis:100%; } }
@media(max-width:600px) { .library-header { align-items:start;flex-direction:column; } .library-detail { padding:18px; } }

/* Microsoft Entra sign-in screen (production hostname only; staged until backend is ready). */
.ms-signin.hidden{display:none}.ms-signin{min-height:100vh;background:#001e62;display:flex;align-items:center;justify-content:center;padding:32px 16px;font-family:'Open Sans',sans-serif}.ms-signin-card{width:100%;max-width:440px}.ms-signin-logo{width:240px;max-width:85%;display:block;margin:0 auto 32px}.ms-signin-inner{background:white;padding:36px;border-radius:16px;box-shadow:0 20px 55px #00134355}.ms-signin-inner h1{font-size:27px;color:#001e62;margin:12px 0}.ms-signin-inner p{line-height:1.6;color:#475569}.ms-signin-button{margin-top:24px;width:100%;display:flex;align-items:center;justify-content:center;gap:13px;padding:15px 12px;background:#001e62;color:white;border:0;border-radius:7px;font-size:15px;font-weight:700}.ms-signin-button:disabled{opacity:.55;cursor:not-allowed}.ms-signin-note{font-size:12px;margin-top:16px}.ms-mark{display:grid;grid-template-columns:repeat(2,9px);gap:2px}.ms-mark i{height:9px;width:9px;background:#f25022}.ms-mark i:nth-child(2){background:#7fba00}.ms-mark i:nth-child(3){background:#00a4ef}.ms-mark i:nth-child(4){background:#ffb900}

/* Match-aligned administration navigation */
@media(min-width:781px){.shell{grid-template-columns:272px minmax(0,1fr)}.sidebar{height:100vh;position:sticky;top:0;padding:16px;gap:24px}.sidebar .brand{padding:10px 8px 8px}.sidebar .brand-logo{max-width:100%}.sidebar nav{gap:2px}.nav-item{padding:10px 12px;border-radius:8px;font-size:14px}.main{max-width:none;padding:28px 32px}}
.nav-icon{display:inline-block;width:23px;font-size:16px;opacity:.75}.staff-footer{margin-top:auto;border-top:1px solid #385487;padding:13px 5px 0;color:white;font-size:13px}.staff-footer #staffIdentity{font-weight:700}.staff-footer #staffRole{font-size:11px;color:#c5cfda;margin-top:4px;overflow-wrap:anywhere}.staff-prototype{display:inline-block;border:1px solid #385487;border-radius:4px;padding:3px 7px;color:#c5cfda;font-size:10px;margin-top:8px}.staff-signout{display:block;border:0;background:transparent;color:white;padding:13px 0;font-size:13px;cursor:pointer;text-align:left;width:100%}

/* Pixel-aligned MATCH sidebar typography and navigation geometry */
@media (min-width: 781px) {
  #debriefAppShell.shell { grid-template-columns: 272px minmax(0, 1fr); }
  #debriefAppShell > .sidebar { box-sizing:border-box; width:272px; height:100vh; min-height:100vh; position:sticky; top:0; display:flex; flex-direction:column; gap:24px; padding:16px; overflow-y:auto; }
}
#debriefAppShell > .sidebar { font-family:'Open Sans',Arial,ui-sans-serif,system-ui,sans-serif; font-size:14px; font-weight:400; line-height:1.5; }
#debriefAppShell .sidebar .brand { display:block; padding:12px 8px; margin:0; }
#debriefAppShell .sidebar .brand-logo { display:block; width:100%; max-width:none; height:auto; margin:0; object-fit:contain; }
#debriefAppShell .sidebar .brand-subtitle { display:block; margin:8px 0 0; font-size:10px; line-height:15px; font-weight:700; letter-spacing:2.2px; text-align:center; color:#fff; }
#debriefAppShell .sidebar nav { display:flex; flex-direction:column; gap:2px; margin:0; padding:0; }
#debriefAppShell .sidebar nav .nav-item { box-sizing:border-box; display:flex; align-items:center; gap:10px; width:100%; min-height:40px; margin:0; padding:8px 12px; border:0; border-radius:8px; background:transparent; color:#d7e0f0; font-family:inherit; font-size:14px; line-height:24px; font-weight:500; text-align:left; text-decoration:none; white-space:nowrap; }
#debriefAppShell .sidebar nav .nav-item:hover,#debriefAppShell .sidebar nav .nav-item.active { background:#203b78; color:#fff; }
#debriefAppShell .sidebar nav .nav-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 16px; width:16px; font-size:16px; line-height:16px; font-weight:400; opacity:.8; }
#debriefAppShell .sidebar .staff-footer { margin-top:auto; padding:12px 4px 0; border-top:1px solid #385487; font-size:14px; line-height:20px; color:white; }
#debriefAppShell .sidebar #staffIdentity { font-size:14px; font-weight:600; line-height:20px; }
#debriefAppShell .sidebar #staffRole { margin-top:0; font-size:12px; line-height:18px; color:#c5cfda; overflow-wrap:normal; word-break:normal; }
#debriefAppShell .sidebar .staff-prototype { display:inline-flex; margin:8px 0 0; padding:2px 7px; border:1px solid #385487; border-radius:3px; background:#173476; color:white; font-size:10px; font-weight:600; line-height:15px; }
#debriefAppShell .sidebar .staff-signout { display:flex; align-items:center; width:100%; margin:8px 0 0; padding:8px 10px; border:0; border-radius:6px; background:transparent; color:#fff; font-family:inherit; font-size:14px; line-height:20px; font-weight:500; text-align:left; box-shadow:none; }
#debriefAppShell .sidebar .staff-signout:hover { background:#203b78; }
#debriefAppShell .sidebar .sidebar-footer { display:none; }

/* Match LogOut ghost button — both Debrief screens */
.sidebar .staff-signout,#debriefAppShell .sidebar .staff-signout{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font-family:'Open Sans',Arial,sans-serif!important;font-size:14px!important;font-weight:500!important;line-height:20px!important;text-align:left!important;cursor:pointer!important}
.sidebar .staff-signout:hover,#debriefAppShell .sidebar .staff-signout:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
.sidebar .staff-signout .logout-icon{display:block;flex:none;width:16px;height:16px}
/* Keep Settings icon and label aligned with all other navigation rows. */
#debriefAppShell .sidebar nav a#settingsNav,
.sidebar nav a.nav-item[href="/staff.html"] { gap:10px!important; column-gap:10px!important; }
#debriefAppShell .sidebar nav a#settingsNav .nav-icon,
.sidebar nav a.nav-item[href="/staff.html"] .nav-icon { display:inline-flex!important; flex:0 0 16px!important; width:16px!important; min-width:16px!important; margin:0!important; justify-content:center!important; }
/* Match button is Tailwind text-sm (14px) at normal 400 font rendering; align sign-out precisely. */
.sidebar .staff-signout,#debriefAppShell .sidebar .staff-signout { font-size:14px!important; font-weight:500!important; letter-spacing:0!important; text-transform:none!important; }
.sidebar .staff-signout span,#debriefAppShell .sidebar .staff-signout span { font:500 14px/20px 'Open Sans',Arial,sans-serif!important; letter-spacing:0!important; }
/* Visual calibration against Match: Debrief sign-out was visibly oversized. */
.sidebar .staff-signout,#debriefAppShell .sidebar .staff-signout { font-size:12px!important; font-weight:600!important; }
.sidebar .staff-signout span,#debriefAppShell .sidebar .staff-signout span { font-size:12px!important; font-weight:600!important; line-height:20px!important; }
