:root {
  --ink: #20344c;
  --muted: #76859a;
  --blue: #315cda;
  --blue-light: #edf2ff;
  --teal: #248b8b;
  --line: #e3e9f0;
  --bg: #f3f6fa;
  --white: #fff;
  --red: #bb4255;
  --amber: #a16d25;
  --shadow: 0 10px 35px #20344c09;
  --display: "Avenir Next", "Trebuchet MS", "PingFang SC", sans-serif;
  --body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--body);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 15px;
  border-radius: 7px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #f0f4fb;
  border-color: #bccbe1;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.primary:hover {
  background: #244bc2;
}
.danger {
  color: var(--red);
  border-color: #e9bac2;
  background: #fff5f6;
}
.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}
.small {
  font-size: 12px;
  padding: 4px 9px;
}
.icon-button {
  padding: 4px 10px;
  font-size: 19px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 600 29px/1.35 var(--display);
  letter-spacing: -0.8px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  color: #64758d;
  margin-bottom: 7px;
}
input:not([type="checkbox"]):not([type="range"]),
select,
textarea {
  border: 1px solid #dce3ee;
  border-radius: 6px;
  background: #fff;
  padding: 9px 11px;
  width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
input[type="range"] {
  accent-color: var(--blue);
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
select {
  cursor: pointer;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font: 600 21px var(--display);
  min-width: 225px;
}
.brand small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 11px;
  width: 39px;
  height: 39px;
  font-size: 22px;
}
.top-context {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}
.top-controls {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.top-controls select {
  width: auto;
  max-width: 330px;
  background: #fbfcfe;
  font-size: 12px;
}
.shell {
  display: flex;
  min-height: calc(100vh - 76px);
}
aside {
  width: 234px;
  background: #fbfcfe;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.workspace-label {
  font-size: 11px;
  color: #8996a8;
  margin: 0 13px 22px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
nav button {
  display: flex;
  width: 100%;
  gap: 12px;
  text-align: left;
  margin-bottom: 8px;
  border-color: transparent;
  background: transparent;
  padding: 11px 13px;
  color: #6c7c92;
}
nav button.active {
  color: var(--blue);
  background: #eaf0ff;
  border-color: #e0e9ff;
  font-weight: 600;
}
.nav-icon {
  font-size: 17px;
  line-height: 1.5;
  width: 20px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 45px 12px 12px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-foot strong {
  font-weight: 400;
  color: #536882;
}
.sidebar-foot a {
  display: block;
  font-size: 11px;
  margin-top: 20px;
}
.small-symbol {
  font-size: 27px;
  color: #9daec5;
}
main {
  width: 100%;
  min-width: 0;
  padding: 34px 42px 65px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.eyebrow {
  font: 11px var(--mono);
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 10px;
}
.page-head p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.head-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #eff3f8;
  color: #617590;
}
.tag.blue {
  background: var(--blue-light);
  color: var(--blue);
}
.tag.teal {
  color: var(--teal);
  background: #e9f6f4;
}
.tag.red {
  background: #fff0f2;
  color: var(--red);
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.panel-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.panel h3 {
  margin-bottom: 9px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.field {
  margin-bottom: 16px;
}
.span2 {
  grid-column: span 2;
}
.notice {
  padding: 13px 16px;
  background: var(--blue-light);
  color: #4867a9;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 20px;
}
.notice.warn {
  background: #fff7e9;
  border-color: #b3833b;
  color: #936727;
}
.notice.red {
  background: #fff1f3;
  color: var(--red);
  border-color: var(--red);
}
.steps {
  display: flex;
  padding: 0;
  margin: 0 0 25px;
  list-style: none;
  gap: 0;
}
.steps li {
  flex: 1;
  position: relative;
}
.steps li:after {
  content: "";
  position: absolute;
  height: 1px;
  background: #dae3ef;
  top: 16px;
  left: 32px;
  right: 0;
}
.steps li:last-child:after {
  display: none;
}
.steps button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  text-align: left;
  position: relative;
  z-index: 1;
  width: 100%;
  color: #8795a9;
}
.steps b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7edf5;
  margin-bottom: 8px;
  font: 12px var(--mono);
  color: #7a8ca7;
}
.steps .current b {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 5px #e9efff;
}
.steps .current {
  color: var(--blue);
  font-weight: 600;
}
.step-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.document {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  font: 13px/2 var(--body);
  white-space: pre-wrap;
  overflow: auto;
  max-height: 580px;
  margin: 0;
}
.document mark,
mark {
  background: #fcdfa3;
  border-radius: 2px;
  padding: 2px 0;
}
.structured-field {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.structured-field:last-child {
  border: 0;
}
.structured-field .field-name {
  font: 11px var(--mono);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.structured-field .value {
  white-space: pre-wrap;
  margin-top: 7px;
  font-size: 12px;
  cursor: pointer;
}
.source-link {
  color: var(--blue);
  font-size: 11px;
  border: 0;
  background: none;
  padding: 0;
}
.revision {
  color: var(--teal);
  font-size: 10px;
}
.weight-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 70px;
  gap: 17px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.weight-row input[type="number"] {
  padding: 4px 8px !important;
}
.weight-total {
  font: 500 28px var(--display);
  color: var(--blue);
}
.verification-row {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 7px;
  margin: 12px 0;
}
.verification-row.excluded {
  opacity: 0.5;
}
.verification-row blockquote {
  margin: 8px 0;
  color: #7d8b9f;
  font-size: 12px;
  border-left: 2px solid #d9e3f1;
  padding-left: 10px;
}
.verification-row input[type="text"] {
  font-size: 12px;
}
.dimension-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
}
.dimension-card.selected {
  border-top: 3px solid var(--blue);
}
.dimension-card.unselected {
  opacity: 0.65;
  background: #f9fafc;
}
.dimension-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dimension-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.dimension-card .probe {
  color: #536b8d;
  background: #f5f8fd;
  padding: 8px;
  border-radius: 4px;
}
.opening-bar {
  position: sticky;
  top: 91px;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 23px 27px;
  margin-bottom: 25px;
}
.opening-bar .info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 15px 30px;
}
.info-item label {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #8d9bb0;
  margin-bottom: 3px;
}
.info-item strong {
  font-size: 13px;
  font-weight: 500;
}
.info-item.wide {
  grid-column: span 2;
}
.opening-line {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #657b96;
}
.opening-line p {
  flex: 1;
}
.brief-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(380px, 1.2fr);
  gap: 24px;
}
.section-index {
  display: inline-grid;
  place-items: center;
  background: #ecf2fe;
  width: 30px;
  height: 30px;
  font: 14px var(--mono);
  color: var(--blue);
  border-radius: 7px;
  margin-right: 10px;
}
.point {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.point:last-child {
  border: 0;
}
.point h3 {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  gap: 9px;
}
.point p {
  font-size: 12px;
  color: #6f8098;
  margin: 8px 0 8px 24px;
}
.point .source-link {
  margin-left: 24px;
}
.question-group {
  font-size: 11px;
  color: #8796aa;
  margin: 20px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.question-group:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.question {
  display: grid;
  grid-template-columns: 19px 1fr 27px;
  gap: 8px;
  padding: 10px 0;
}
.question p {
  font-size: 13px;
}
.question .tag {
  margin-top: 5px;
  background: #f3f6fa;
  font-size: 10px;
}
.question button {
  font-size: 14px;
  padding: 0;
  border: 0;
  color: #a2afc1;
}
.brief-start {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0;
}
.brief-start button {
  padding: 12px 30px;
}
.interviewer-view aside {
  display: none;
}
.interviewer-view main {
  max-width: 1250px;
}
.interviewer-view .topbar {
  padding: 0 42px;
}
.consent {
  background: #eef3ff;
  border-color: #dbe5ff;
}
.consent p {
  font-size: 12px;
  color: #526d9a;
  margin: 12px 0;
}
.live-layout {
  display: grid;
  grid-template-columns: minmax(450px, 1.5fr) minmax(285px, 1fr);
  gap: 24px;
}
.transcript-list {
  max-height: 420px;
  min-height: 190px;
  overflow: auto;
  padding-right: 8px;
}
.turn {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
}
.turn time {
  font: 10px var(--mono);
  color: #92a0b3;
  margin-top: 3px;
}
.turn .speaker {
  font-size: 10px;
  color: var(--blue);
  margin-bottom: 5px;
}
.turn .speaker.candidate {
  color: var(--teal);
}
.turn.excluded {
  opacity: 0.6;
  background: #faf8f8;
}
.turn.gap {
  background: #fff8ed;
  color: #956a35;
}
.turn.highlight {
  background: #ecf2ff;
}
.turn-entry {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}
.turn-entry .actions {
  margin-top: 10px;
  justify-content: space-between;
}
.turn-entry select {
  width: auto;
  font-size: 12px;
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-top: 24px;
}
.status-cell {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 13px 10px;
  font-size: 11px;
}
.status-cell .state {
  margin-top: 6px;
  color: #8a9bb2;
}
.status-cell.verified {
  border-top: 3px solid var(--teal);
}
.status-cell .source-link {
  font-size: 10px;
}
.status-cell b {
  font-weight: 500;
}
.copilot-float {
  position: fixed;
  right: 30px;
  bottom: 35px;
  width: 380px;
  max-width: calc(100vw - 30px);
  border-radius: 10px;
  border: 1px solid #bdd0f3;
  border-left: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 12px 50px #20344c25;
  z-index: 40;
  overflow: hidden;
}
.copilot-float.silent {
  opacity: 0.16 !important;
  border-left-color: #c3cedd;
}
.copilot-float.p0 {
  border-left-color: var(--red);
  border-color: #e9b9c2;
}
.float-handle {
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  font-size: 10px;
  color: var(--muted);
  touch-action: none;
}
.float-main {
  padding: 17px 16px;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}
.float-details {
  padding: 0 16px 12px;
  font-size: 11px;
  color: #667d9b;
}
.float-actions {
  padding: 9px 12px;
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.float-actions button {
  padding: 4px 8px;
  font-size: 11px;
}
.shortcut {
  font: 10px var(--mono);
  color: #9aa9bb;
  margin-left: 3px;
}
.float-controls {
  font-size: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.float-controls input {
  width: 90px;
}
.empty {
  padding: 35px 15px;
  text-align: center;
  color: #8e9cb0;
  font-size: 12px;
}
.empty .empty-symbol {
  font-size: 35px;
  color: #bdcbe0;
  margin-bottom: 10px;
}
.eval-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}
.eval-layout > .panel {
  padding: 18px;
  max-height: 75vh;
  overflow: auto;
}
.eval-layout .transcript-list {
  max-height: none;
}
.evidence-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 5px;
  margin: 13px 0;
}
.evidence-card blockquote {
  margin: 9px 0;
  font-size: 12px;
  color: #566e8b;
  cursor: pointer;
}
.evidence-card time {
  font: 10px var(--mono);
  color: #8d9bb0;
}
.evidence-card p {
  font-size: 11px;
  color: var(--muted);
}
.score-card {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.score-card:first-of-type {
  padding-top: 0;
}
.score-card p {
  font-size: 11px;
  color: #7a8ba3;
  margin: 7px 0;
}
.score-options {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}
.score-options label {
  margin: 0;
  flex: 1;
  position: relative;
}
.score-options input {
  position: absolute;
  opacity: 0;
}
.score-options span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
}
.score-options input:checked + span {
  color: var(--blue);
  background: var(--blue-light);
  border-color: #9db4f0;
}
.score-card textarea {
  font-size: 11px;
}
.score-card select {
  font-size: 11px;
  padding: 6px 8px;
}
.score-card .anchor {
  font-size: 11px;
  color: #7c8ea7;
  margin: 8px 0;
}
.evidence-check {
  font-size: 11px;
  color: #677d99;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.summary-bar {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 18px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 24px;
}
.summary-bar .metric-value {
  font: 500 25px var(--display);
  color: var(--ink);
}
.summary-bar label {
  font-size: 10px;
  margin: 0;
}
.summary-bar .summary-end {
  margin-left: auto;
}
.rule-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.rule-tabs button {
  font-size: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}
.metric-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric-card label {
  font-size: 11px;
}
.metric-card strong {
  font: 500 29px var(--display);
}
.metric-card small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  padding: 11px 9px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  background: #f9fbfe;
}
pre.code {
  white-space: pre-wrap;
  font: 11px/1.8 var(--mono);
  color: #667d99;
}
details {
  font-size: 12px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  color: #6e82a1;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  max-width: 800px;
  width: calc(100% - 40px);
  color: var(--ink);
  box-shadow: 0 25px 100px #20344c35;
}
dialog::backdrop {
  background: #1b2d4a55;
  backdrop-filter: blur(3px);
}
dialog form h3 {
  margin-bottom: 14px;
}
dialog form .actions {
  justify-content: flex-end;
  margin-top: 20px;
}
dialog input {
  margin: 8px 0;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
#source-text {
  white-space: pre-wrap;
  font: 13px/2 var(--body);
  max-height: 65vh;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #263d5e;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 13px;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.upload-area {
  border: 1px dashed #b9c9e3;
  background: #f8faff;
  padding: 18px;
  border-radius: 7px;
  margin-bottom: 15px;
}
.upload-area input {
  font-size: 12px;
}
.mini-log {
  font-size: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.progress {
  height: 4px;
  background: #edf2fa;
  border-radius: 4px;
  margin: 15px 0;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
}
.error-text {
  color: var(--red);
  font-size: 12px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-side .panel {
  padding: 20px;
}
.telemetry-note {
  font-size: 11px;
  color: var(--muted);
}
.wizard-hidden {
  display: none;
}
.report-followup {
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.upload-status {
  font-size: 11px;
  color: var(--muted);
}
.print-only {
  display: none;
}
@media (min-width: 1600px) {
  main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .brief-layout {
    gap: 30px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 190px;
    padding: 25px 12px;
  }
  main {
    padding: 28px 25px;
  }
  .top-context {
    display: none;
  }
  .topbar {
    gap: 15px;
    padding: 0 22px;
  }
  .brand {
    min-width: 170px;
  }
  .top-controls select {
    max-width: 240px;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .eval-layout {
    grid-template-columns: 1fr 1fr;
  }
  .eval-layout > .panel:last-child {
    grid-column: span 2;
    max-height: none;
  }
  .live-layout {
    grid-template-columns: 1fr;
  }
  .status-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 14px 18px;
    gap: 12px;
  }
  .brand {
    min-width: 150px;
  }
  .top-controls {
    width: 100%;
    gap: 7px;
  }
  .top-controls #session-select {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .top-controls select {
    font-size: 11px;
  }
  .shell {
    display: block;
  }
  aside {
    width: 100%;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
    margin: 0 4px;
  }
  .nav-icon {
    display: none;
  }
  main {
    padding: 23px 17px;
  }
  .page-head {
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    font-size: 25px;
  }
  .grid2,
  .grid3,
  .brief-layout,
  .eval-layout {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .panel {
    padding: 18px;
  }
  .opening-bar {
    position: static;
    padding: 19px;
  }
  .opening-bar .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .info-item.wide {
    grid-column: span 2;
  }
  .opening-line {
    align-items: flex-start;
  }
  .opening-line p {
    font-size: 11px;
  }
  .eval-layout > .panel:last-child {
    grid-column: auto;
  }
  .eval-layout > .panel {
    max-height: none;
  }
  .summary-bar {
    gap: 16px;
    flex-wrap: wrap;
  }
  .summary-bar .summary-end {
    margin-left: 0;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .live-layout {
    display: block;
  }
  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    gap: 7px;
  }
  .steps button {
    font-size: 9px;
  }
  .steps li:after {
    display: none;
  }
  .steps b {
    width: 27px;
    height: 27px;
  }
  .topbar {
    position: static;
  }
  .copilot-float {
    bottom: 15px;
    right: 15px;
  }
  .interviewer-view .topbar {
    padding: 15px 18px;
  }
  .weight-row {
    grid-template-columns: 1fr 1fr 55px;
    gap: 10px;
  }
  .verification-row {
    grid-template-columns: 20px 1fr;
  }
  .verification-row > .actions {
    grid-column: 2;
  }
  .question {
    padding: 12px 0;
  }
  .turn-entry .actions {
    gap: 7px;
  }
  .live-layout {
    min-width: 0;
  }
  .live-layout > *,
  .grid2 > * {
    min-width: 0;
  }
  .panel table {
    display: block;
    overflow: auto;
  }
  .source-link {
    text-align: left;
  }
  .metric-card {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 9mm;
  }
  body {
    background: #fff;
    font-size: 10px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .topbar,
  aside,
  .page-head,
  .brief-start,
  .head-actions,
  .step-foot,
  .steps,
  .copilot-float,
  dialog,
  #toast,
  button:not(.printable),
  .no-print {
    display: none !important;
  }
  main {
    padding: 0 !important;
    max-width: none !important;
  }
  .shell {
    display: block;
  }
  .opening-bar {
    position: static;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-top-width: 2px;
  }
  .opening-bar .info-grid {
    gap: 6px 15px;
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .info-item label {
    font-size: 8px;
  }
  .info-item strong {
    font-size: 10px;
  }
  .opening-line {
    padding-top: 8px;
    margin-top: 8px;
  }
  .opening-line p {
    font-size: 9px;
  }
  .brief-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 12px;
  }
  .panel {
    padding: 12px 14px;
    box-shadow: none;
    margin-bottom: 10px;
  }
  .panel-title {
    margin-bottom: 9px;
  }
  h2 {
    font-size: 13px;
  }
  .point {
    padding: 8px 0;
    break-inside: avoid;
  }
  .point h3 {
    font-size: 10px;
  }
  .point p {
    font-size: 9px;
    margin: 4px 0 4px 18px;
  }
  .point .source-link {
    font-size: 8px;
    margin-left: 18px;
  }
  .question {
    padding: 5px 0;
    font-size: 9px;
    grid-template-columns: 12px 1fr 0;
  }
  .question p {
    font-size: 10px;
  }
  .question .tag {
    font-size: 8px;
    padding: 0 5px;
  }
  .question-group {
    margin: 10px 0 3px;
    font-size: 9px;
  }
  .section-index {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .panel-title p {
    font-size: 9px;
  }
  .notice {
    font-size: 9px;
    padding: 8px;
    margin-bottom: 10px;
  }
  .question input,
  .point input {
    width: 10px;
    height: 10px;
  }
  .print-only {
    display: block;
  }
  .interviewer-view main {
    max-width: none;
  }
  a {
    color: inherit;
  }
  .eval-layout {
    display: block;
  }
  .eval-layout > .panel {
    max-height: none;
    overflow: visible;
  }
}
.copilot-float.nontech:not(.p0) {
  border-left-color: var(--amber);
  border-color: #e4cfab;
}
.copilot-float.nontech:not(.p0) .float-handle {
  color: var(--amber);
}
[hidden] {
  display: none !important;
}

.engine-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:8px 30px; border-bottom:1px solid var(--line); background:#f5f8fd; font-size:11px; }
#engine-quick-controls { display:flex; gap:8px; }
.audio-capture .actions, .engine-panel .actions { margin:12px 0; flex-wrap:wrap; }
.audio-capture select { max-width:100%; }
.engine-panel p { margin:8px 0; overflow-wrap:anywhere; }
.engine-panel output { display:block; color:var(--muted); font-size:12px; white-space:pre-wrap; }
.desktop-copilot { margin:0; padding:8px; min-width:0; background:#f5f8fd; }
.desktop-copilot .desktop-float { position:static; width:100%; max-width:100%; box-sizing:border-box; opacity:1 !important; box-shadow:none; }
.desktop-copilot .float-main { font-size:16px; padding:16px 12px; }
.desktop-copilot .float-actions { flex-wrap:wrap; }
.desktop-copilot .float-details { overflow-wrap:anywhere; }
.desktop-dimensions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); }
.desktop-dimensions div { padding:8px 5px; font-size:10px; border:1px solid #edf1f7; }
.desktop-dimensions b,.desktop-dimensions span { display:block; font-weight:400; overflow-wrap:anywhere; }
.desktop-dimensions .verified { background:#eef8f4; color:var(--teal); }
.desktop-shortcuts,.desktop-notice { font-size:11px; color:var(--muted); padding:10px; }
@media(max-width:650px) { .engine-toolbar {padding:8px 15px;} .audio-capture .actions {align-items:stretch;} }
.engine-toolbar > span { overflow-wrap:anywhere; min-width:0; }
