:root {
  --ink: #173c38;
  --text: #243d39;
  --muted: #778580;
  --teal: #195a50;
  --dark: #123d36;
  --cream: #f6f5ef;
  --paper: #fffefa;
  --line: #e1e7df;
  --mint: #eaf2e9;
  --amber: #9a6b22;
  --radius: 14px;
  --shadow: 0 5px 25px #183a3305;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--cream);
  font-size: 14px;
  line-height: 1.65;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
button,
.button {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  border-radius: 8px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.4;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--dark);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #83bc9e;
  outline-offset: 3px;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--teal);
  border-color: #bfcdc3;
}
.secondary:hover {
  background: var(--mint) !important;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}
.text-button:hover {
  background: var(--mint);
  color: var(--ink);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin-bottom: 9px;
}
h2 {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 18px;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}
h4 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin: 22px 0 8px;
}
p {
  margin-bottom: 14px;
}
small {
  font-size: 11px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.65;
}
code {
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #84978e;
  margin-bottom: 12px;
}
.notice {
  background: var(--mint);
  border: 1px solid #d5e2d2;
  padding: 14px 17px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  margin: 18px 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.subtle {
  background: #f4f5ee;
  border-color: #e5e8dc;
  color: #748070;
}
.notice.amber,
.notice.error {
  background: #fff6e7;
  border-color: #f0dbb7;
  color: #8c6228;
}
.notice.error {
  background: #fff0ec;
  color: #9d4339;
  border-color: #f1d3ca;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #f0f2ed;
  padding: 4px 9px;
  color: #758177;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge.green {
  background: #eaf2e7;
  color: #4e7655;
}
.badge.amber {
  background: #fbefdb;
  color: #9c7137;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.compact {
  padding: 22px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.section-top h2,
.section-top h3 {
  margin: 0;
}
.section-heading {
  margin: 32px 0 18px;
}
.section-heading small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px;
}
.form-row {
  display: flex;
  gap: 16px;
  align-items: start;
}
.form-row > label {
  flex: 1;
  min-width: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5b7066;
}
input,
select,
textarea {
  color: var(--text);
  background: #fffefa;
  border: 1px solid #dbe1d7;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  line-height: 1.75;
}
select {
  height: 43px;
}
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--teal);
}
fieldset {
  padding: 0;
  margin: 26px 0;
  border: 0;
  min-width: 0;
}
legend {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.form-footer .muted {
  font-size: 11px;
}
.progress-copy {
  font-size: 12px;
  color: var(--teal);
  margin-top: 15px;
}
.loading,
.evaluation-loading {
  padding: 80px 30px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 27px;
  height: 27px;
  border: 2px solid #d3ddd2;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading p {
  margin-top: 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: #718274;
}
.empty p {
  font-size: 12px;
  margin-bottom: 0;
}
.empty-mark {
  display: inline-flex;
  background: #eef1e9;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 14px;
}
.boot {
  padding: 12vh 10vw;
  max-width: 800px;
  margin: auto;
}
.lead {
  font-size: 17px;
  line-height: 1.9;
  color: #6b7c72;
}
.quick-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 25px;
}
#app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 225px;
  background: #f0f3ec;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-identity {
  display: block;
}
.brand-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-primary {
  color: var(--teal);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.brand-product {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
}
.brand .brand-description {
  display: block;
  margin-top: 7px;
  color: #7b8b7e;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.5;
}
.auth-card > .brand {
  justify-content: center;
  margin-bottom: 28px;
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #98a596;
  margin: 47px 12px 15px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #79887a;
  font-size: 16px;
  border-radius: 8px;
}
.sidebar nav a span {
  font-size: 13px;
}
.sidebar nav a:hover {
  text-decoration: none;
  background: #e9eee3;
}
.sidebar nav a.selected {
  background: var(--teal);
  color: #f9fcf2;
}
.sidebar-foot {
  margin-top: auto;
  padding: 35px 10px 0;
  font-size: 10px;
  color: #8a9787;
}
.sidebar-foot strong {
  font-size: 11px;
  color: #607b68;
}
.sidebar-foot p {
  margin: 13px 0 2px;
}
.sidebar-foot small {
  font-size: 9px;
}
.workspace {
  margin-left: 225px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 39px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #889184;
  background: #fafaf5;
}
.topbar strong {
  font-weight: 500;
  color: #50665b;
}
.topbar .muted {
  padding: 0 12px;
}
.identity {
  display: flex;
  gap: 15px;
  align-items: center;
  font-weight: 400;
}
.identity select {
  width: auto;
  max-width: 210px;
  margin: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}
main {
  padding: 38px 40px 30px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 30px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.footer {
  text-align: center;
  font-size: 10px;
  color: #95a08f;
  padding: 22px 30px 28px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
}
.home-aside {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.create-panel {
  padding: 30px;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.persona-card {
  position: relative;
  cursor: pointer;
  border: 1px solid #e0e5dc;
  border-radius: 9px;
  padding: 20px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fdfef9;
  min-height: 130px;
}
.persona-card:has(input:checked) {
  border-color: #2b7864;
  background: #f0f5eb;
  box-shadow: inset 0 0 0 1px #2b7864;
}
.persona-card input {
  position: absolute;
  right: 15px;
  top: 17px;
}
.persona-symbol {
  font-size: 10px;
  color: #9caa94;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.persona-card strong {
  font-size: 14px;
  margin-bottom: 7px;
  color: #385b48;
}
.persona-card > span:last-child {
  font-size: 11px;
  color: #81917b;
  font-weight: 400;
  line-height: 1.7;
}
.feature-card {
  padding: 30px;
  background: var(--teal);
  color: #eaf1e1;
  border-radius: var(--radius);
  min-height: 285px;
  position: relative;
  overflow: hidden;
}
.feature-card:after {
  content: "";
  width: 210px;
  height: 210px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  position: absolute;
  right: -70px;
  bottom: -80px;
  box-shadow:
    0 0 0 30px #ffffff03,
    0 0 0 60px #ffffff03;
  pointer-events: none;
}
.feature-card .eyebrow {
  font-size: 8px;
  color: #9db8a4;
  letter-spacing: 1.5px;
}
.feature-card h2 {
  font-family: "Songti SC", serif;
  font-size: 21px;
  line-height: 1.6;
  font-weight: 500;
  margin-top: 18px;
}
.feature-card p {
  font-size: 11px;
  line-height: 1.9;
  color: #b3cbb8;
}
.feature-card strong {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c3d2bb;
  font-weight: 400;
}
.feature-rule {
  width: 35px;
  height: 1px;
  background: #7fa18c;
  margin: 24px 0;
}
.recent-session {
  display: block;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.recent-session strong {
  font-size: 12px;
  display: block;
  color: #526b58;
  font-weight: 500;
}
.recent-session span {
  display: block;
  font-size: 10px;
  color: #8f9c88;
  margin-top: 7px;
}
.recent-session:last-child {
  padding-bottom: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.session-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: block;
  min-width: 0;
}
.session-card:hover {
  border-color: #9dbca8;
  text-decoration: none;
}
.session-card h3 {
  margin-top: 21px;
  font-size: 16px;
}
.session-card p {
  font-size: 12px;
  color: var(--muted);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8b9887;
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.session-layout {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 285px;
  gap: 18px;
  align-items: start;
}
.journey {
  padding: 23px 17px;
}
.journey ol {
  list-style: none;
  padding: 0;
  margin: 24px 0 34px;
}
.journey li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  color: #99a08e;
  margin-bottom: 23px;
  position: relative;
}
.journey li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2f3ed;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  font-size: 9px;
}
.journey li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 11px;
  width: 1px;
  background: #e2e7dc;
  height: 21px;
  top: 26px;
}
.journey li.current {
  color: var(--teal);
  font-weight: 600;
}
.journey li.current > span {
  background: var(--teal);
  color: white;
}
.journey li.visited > span {
  background: #ebf3e4;
  color: #7a9875;
}
.journey li small {
  display: block;
  font-weight: 400;
  font-size: 8px;
  color: #8ba07f;
}
.journey p {
  font-size: 9px;
  color: #98a18f;
  margin: 0;
  line-height: 2;
}
.chat {
  padding: 0;
  overflow: hidden;
}
.chat-heading {
  padding: 22px 22px 18px;
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.chat-heading h3 {
  margin: 0;
  font-size: 14px;
}
.chat-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 0;
}
.chat-heading .badge {
  margin-left: auto;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceee2;
  color: #8c957d;
  font-family: "Songti SC", serif;
  font-size: 17px;
}
.transcript {
  padding: 24px;
  min-height: 330px;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c3d0bf transparent;
}
.message {
  margin-bottom: 22px;
  max-width: 94%;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  color: #a1aa97;
  margin-bottom: 7px;
}
.message-meta strong {
  font-weight: 400;
  color: #89977e;
}
.message-body {
  padding: 13px 15px;
  background: #f2f4ec;
  border-radius: 0 11px 11px 11px;
  font-size: 12px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.advisor {
  margin-left: auto;
}
.message.advisor .message-meta {
  justify-content: flex-end;
}
.message.advisor .message-body {
  background: #e9f1e5;
  color: #375846;
  border-radius: 11px 0 11px 11px;
}
.message.system {
  max-width: 100%;
  text-align: center;
}
.message.system .message-meta {
  display: none;
}
.message.system .message-body {
  background: transparent;
  color: #91a184;
  font-size: 9px;
  padding: 3px 15px;
}
.composer {
  padding: 17px 22px 0;
  border-top: 1px solid var(--line);
}
.composer textarea {
  border: 0;
  box-shadow: none;
  padding: 3px 0;
  resize: vertical;
  min-height: 70px;
  font-size: 12px;
  margin-top: 0;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}
.composer-footer small {
  font-size: 9px;
  color: #a0a58f;
}
.composer-footer button {
  font-size: 11px;
  padding: 9px 17px;
  flex-shrink: 0;
}
/* One quiet control strip: sending stays the primary conversation action. */
.session-controls {
  margin: 16px 22px 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.session-controls-meta { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.session-controls-meta > span { color:var(--muted); font-size:11px; white-space:nowrap; }
.session-controls-meta small { color:var(--muted); font-size:11px; text-align:right; }
.session-actions { display:flex; align-items:center; gap:8px; }
.session-actions .session-action { min-height:38px; padding:8px 12px; border:1px solid var(--line); background:var(--paper); color:var(--text); font-size:12px; font-weight:500; gap:5px; white-space:nowrap; }
.session-actions .session-pause { margin-right:auto; }
.session-actions .session-next { color:var(--teal); border-color:#b4cbc1; background:#f1f6f1; font-weight:600; }
.session-actions .session-action:hover { background:#edf2eb; border-color:#a3bcb0; }
.session-actions .session-finish { color:#776453; }
.session-actions .session-finish:hover { background:#f5f0e9; border-color:#cbbda9; }
.session-actions .session-action:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
.finish-dialog { max-width:480px; }
.finish-dialog h2 { margin-top:6px; }
.finish-dialog p { line-height:1.8; }
.readonly-bar {
  text-align: center;
  padding: 18px;
  background: #f5f7f0;
  color: #96a18c;
  font-size: 12px;
}
.chat > #session-error {
  padding: 0 20px;
}
.context {
  padding: 18px;
  max-height: 83vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  margin-bottom: 21px;
}
.tabs button {
  background: transparent;
  color: #98a28e;
  border: 0;
  border-radius: 0;
  padding: 5px 0 14px;
  font-size: 10px;
  font-weight: 400;
}
.tabs button[aria-selected="true"] {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  font-weight: 600;
}
.briefing h3 {
  font-size: 12px;
}
.briefing .badge {
  font-size: 8px;
  padding: 3px 5px;
}
.briefing p,
.briefing li {
  font-size: 11px;
  color: #7a8972;
  line-height: 1.9;
}
.briefing .notice {
  font-size: 9px;
  padding: 9px;
  margin: 12px 0;
}
.fact-list {
  margin: 0;
  padding-left: 16px;
  overflow-wrap: anywhere;
}
.fact-list li {
  margin: 7px 0;
}
.context .prompt-text {
  font-size: 10px;
  background: #f4f6ee;
  padding: 14px;
}
.context .notice {
  font-size: 10px;
}
.context h4 {
  font-size: 10px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 17px;
}
summary {
  font-size: 11px;
  color: #6a846b;
  cursor: pointer;
  line-height: 1.7;
}
details[open] > summary {
  margin-bottom: 14px;
}
.background-message {
  max-width: 100%;
  opacity: 0.8;
}
.background-message .message-body {
  font-size: 10px;
}
.report-summary {
  margin: 20px 0;
}
.report-summary p {
  font-size: 13px;
  line-height: 1.9;
}
.report-summary h2 {
  font-size: 15px;
}
.report-summary button {
  font-size: 11px;
}
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 18px;
  margin: 22px 0 35px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.metric > span {
  font-size: 11px;
  color: #8b9882;
}
.metric strong {
  font-family: "Songti SC", serif;
  font-size: 44px;
  line-height: 1.5;
  color: var(--teal);
  font-weight: 400;
}
.metric strong small {
  font-family: inherit;
  font-size: 17px;
  color: #a3b199;
}
.metric p {
  font-size: 10px;
  color: #8c9983;
  margin: 0;
}
.metric.scope {
  gap: 16px;
}
.metric.scope p {
  font-size: 12px;
  color: #6e846e;
  line-height: 1.9;
}
.metric.scope > small {
  font-size: 9px;
  color: #98a58d;
}
.rules {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.rule-card h3 {
  font-size: 14px;
}
.rule-card h3 small {
  font-family: ui-monospace, monospace;
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #9caa93;
  margin-right: 13px;
}
.rule-card p {
  font-size: 12px;
  color: #6b7d65;
  line-height: 1.9;
}
.rule-card .suggestion {
  background: #f6f7ef;
  padding: 11px 14px;
  color: #8e9c7f;
  font-size: 11px;
  border-radius: 6px;
}
.rule-card details {
  padding-top: 11px;
}
.evidence {
  border-left: 2px solid #d9e3cf;
  background: #f6f8f0;
  margin: 12px 0;
  padding: 13px 17px;
}
.evidence small {
  font-size: 9px;
  color: #8da07e;
  overflow-wrap: anywhere;
}
.evidence blockquote {
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 7px 0;
  color: #6c8164;
}
.review-form {
  background: #f8f9f2;
  padding: 15px;
  border-radius: 6px;
}
.review-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-form fieldset {
  margin: 0;
  max-height: 220px;
  overflow: auto;
}
.evidence-choice {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 10px;
  margin: 7px 0;
  font-weight: 400;
}
.review-form button {
  align-self: flex-start;
  font-size: 11px;
}
.review-record {
  background: #edf3e7;
  border-radius: 6px;
  padding: 14px 17px;
  margin-top: 14px;
  font-size: 11px;
}
.review-record p {
  margin: 7px 0;
}
.next-practice {
  margin-top: 25px;
}
.next-practice h2 {
  font-family: "Songti SC", serif;
  font-size: 24px;
}
.next-practice > form {
  max-width: 800px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.next-practice form button {
  align-self: flex-start;
}
.recommendation {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.recommendation strong {
  font-size: 13px;
}
.recommendation p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 25px;
}
.code-input {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: #fafbf4;
  tab-size: 2;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.list-row div {
  min-width: 0;
  flex: 1;
}
.list-row strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.list-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.assignment-card h3 {
  margin-top: 23px;
}
.assignment-card p {
  font-size: 12px;
}
.assignment-card .muted {
  font-size: 10px;
}
.assignment-card button {
  font-size: 11px;
  margin-top: 15px;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.config-items article {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.config-items article strong {
  font-size: 13px;
}
.config-items article p,
.config-items li {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.config-grid .panel h2 {
  font-size: 16px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 8px;
  background: #204e43;
  color: white;
  box-shadow: 0 4px 25px #173c3820;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1550px) {
  .session-layout {
    grid-template-columns: 185px minmax(0, 1fr) 340px;
  }
  .transcript {
    max-height: 60vh;
  }
  .message-body {
    font-size: 13px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .persona-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 190px;
    padding: 30px 17px;
  }
  .workspace {
    margin-left: 190px;
  }
  main {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .session-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .journey {
    grid-column: 1/-1;
    padding: 15px 20px;
  }
  .journey .eyebrow,
  .journey p {
    display: none;
  }
  .journey ol {
    display: flex;
    gap: 25px;
    margin: 0;
    overflow: auto;
  }
  .journey li {
    flex-shrink: 0;
    margin: 0;
    gap: 7px;
  }
  .journey li:not(:last-child):after {
    display: none;
  }
  .journey li small {
    display: none;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .heading-actions .button {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 165px;
    padding: 28px 13px;
  }
  .workspace {
    margin-left: 165px;
  }
  .brand-primary {
    font-size: 25px;
  }
  .brand-heading {
    gap: 9px;
  }
  .brand-product {
    font-size: 15px;
  }
  .sidebar nav a {
    padding: 11px 12px;
  }
  .sidebar-foot {
    padding-left: 5px;
    font-size: 9px;
  }
  .sidebar-foot strong {
    font-size: 9px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .feature-card {
    min-height: 0;
  }
  .session-layout {
    grid-template-columns: 1fr;
  }
  .context {
    max-height: none;
  }
  .context .briefing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .context .briefing .section-top,
  .context .briefing > p,
  .context .briefing > .notice,
  .prior-record {
    grid-column: 1/-1;
  }
  .context .briefing h4 {
    grid-column: 1/-1;
  }
  .quality-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .score-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric.scope {
    grid-column: 1/-1;
  }
  .transcript {
    max-height: 60vh;
  }
}
@media (max-width: 700px) {
  #app {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 18px 0;
    display: block;
    border-right: 0;
  }
  .brand-primary {
    font-size: 25px;
  }
  .brand .brand-description {
    margin-top: 4px;
    font-size: 10px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 7px;
    overflow: auto;
    margin-top: 20px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .sidebar nav a {
    padding: 8px 11px;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12px;
  }
  .sidebar nav a span {
    font-size: 10px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 19px;
    font-size: 9px;
  }
  .topbar .muted {
    padding: 0 5px;
  }
  .identity {
    gap: 3px;
  }
  .identity .badge {
    display: none;
  }
  .identity select {
    font-size: 10px;
    max-width: 150px;
    padding-right: 0;
  }
  main {
    padding: 25px 18px 20px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .panel {
    padding: 20px;
  }
  .home-grid,
  .home-aside {
    display: block;
  }
  .home-aside > * {
    margin-top: 20px;
  }
  .persona-grid {
    gap: 9px;
  }
  .persona-card {
    padding: 16px 13px;
    min-height: 120px;
  }
  .persona-card strong {
    font-size: 12px;
  }
  .persona-card > span:last-child {
    font-size: 10px;
  }
  .persona-card input {
    right: 10px;
    top: 13px;
  }
  .section-top h2 {
    font-size: 16px;
  }
  .section-top {
    gap: 8px;
  }
  .form-row {
    flex-wrap: wrap;
    gap: 13px;
  }
  .form-row > label {
    flex-basis: calc(50% - 8px);
  }
  .form-footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  .form-footer button {
    width: 100%;
  }
  .feature-card {
    padding: 25px;
  }
  .feature-card h2 {
    font-size: 22px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .journey {
    padding: 12px 15px;
  }
  .journey ol {
    gap: 16px;
  }
  .journey li {
    font-size: 9px;
  }
  .journey li > span {
    width: 20px;
    height: 20px;
  }
  .chat {
    padding: 0;
  }
  .chat-heading {
    padding: 17px;
  }
  .transcript {
    padding: 18px;
    min-height: 270px;
    max-height: 60vh;
  }
  .message {
    max-width: 98%;
  }
  .message-body {
    font-size: 12px;
    padding: 12px 14px;
  }
  .message-meta {
    font-size: 8px;
  }
  .composer {
    padding: 14px 17px 0;
  }
  .composer-footer small {
    max-width: 180px;
    font-size: 8px;
  }
  .composer-footer {
    gap: 8px;
  }
  .session-controls { margin:14px 17px 16px; }
  .session-controls-meta { align-items:flex-start; }
  .session-actions .session-action { padding:9px 10px; min-height:42px; }
  .session-actions { flex-wrap:wrap; }
  .finish-dialog .assignment-dialog-actions { flex-wrap:wrap; }
  .context {
    padding: 18px;
  }
  .context .briefing {
    display: block;
  }
  .score-grid {
    gap: 10px;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric strong {
    font-size: 35px;
  }
  .metric p {
    font-size: 9px;
  }
  .rule-card .section-top {
    align-items: flex-start;
  }
  .rule-card h3 {
    font-size: 13px;
  }
  .rule-card h3 small {
    display: block;
    margin-bottom: 4px;
  }
  .rule-card .badge {
    font-size: 9px;
  }
  .review-form {
    padding: 12px;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .quality-grid .section-top {
    flex-wrap: wrap;
  }
  .quality-grid .form-footer button {
    width: auto;
    flex: 1;
  }
  .footer {
    font-size: 8px;
    padding: 20px;
  }
  .notice {
    font-size: 11px;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .next-practice form button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}

.reply-example {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: #f2f6ef;
  border-radius: 0 8px 8px 0;
}
.reply-example blockquote {
  margin: 10px 0;
  color: #375846;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.reply-content { margin-top: 12px; }

/* Evidence review: one readable overview, progressive detail, stable controls. */
.review-priorities { margin: 26px 0; }
.priority-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.priority-card { background: #fff9ee; border: 1px solid #e7d8bc; color: var(--text); text-align:left; display:block; padding:20px; }
.priority-card:hover { background:#f8efdc; }
.priority-card strong { display:block; margin:8px 0; font-size:16px; }
.priority-card p { font-weight:400; line-height:1.7; margin:8px 0 14px; }
.priority-card > span:last-child { color:var(--amber); font-size:12px; }
.priority-index { color:var(--amber); font:24px Georgia,serif; }
.stage-overview { display:flex; gap:8px; overflow-x:auto; padding:4px 0 12px; margin:20px 0; }
.stage-chip.secondary { flex:0 0 auto; display:grid; text-align:left; gap:3px; padding:12px 16px; border-color:var(--line); background:var(--paper); }
.stage-chip span { font-size:12px; color:var(--muted); font-weight:400; }
.report-tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:20px; scroll-margin-top:20px; }
.report-tabs button { border:0; border-radius:0; background:transparent; color:var(--muted); padding:14px 22px; border-bottom:3px solid transparent; }
.report-tabs button[aria-selected="true"] { color:var(--teal); border-color:var(--teal); }
.report-toolbar { display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; }
.report-toolbar label { margin:0; font-size:12px; color:var(--muted); }
.rule-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:16px 0 20px; }
.rule-filters button { padding:7px 12px; font-size:12px; border-color:var(--line); }
.rule-filters button[aria-pressed="true"] { background:var(--teal); color:white; border-color:var(--teal); }
.rule-filters #rule-count { margin-left:auto; font-size:12px; }
.rule-filters .text-button { border:0; background:transparent; color:var(--teal); }
.rules { display:block; }
.stage-evaluation { padding:0; margin-bottom:16px; overflow:hidden; }
.stage-evaluation > summary { display:flex; align-items:center; justify-content:space-between; padding:22px 24px; cursor:pointer; gap:12px; list-style:none; }
.stage-evaluation > summary::before { content:'＋'; font-size:20px; color:var(--teal); }
.stage-evaluation[open] > summary::before { content:'−'; }
.stage-evaluation > summary > span:first-of-type { flex:1; }
.stage-evaluation > summary strong { font-size:18px; }
.stage-evaluation > summary small { display:block; font-size:12px; font-weight:400; color:var(--muted); margin-top:4px; }
.stage-score { font-size:26px; font-weight:600; white-space:nowrap; }
.stage-score small { display:inline!important; }
.stage-body { padding:0 24px 22px; border-top:1px solid var(--line); }
.assessment-group > h3 { color:var(--muted); font-size:12px; letter-spacing:.08em; margin:22px 0 8px; }
.rule-card { border:1px solid var(--line); border-radius:10px; margin:8px 0; background:var(--paper); }
.rule-detail > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; list-style:none; cursor:pointer; }
.rule-detail > summary::after { content:'⌄'; color:var(--muted); }
.rule-detail[open] > summary::after { transform:rotate(180deg); }
.rule-title { flex:1; display:grid; gap:3px; }
.rule-title small { color:var(--muted); font-size:10px; letter-spacing:.04em; }
.rule-title strong { font-size:14px; font-weight:600; }
.rule-score { display:flex; gap:12px; align-items:center; white-space:nowrap; font-size:13px; }
.rule-score small { color:var(--muted); }
.rule-body { padding:0 18px 18px; border-top:1px solid var(--line); }
.rule-body > p { margin:16px 0; }
.rule-body details { margin-top:12px; }
.rule-body .criterion { color:var(--muted); font-size:12px; }
.rule-body .criterion p { line-height:1.8; }
.fact-inline { background:var(--cream); padding:12px 16px; border-radius:8px; }
.fact-inline small { color:var(--teal); }
.fact-inline p { margin:4px 0 0; }
.fact-grid,.capability-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.fact-card { background:var(--paper); border:1px solid var(--line); padding:20px; border-radius:12px; }
.fact-card .section-top { gap:12px; align-items:flex-start; }
.fact-card details { font-size:12px; }
.capability-card.secondary { background:var(--paper); border-color:var(--line); text-align:left; display:grid; justify-content:stretch; padding:22px; }
.capability-card b { font-size:28px; margin:8px 0; }
.capability-card small,.capability-card > span { font-size:12px; color:var(--muted); font-weight:400; }
.inquiry-panel { margin-top:22px; }
.inquiry-panel > strong { display:block; margin-top:16px; }
[hidden] { display:none!important; }
@media(max-width:760px) {
  .priority-grid,.fact-grid,.capability-grid { grid-template-columns:1fr; }
  .report-toolbar { grid-template-columns:1fr 1fr; gap:10px; }
  .report-search { grid-column:1 / -1; }
  .stage-evaluation > summary { padding:16px; }
  .stage-body { padding:0 12px 16px; }
  .rule-detail > summary { padding:12px; gap:8px; flex-wrap:wrap; }
  .rule-title { min-width:140px; }
  .rule-score { gap:8px; }
  .report-tabs button { padding:12px 16px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }

/* Stage-focused assignments and comparable attempts. */
.assignment-list { display:grid; gap:24px; max-width:1100px; }
.assignment-actions, .training-focus-links { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:16px 0; }
.training-candidate, .attempt-result { padding:20px 0; border-top:1px solid var(--line, #e1e5dd); }
.training-target { padding:14px 0; border-bottom:1px solid var(--line, #e1e5dd); }
.assignment-targets, .attempt-history { margin-top:20px; }
.target-comparison > div { display:grid; grid-template-columns:minmax(160px,1fr) auto auto; gap:10px; padding:14px 0; border-bottom:1px solid var(--line, #e1e5dd); }
.target-comparison small { grid-column:1/-1; line-height:1.7; color:var(--muted, #6d786e); }
@media(max-width:600px) { .target-comparison > div { grid-template-columns:1fr auto; } .target-comparison .badge { grid-column:1/-1; justify-self:start; } .assignment-actions > .button, .assignment-actions > button { width:100%; } }

/* Group QA: preview before evaluation and an explicit optional training decision. */
.group-quality { margin-bottom:24px; }
.group-query-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.group-query-grid label { min-width:0; }
.group-preview-summary { margin-top:24px; }
.group-preview-summary .badge,.group-source .badge { margin:0 8px 8px 0; }
.group-transcript { margin:20px 0; padding:16px; border:1px solid var(--line, #ddd); border-radius:12px; max-height:440px; overflow:auto; }
.stage-choices { display:flex; flex-wrap:wrap; gap:12px 20px; padding:16px; margin:16px 0; border:1px solid var(--line, #ddd); border-radius:12px; }
.stage-choices label { display:flex; align-items:center; gap:8px; margin:0; }
.stage-choices input { width:auto; }
.training-decision { margin:24px 0; }
.group-source { margin:16px 0; }
@media(max-width:600px){ .group-query-grid { grid-template-columns:1fr; } .training-decision .section-top { flex-wrap:wrap; } }

.review-citations { margin:8px 0; }
.review-citations fieldset { max-height:280px; overflow:auto; }
.evidence-options { max-height:280px; overflow:auto; margin-top:12px; }
.evidence-choice span { overflow-wrap:anywhere; }
.coaching-record { margin-top:16px; padding:16px; border-left:3px solid var(--accent, #275e53); background:#f3f7f3; border-radius:8px; }
.coaching-record blockquote { margin:12px 0; padding:12px; background:#fff; border-radius:8px; }

/* Business configuration workspace */
.cfg-toolbar { margin-bottom:20px; }
.cfg-toolbar code,.cfg-toolbar p { overflow-wrap:anywhere; }
.cfg-toolbar label,.cfg-trial-grid label { display:grid; gap:8px; margin:12px 0; }
.cfg-actions,.cfg-tabs,.cfg-modules { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.cfg-tabs { border-bottom:1px solid var(--line,#dce3db); margin-bottom:20px; padding-bottom:10px; }
.cfg-tabs button,.cfg-modules button { background:transparent; color:var(--ink,#28413b); border:1px solid #dce3db; padding:9px 14px; }
.cfg-tabs button.selected,.cfg-modules button.selected { background:#165950; color:white; border-color:#165950; }
.cfg-modules { margin-bottom:20px; gap:8px; }
.cfg-modules button { font-size:13px; padding:7px 11px; }
.cfg-editor-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:20px; align-items:start; }
.cfg-editor-layout.single { grid-template-columns:minmax(0,1fr); }
.cfg-list { position:sticky; top:20px; padding:14px; border:1px solid #dce3db; border-radius:14px; background:#fbfcf8; }
.cfg-list label { display:grid; gap:6px; font-size:13px; margin-bottom:12px; }
.cfg-list-items { max-height:560px; overflow:auto; margin:10px -5px; }
.cfg-list-items button { display:block; text-align:left; width:100%; border:0; background:transparent; color:#31483f; padding:12px; margin-bottom:4px; border-radius:9px; }
.cfg-list-items button.selected { background:#e2ede5; color:#12574c; }
.cfg-list-items small { display:block; margin-top:5px; color:#708079; }
.cfg-editor { min-width:0; }
.cfg-fields { display:grid; gap:16px; }
.cfg-field { display:grid; gap:7px; font-size:14px; margin:10px 0; }
.cfg-field textarea { line-height:1.7; }
.cfg-field .muted { font-size:12px; }
.cfg-toggle { display:flex; align-items:center; }
.cfg-checks { display:flex; flex-wrap:wrap; gap:12px; }
.cfg-checks label { display:flex; align-items:center; gap:6px; }
.cfg-nested { padding:14px; background:#f7f9f5; border:1px solid #e2e8df; border-radius:12px; margin:12px 0; }
.cfg-nested summary { cursor:pointer; font-weight:600; }
.cfg-array-item { border-bottom:1px solid #dce3db; padding:14px 0; margin-bottom:12px; }
.cfg-add-key { display:flex; gap:8px; }
.cfg-remove { border:0; color:#8a5147; background:transparent; padding:0; font-size:12px; }
.cfg-prompt { width:100%; min-height:600px; font:14px/1.8 ui-monospace,monospace; margin-top:16px; }
.cfg-diff { max-height:600px; overflow:auto; margin:20px 0; }
.cfg-diff article { padding:16px; border:1px solid #dce3db; border-radius:10px; margin-bottom:10px; }
.cfg-diff article>div { display:grid; grid-template-columns:45px minmax(0,1fr); gap:10px; padding-top:8px; font-size:13px; }
.cfg-diff pre,.cfg-result { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; font:inherit; }
.cfg-diff article>div:first-of-type { color:#875347; }
.cfg-diff article>div:last-child { color:#15584c; }
.cfg-trial-grid { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.cfg-trial-rules { max-height:650px; overflow:auto; }
.cfg-trial-rules article { padding:16px 0; border-bottom:1px solid #dce3db; }
.cfg-release { padding:20px 0; border-bottom:1px solid #dce3db; overflow-wrap:anywhere; }
.cfg-history-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid #dce3db; }
@media(max-width:850px) { .cfg-editor-layout { grid-template-columns:1fr; } .cfg-list { position:static; } .cfg-list-items { max-height:200px; } .cfg-trial-grid { grid-template-columns:1fr; } .cfg-prompt { min-height:420px; } }

/* Source-backed coaching and preserved historical suggestions */
.coaching-source { padding: 1rem; margin: .8rem 0; border: 1px solid var(--line, #d8e2dc); border-radius: 12px; background: #fff; }
.coaching-source p, .coaching-source a, .reply-example .prewrap { overflow-wrap: anywhere; }
.coaching-sources, .coaching-history { margin: 1rem 0; }
.coaching-history > .reply-example { border-top: 1px solid #d8e2dc; margin-top: 1rem; padding-top: 1rem; }
.coaching-progress:empty, .inline-error:empty { display: none; }

/* Identity administration shares the workbench's visual language. */
.training-entry { border-color: #a6c4b6; scroll-margin-top: 24px; }
.training-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.training-entry-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 20px; }
.training-entry-stage { min-width: 0; padding: 16px; border: 1px solid #dce5de; border-radius: 12px; }
.training-entry-stage .section-top { flex-wrap: wrap; gap: 8px; }
.training-entry-stage p, .training-entry-stage button { overflow-wrap: anywhere; }
.training-entry-actions button:disabled { opacity: .55; cursor: not-allowed; }
.training-entry:focus-visible { outline: 2px solid #15584c; outline-offset: 4px; }

/* Report editorial layout: one hero, a capability strip, and a quiet priority list. */
.report-draft-notice { padding:0 0 12px; border:0; background:transparent; color:#62756c; font-size:12px; }
.report-overview-layout.report-hero { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:0; align-items:stretch; margin:8px 0 24px; border:1px solid var(--line); border-radius:16px; background:var(--paper); overflow:hidden; }
.report-overview-main { min-width:0; }
.report-hero .report-overview { margin:0; border:0; box-shadow:none; background:transparent; padding:30px 32px; border-radius:0; scroll-margin-top:24px; }
.report-overview .section-top { flex-wrap:wrap; gap:8px; margin-bottom:0; }
.report-overview h2 { font-size:14px; font-weight:500; color:#5b7267; }
.report-overview .overview-conclusion { font-size:24px; line-height:1.55; color:var(--ink); margin:16px 0 12px; font-weight:600; letter-spacing:-.02em; overflow-wrap:anywhere; }
.report-overview > .muted { font-size:12px; margin:0; }
.overview-positive { color:var(--teal); font-size:13px; margin:20px 0 0; padding-top:16px; border-top:1px solid var(--line); }
.score-grid.overview-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:26px 0; gap:0; padding:0 24px; border-left:1px solid var(--line); }
.overview-metrics .metric { min-width:0; padding:0 10px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.overview-metrics .metric > span { font-size:12px; color:#61756a; }
.overview-metrics .metric strong { font-size:42px; margin:7px 0 4px; line-height:1.2; }
.overview-metrics .metric strong small { font-size:13px; }
.overview-metrics .metric p { font-size:11px; color:#61756a; line-height:1.7; overflow-wrap:anywhere; }
.overview-metrics .metric.scope { grid-column:1 / -1; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); gap:4px; }
.overview-metrics .metric.scope > p { color:var(--ink); font-size:13px; margin:6px 0; }
.overview-metrics .metric.scope > small { display:block; margin-top:8px; font-size:11px; }
.report-abilities { margin:0 0 26px; padding:24px 28px; background:#edf2ec; border-radius:14px; }
.ability-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.report-kicker { font-size:10px; letter-spacing:.12em; color:#5d7766; }
.ability-heading h2 { font-size:19px; margin:2px 0 0; }
.ability-source,.ability-footnote { font-size:11px; color:#617269; }
.ability-summary { margin:10px 0 18px; color:#355646; font-size:13px; }
.ability-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 30px; }
.ability-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:start; gap:7px 10px; border:0; border-radius:0; padding:0; text-align:left; background:transparent; color:var(--ink); font-weight:400; min-width:0; }
button.ability-row:hover { background:transparent; color:var(--teal); }
button.ability-row:hover .ability-name { text-decoration:underline; text-underline-offset:3px; }
.ability-name { font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.ability-score { font-size:17px; line-height:1.3; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ability-score small { font-size:10px; color:#6b7f70; font-weight:400; margin-left:3px; }
.ability-track { grid-column:1 / -1; height:4px; background:#dae5da; border-radius:2px; overflow:hidden; }
.ability-track > span { display:block; height:100%; background:#43775b; border-radius:2px; }
.ability-note { grid-column:1 / -1; font-size:11px; color:#5f7367; line-height:1.5; }
.ability-row.is-disputed .ability-note { color:#865f29; }
.ability-row.is-disputed .ability-track > span { background:#ab905f; }
.ability-more { margin-top:20px; }
.ability-more > summary { color:var(--teal); font-size:12px; cursor:pointer; min-height:30px; }
.ability-more[open] > .ability-grid { margin-top:16px; }
.ability-footnote { margin:16px 0 0; }
.report-overview-main .review-priorities,.overview-risks { margin:0 0 20px; padding:24px 28px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.report-overview-main .review-priorities > .section-top h2,.overview-risks > .section-top h2 { font-size:19px; margin:0; }
.report-overview-main .review-priorities > .muted,.overview-risks > .section-top .muted { font-size:12px; margin:6px 0 0; }
.overview-issue { display:grid; grid-template-columns:32px minmax(0,1fr); gap:16px; margin:0; padding:23px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; overflow-wrap:anywhere; }
.overview-issue:last-child { border-bottom:0; padding-bottom:0; }
.overview-issue-body { min-width:0; }
.overview-issue .section-top { gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:0; }
.overview-issue h3 { margin:0; font-size:17px; font-weight:600; }
.overview-index { font-size:22px; color:#91a496; font-family:Georgia,serif; font-variant-numeric:tabular-nums; line-height:1.3; }
.overview-reason { margin:8px 0 12px; color:#53685d; font-size:13px; }
.overview-reason > p { margin:0; }
.overview-action { padding:0 0 0 12px; border-left:2px solid #b0c5b1; background:transparent; border-radius:0; }
.overview-action small { color:#50705b; font-size:11px; font-weight:500; }
.overview-action p { margin:3px 0 0; font-size:13px; }
.overview-links { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:14px; }
.overview-links button { text-align:left; overflow-wrap:anywhere; padding:7px 0; font-size:12px; border:0; border-radius:0; background:transparent; color:var(--teal); }
.overview-links button:hover { background:transparent; text-decoration:underline; text-underline-offset:3px; }
.overview-issue details { margin-top:12px; }
.overview-issue details > summary { font-size:12px; color:var(--teal); cursor:pointer; }
.overview-more { margin:16px 0 0; }
.overview-more > summary,.overview-pending > summary,.training-stage-details > summary { cursor:pointer; padding:8px 0; min-height:40px; color:var(--teal); font-size:13px; }
.overview-pending { margin:0 0 20px; padding:12px 24px; background:transparent; box-shadow:none; }
.overview-pending small { color:#687b6c; margin-left:8px; }
.review-priorities > .overview-pending { margin:18px 0 0; padding:12px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; }
.review-priorities > .overview-issue:last-of-type { border-bottom:0; padding-bottom:0; }
.overview-risks { border-left:3px solid var(--amber); }
.overview-risks .overview-index { color:var(--amber); font-family:inherit; font-size:12px; line-height:1.6; }
.report-details { margin:16px 0 24px; }
.report-details-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:20px 24px; cursor:pointer; box-shadow:none; background:transparent; }
.report-details-summary::before { content:'＋'; color:var(--teal); font-size:18px; }
.report-details[open] > .report-details-summary::before { content:'−'; }
.report-details-summary strong { font-size:15px; }
.report-details-summary::-webkit-details-marker { display:none; }
.report-details-summary .muted { margin-left:auto; font-size:12px; }
.report-return { margin-bottom:16px; }
.training-stage-details { margin-top:12px; }
.training-decision { margin:14px 0 18px; padding:0; border-top:1px solid #c9d8c8; border-bottom:1px solid #c9d8c8; }
.training-decision > summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; padding:12px 0; cursor:pointer; font-size:13px; }
.training-decision > summary::before { content:'＋'; color:var(--teal); }
.training-decision[open] > summary::before { content:'−'; }
.training-decision > summary::-webkit-details-marker { display:none; }
.training-decision > summary > span { margin-left:auto; font-size:12px; color:#5d7462; }
.training-decision > p { font-size:12px; margin:0 0 12px; }
.training-decision form { margin-bottom:16px; }
.training-decision form .stage-choices { margin:8px 0 12px; border:0; padding:0; }
.training-decision form textarea { background:var(--paper); }
.training-decision form > label { font-size:12px; }
.training-decision > summary:focus-visible { outline-offset:0; }
.report-details[open] { padding:0 24px 24px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.report-details[open] > .report-details-summary { margin:0; padding-left:0; padding-right:0; border:0; }
.report-detail-header { display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:5; background:var(--paper); border-bottom:1px solid var(--line); padding:8px 0; margin-bottom:20px; }
.report-detail-header .report-tabs { margin:0; border:0; flex-wrap:wrap; gap:4px; }
.report-detail-header .report-tabs button { padding:10px 13px; border:0; border-radius:7px; font-size:13px; font-weight:500; }
.report-detail-header .report-tabs button[aria-selected="true"] { background:var(--mint); color:var(--teal); }
.report-detail-header .report-return { margin:0; padding:10px 0; border:0; font-size:12px; white-space:nowrap; }
.report-details .report-toolbar { grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); padding:18px; background:#f4f6f0; border-radius:10px; }
.report-details .report-toolbar input,.report-details .report-toolbar select { background:var(--paper); }
.report-details .rule-filters { gap:7px; margin:16px 0 12px; }
.report-details .rule-filters button { gap:7px; padding:8px 11px; border-radius:7px; font-weight:500; }
.rule-filters [data-filter-count] { font-size:11px; font-variant-numeric:tabular-nums; opacity:.8; }
.report-list-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.report-list-controls > .muted { font-size:12px; }
.report-list-controls > div { display:flex; gap:8px; flex-wrap:wrap; }
.report-list-controls button { padding:7px 10px; font-size:12px; }
.report-list-controls .text-button { border:0; background:transparent; color:var(--teal); }
.report-details .stage-evaluation { box-shadow:none; margin-bottom:12px; }
.report-details .stage-evaluation > summary { padding:16px 18px; }
.report-details .stage-evaluation > summary strong { font-size:16px; }
.report-details .stage-score { font-size:22px; }
.stage-match:empty { display:none; }
.report-details .rule-card { scroll-margin-top:90px; }
.report-details .rule-card.is-located { border-color:#619375; box-shadow:0 0 0 2px #61937526; }
.report-focus-context { padding:10px 14px; color:var(--teal); background:var(--mint); border-radius:7px; font-size:12px; }
.report-details .collapse-rule { margin-top:16px; padding:6px 0; border:0; font-size:12px; }
.report-details #sources-panel > .panel { box-shadow:none; }
#sources-panel .report-summary { background:#f4f6f0; border:0; }
@media(max-width:760px) {
  .report-detail-header { flex-wrap:wrap; gap:6px; }
  .report-detail-header .report-tabs { width:100%; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
  .report-detail-header .report-tabs button { padding:10px 3px; font-size:12px; }
  .report-detail-header .report-return { padding:5px 0; min-height:36px; margin-left:auto; }
  .report-details .rule-card { scroll-margin-top:140px; }
}
@media(max-width:600px) {
  .report-details[open] { padding:0 12px 18px; }
  .report-details[open] > .report-details-summary { padding:18px 4px; }
  .report-details .report-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; }
  .report-details .report-toolbar .report-search { grid-column:1 / -1; }
  .report-list-controls > div { width:100%; justify-content:space-between; gap:4px; }
  .report-list-controls button { padding:8px 6px; min-height:40px; font-size:11px; }
  .report-details .rule-filters button { padding:9px; min-height:40px; }
  .training-decision > summary > span { width:100%; margin-left:24px; }
}
.report-overview-main ~ .training-entry { border:0; border-radius:12px; background:#e8efe6; padding:22px 26px; box-shadow:none; }
.report-overview-main ~ .training-entry h2 { font-size:17px; }
.report-overview-main ~ .training-entry > p { font-size:12px; margin:8px 0; }
@media(max-width:1100px) {
  .report-overview-layout.report-hero { grid-template-columns:minmax(0,1fr) 300px; }
  .report-hero .report-overview { padding:24px; }
  .score-grid.overview-metrics { padding:0 16px; }
}
@media(max-width:900px) {
  .report-overview-layout.report-hero { grid-template-columns:minmax(0,1fr); }
  .score-grid.overview-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); border-left:0; border-top:1px solid var(--line); padding:18px 24px; margin:0; }
  .overview-metrics .metric.scope { grid-column:auto; border:0; border-left:1px solid var(--line); margin:0; padding:0 0 0 16px; }
  .ability-grid { gap:18px 22px; }
}
@media(max-width:600px) {
  .report-hero .report-overview { padding:22px 20px; }
  .report-overview .overview-conclusion { font-size:20px; }
  .score-grid.overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px 16px; }
  .overview-metrics .metric strong { font-size:34px; }
  .overview-metrics .metric.scope { grid-column:1 / -1; border-left:0; border-top:1px solid var(--line); padding:14px 10px 0; margin-top:14px; }
  .report-abilities { padding:20px; }
  .ability-source { width:100%; }
  .ability-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .ability-score { font-size:15px; }
  .ability-score small { display:none; }
  .ability-name { font-size:12px; }
  .report-overview-main .review-priorities,.overview-risks { padding:20px; }
  .overview-issue { grid-template-columns:24px minmax(0,1fr); gap:10px; padding:20px 0; }
  .overview-index { font-size:19px; }
  .overview-issue h3 { font-size:15px; }
  .overview-links button,.training-entry-actions button { min-height:44px; }
  .overview-pending { padding:10px 18px; }
  .report-overview-main ~ .training-entry { padding:20px; }
  .report-details-summary { padding:18px; }
  .report-details-summary .muted { margin-left:0; width:100%; }
  .stage-overview { flex-wrap:wrap; overflow:visible; }
}
.assignment-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; padding: 28px; margin: auto; overflow-y: auto; color: var(--ink, #243d35); background: var(--surface, #fff); border: 1px solid #dce5de; border-radius: 18px; box-shadow: 0 24px 80px #163e3533; }
.assignment-dialog::backdrop { background: #122f2a80; }
body:has(.assignment-dialog[open]) { overflow: hidden; }
.assignment-dialog .section-top { gap: 16px; }
.assignment-dialog h2 { margin: 0; font-size: 24px; }
.assignment-dialog form { display: grid; gap: 18px; margin-top: 20px; }
.assignment-dialog [hidden] { display: none; }
.assignment-dialog label { display: grid; gap: 8px; }
.assignment-dialog textarea, .assignment-dialog select { width: 100%; box-sizing: border-box; }
.assignment-focus { padding: 16px; background: #f1f6f2; border-radius: 12px; }
.assignment-focus h3 { margin: 0 0 10px; font-size: 15px; }
.assignment-focus ul { padding-left: 20px; margin: 0; overflow-wrap: anywhere; }
.assignment-focus li + li { margin-top: 8px; }
.assignment-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
@media (max-width: 600px) { .assignment-dialog { padding: 20px; max-height: calc(100dvh - 24px); } .assignment-dialog h2 { font-size: 20px; } .assignment-dialog-actions > * { flex: 1; text-align: center; } }

.auth-card { max-width: 560px; margin: 7vh auto; padding: 36px; background: var(--surface, #fff); border: 1px solid #dce5de; border-radius: 18px; }
.auth-card form { display: grid; gap: 18px; margin: 28px 0; }
.auth-card label { display: grid; gap: 8px; }
.admin-actions,.admin-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.admin-filters label { flex: 1; min-width: 180px; }
.admin-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.admin-account-list { display:grid; margin-top: 20px; }
.account-row { display:grid; grid-template-columns: 2fr 1fr 1fr auto; align-items:center; gap:14px; padding:18px; text-align:left; border-radius:0; border:0; border-bottom:1px solid #e3e8e3; }
.account-row.selected { background:#e7f1ec; }
.account-row small,.scope-row small { display:block; margin-top:5px; color:#6e8078; overflow-wrap:anywhere; }
#authorization-form fieldset { border:1px solid #dde5df; border-radius:12px; padding:20px; margin:20px 0; }
#authorization-form legend { font-weight:650; padding:0 8px; }
.inline-choice { display:inline-flex; gap:8px; align-items:center; margin:8px 22px 8px 0; }
.inline-choice input { width:auto; }
.admin-scope-list { max-height:360px; overflow:auto; margin-top:16px; }
.scope-row { display:grid; grid-template-columns:1fr 150px; gap:18px; align-items:center; border-bottom:1px solid #e7ece7; padding:12px 0; }
.scope-row[hidden] { display:none; }
#scope-fields:disabled { opacity:.55; }
@media(max-width:760px) { .account-row { grid-template-columns:1fr; } .admin-form-grid {grid-template-columns:1fr;} .auth-card {margin:24px 12px;} }

/* Keep the employee sign-out action visible beside long account names. */
.identity { flex-wrap: wrap; }
.employee-logout { white-space: nowrap; padding: 6px 12px; min-height: 36px; }
.auth-card .employee-logout, .boot > .employee-logout { margin: 12px 0 0 12px; }

.topbar { height: auto; min-height: 77px; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.identity { min-width: 0; }
.identity > span { overflow-wrap: anywhere; }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; min-height: 55px; } }

/* Shared paging: compact controls wrap instead of stretching list cards. */
.pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 0; border-top:1px solid #dce3db; margin-top:16px; font-size:13px; }
.pagination-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.pagination label { display:flex; align-items:center; gap:5px; margin:0; }
.pagination select { width:auto; min-width:65px; padding:6px; }
.pagination input { width:64px; padding:6px; }
.pagination button { white-space:nowrap; }
.list-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin:12px 0 20px; }
.list-filters label { display:grid; gap:6px; flex:1 1 135px; font-size:13px; }
.list-filters label:first-child { flex:2 1 220px; }
.list-count { color:#708079; font-size:13px; }
.cfg-list .pagination { display:grid; gap:8px; }
.cfg-list .pagination-controls { gap:6px; }
.cfg-list .pagination label { display:flex; margin:0; }
.cfg-array-item>summary { cursor:pointer; font-weight:600; padding:10px 0; }
.config-history-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.config-history-tabs .selected { background:#165950; color:white; }
.report-picker-dialog { width:min(850px,92vw); max-height:85vh; overflow:auto; border:1px solid #dce3db; border-radius:16px; padding:24px; background:#fbfcf8; color:#28413b; }
.report-picker-dialog::backdrop { background:rgba(0,0,0,.35); }

/* Training scene navigation: one explicit action, no business-operation form. */
.scenario-wait { width:min(460px, calc(100vw - 40px)); box-sizing:border-box; margin:auto; padding:38px 32px 28px; border:1px solid #dce5de; border-radius:22px; background:#fcfdf8; color:#23443c; text-align:center; box-shadow:0 28px 90px #122f2a33; }
.scenario-wait::backdrop { background:#183b345c; backdrop-filter:blur(4px); }
body:has(.scenario-wait[open]) { overflow:hidden; }
.scenario-wait-mark { position:relative; display:grid; place-items:center; width:72px; height:72px; margin:0 auto 26px; }
.scenario-wait-mark span { position:absolute; inset:0; border:1px solid #d9e4da; border-top:2px solid #1b6658; border-radius:50%; animation:scenario-orbit 2.4s linear infinite; }
.scenario-wait-mark i { display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#eaf1e8; font:normal 28px Georgia, "Songti SC", serif; }
.scenario-wait .eyebrow { font-size:11px; letter-spacing:.18em; color:#718779; }
.scenario-wait h2 { margin:12px 0 16px; font-size:24px; line-height:1.45; }
.scenario-wait #scenario-wait-description { min-height:3.6em; margin:0; font-size:14px; line-height:1.8; color:#657a70; }
.scenario-wait-time { display:flex; align-items:center; justify-content:center; gap:9px; margin:24px 0; font-size:13px; font-variant-numeric:tabular-nums; color:#386356; }
.scenario-wait-time .spinner { width:13px; height:13px; }
.scenario-wait-note { margin:0; padding-top:18px; border-top:1px solid #e4eae0; font-size:12px; line-height:1.8; color:#7a887c; }
@keyframes scenario-orbit { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .scenario-wait-mark span, .scenario-wait .spinner { animation:none; } }
@media (max-width:480px) { .scenario-wait { padding:30px 24px 24px; } .scenario-wait h2 { font-size:21px; } }
.next-scene-dialog { max-width:660px; }
.scene-loading { text-align:center; padding:32px 12px; }
.scene-preview h3 { margin:8px 0 16px; }
.scene-preview ul { padding-left:22px; }
.scene-preview li { margin:8px 0; }
.scene-consent { display:flex; gap:10px; align-items:flex-start; margin:18px 0; }
.scene-consent input { flex:0 0 auto; width:18px; height:18px; margin-top:3px; }
.scene-briefing { border-left:3px solid #527b69; padding:12px; margin:12px 0; background:#f0f5f1; }
@media(max-width:600px) { .next-scene-dialog .assignment-dialog-actions { flex-wrap:wrap; } }

/* Knowledge stays next to the conversation; only its panel updates. */
.context .tabs {flex-wrap:wrap}
#knowledge-panel {padding:20px;min-width:0}
.knowledge-panel-heading {display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.knowledge-panel-heading h3 {font-size:17px;margin:8px 0 16px}
.knowledge-panel-heading .eyebrow {font-size:10px;letter-spacing:1.2px}
.knowledge-search-row {display:flex;align-items:end;gap:10px;margin:12px 0}
.knowledge-search-row label {flex:1;min-width:0}
#knowledge-query {width:100%;resize:vertical}
.knowledge-search-row button {white-space:nowrap}
.knowledge-progress {color:var(--green);padding:12px;border-radius:8px;background:#eef5f2;font-size:14px}
.knowledge-result {border-top:1px solid #dce6df;margin-top:20px;padding-top:16px;font-size:14px;overflow-wrap:anywhere}
.knowledge-question {font-weight:650;color:#214e46}
.knowledge-source {border:1px solid #dce6df;border-radius:10px;margin:10px 0;padding:12px;background:#fafcf9}
.knowledge-source summary {cursor:pointer;display:flex;flex-direction:column;gap:5px;line-height:1.5}
.knowledge-source .prewrap {max-height:280px;overflow:auto;font-size:13px;line-height:1.8;white-space:pre-wrap}
.knowledge-source pre {white-space:pre-wrap;font-size:12px;max-height:160px;overflow:auto}
.knowledge-source small,.knowledge-result small {color:#75827c;font-size:12px}
.knowledge-points {margin:14px 0}.knowledge-points ul {padding-left:20px;line-height:1.8}
.knowledge-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.knowledge-empty {padding:24px 0;color:#7d8b83;font-size:14px;line-height:1.9}
.knowledge-history {margin-top:24px;border-top:1px solid #dce6df;padding-top:16px}
.knowledge-history summary,.knowledge-report>summary {cursor:pointer;font-weight:600}
.knowledge-history-item {display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;margin:8px 0;padding:10px;font-size:13px;gap:5px}
.knowledge-history-item span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.knowledge-pager {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}
.knowledge-linked {display:flex;gap:12px;align-items:center;font-size:12px;color:#53786c}
.knowledge-report {margin:20px 0}.knowledge-report .knowledge-result {padding:20px 0}
@media(min-width:1100px){.context.knowledge-is-open {max-height:calc(100vh - 50px);overflow:auto;position:sticky;top:24px}}
@media(max-width:1099px){.context.knowledge-is-open {position:fixed;z-index:80;right:0;top:0;bottom:0;width:min(460px,100vw);overflow:auto;background:#fffefb;box-shadow:-10px 0 45px #193c342b;border-radius:0;margin:0}.context.knowledge-is-open .tabs {position:sticky;top:0;background:#fffefb;z-index:2}.knowledge-panel-heading {position:sticky;top:55px;background:#fffefb;padding-top:8px;z-index:1}.composer-footer {flex-wrap:wrap}}
/* Give sources enough reading width without losing the conversation. */
@media(min-width:1251px){.session-layout:has(.knowledge-is-open){grid-template-columns:145px minmax(0,1fr) 350px}}
@media(min-width:1100px) and (max-width:1250px){.session-layout:has(.knowledge-is-open){grid-template-columns:minmax(0,1fr) 340px}}
.context.knowledge-is-open {padding:0}
.context.knowledge-is-open>.tabs {padding:14px 18px 0;margin:0;position:sticky;top:0;background:#fffefb;z-index:3}
.context.knowledge-is-open .knowledge-panel-heading {position:sticky;top:51px;background:#fffefb;z-index:2;padding:8px 0}

.knowledge-summary {line-height:1.85}
.knowledge-materials {border-top:1px solid #dce6df;margin-top:16px;padding-top:14px}
.knowledge-materials>summary {cursor:pointer;font-weight:600;color:var(--green);line-height:1.7}
.knowledge-materials>summary span {display:block;font-size:12px;font-weight:400;color:#75827c;margin-left:16px}

.need-plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:16px; margin-top:16px; }
.need-plan-card { border:1px solid var(--border, #dbe3dd); border-radius:12px; padding:18px; overflow-wrap:anywhere; }
.need-plan-card blockquote { margin:12px 0; padding:10px; background:#f5f7f5; }

/* Employee entry: quiet brand story alongside a focused, accessible form. */
.employee-entry{padding:0;width:100%;min-width:0;min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:var(--bg,#f6f6f0)}
.entry-story{padding:clamp(32px,6vw,100px);background:#e8efe5;display:flex;flex-direction:column;justify-content:space-between;color:#17564e;gap:64px}
.entry-story h1{font-family:"Songti SC","Noto Serif SC",serif;font-size:clamp(32px,3.4vw,50px);font-weight:600;line-height:1.5;margin:20px 0}
.entry-story>small{color:#577165}.entry-form{padding:64px 36px;display:flex;align-items:center;justify-content:center}
.entry-form-body{width:100%;max-width:400px}.entry-form h2{font-size:30px;line-height:1.4;margin:12px 0 16px}.entry-form form{display:grid;gap:18px;margin-top:28px}.entry-form label,.account-password label{display:grid;gap:8px;font-size:14px;font-weight:600}.entry-form input,.account-password input{width:100%;min-height:46px}.entry-form form button{min-height:48px}.entry-form .field-hint{margin:0}.field-hint{font-size:13px;color:#65796e;line-height:1.7}.entry-divider{display:flex;align-items:center;gap:16px;color:#7b8c81;font-size:12px;margin:28px 0 18px}.entry-divider:before,.entry-divider:after{content:"";height:1px;background:#dce3d8;flex:1}.entry-sso{display:flex;justify-content:center;align-items:center;min-height:48px;text-decoration:none;border:1px solid #b9ccbf;border-radius:8px;color:#17564e;font-weight:600}.entry-links{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.text-button{background:none;border:0;padding:4px;color:#17564e;font-weight:500}.entry-admin{margin-top:36px;font-size:12px;color:#819086}.account-password{max-width:620px}.account-password form{display:grid;gap:20px;max-width:420px}.entry-form input:focus-visible,.account-password input:focus-visible{outline:2px solid #26786b;outline-offset:2px}
@media(max-width:720px){.employee-entry{grid-template-columns:1fr}.entry-story{padding:28px;gap:20px}.entry-story h1{font-size:30px;margin:0}.entry-story>div>p,.entry-story>small{display:none}.entry-form{padding:32px 24px}.entry-links{gap:20px}}
