/* Assistant-led surface. The operational ledger stays available on drill. */
[hidden] {
  display: none !important;
}
.assistant-main {
  max-width: 1440px;
  padding-top: 32px;
}
.assistant-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 4px 0 32px;
}
.assistant-heading h1 {
  font-size: clamp(32px, 4.3vw, 58px);
  letter-spacing: -0.04em;
  margin: 8px 0;
  line-height: 1.08;
}
.assistant-heading .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
}
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.assistant-conversation {
  min-width: 0;
}
.assistant-composer {
  background: #fffdf5;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  margin: 0 0 28px !important;
}
.assistant-composer > label {
  font-size: 27px;
  font-weight: 750;
  line-height: 1.25;
}
.assistant-composer textarea {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.4;
  padding: 18px;
  border: 1px solid #8caecb;
  border-radius: 14px;
  resize: vertical;
  background: #fffdf7;
  min-height: 130px;
}
.composer-help {
  font-size: 15px;
  max-width: 650px;
  color: var(--muted);
}
.prompt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.prompt-examples button {
  font-size: 13px;
  background: #e7eef5;
  color: var(--ink);
  border: 1px solid #c5d5e3;
  padding: 9px 12px;
  font-weight: 550;
  border-radius: 20px;
}
.assistant-permission {
  font-size: 13px;
  padding: 16px 0;
  color: var(--muted);
}
.assistant-permission > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}
.assistant-permission label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 450;
  margin: 0;
}
.assistant-permission input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0;
}
.composer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.assistant-settings {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
}
.assistant-settings summary {
  cursor: pointer;
  color: var(--muted);
}
.assistant-settings .goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: end;
}
.assistant-settings .goal-options > label {
  min-width: 150px;
  font-size: 13px;
  flex: 1;
}
.assistant-stage {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  min-width: 0;
}
.dot-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.dot-symbol {
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 23px;
  font-weight: 800;
  flex-shrink: 0;
}
.dot-identity > div:not(.assistant-controls) {
  display: grid;
  gap: 2px;
}
#assistant-presence {
  font-size: 12px;
  color: var(--muted);
}
.assistant-controls {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.assistant-controls button {
  font-size: 12px;
  padding: 7px 10px;
  border-width: 1px;
}
.assistant-controls button:disabled {
  display: none;
}
.assistant-goal {
  font-size: 15px;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 14px;
  margin: 0 0 18px;
}
.assistant-stage h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  max-width: 720px;
}
#assistant-explanation {
  font-size: 19px;
  line-height: 1.55;
  max-width: 730px;
  margin: 12px 0 18px;
}
#assistant-why {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
  border: 0;
}
#assistant-why summary {
  cursor: pointer;
}
.assistant-question {
  border: 2px solid var(--blue);
  border-radius: 18px;
  padding: 24px;
  background: #edf4fb;
  margin-top: 24px;
}
.question-kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 800;
  margin: 0;
}
.assistant-question h3 {
  font-size: 27px;
  line-height: 1.25;
  margin: 12px 0;
}
#question-why {
  font-size: 16px;
  color: var(--muted);
}
.question-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.question-choices button {
  font-size: 16px;
  font-weight: 650;
  background: #fffdf7;
  color: var(--ink);
  padding: 13px 18px;
  border: 1px solid #8babc7;
  border-radius: 12px;
  text-align: left;
  min-height: 48px;
}
.question-choices button:hover {
  background: #d4e6f7;
}
#answer-form label {
  font-size: 14px;
}
#answer-form textarea {
  width: 100%;
  margin: 8px 0 12px;
  background: #fffdf7;
  resize: vertical;
}
.assistant-question > details {
  font-size: 12px;
  margin-top: 18px;
  color: var(--muted);
}
.assistant-stage .next {
  padding: 0;
  border: 0;
  background: transparent;
  margin-top: 20px;
}
.assistant-approval {
  background: #fff4d8;
  border: 2px solid #b18c48;
  border-radius: 16px;
  padding: 22px;
}
.assistant-approval h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
.assistant-findings {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.finding-card {
  background: #f1f5ec;
  border: 1px solid #c8d4bb;
  border-radius: 16px;
  padding: 20px;
}
.finding-card[data-kind="gap"] {
  background: #fff7e6;
  border-color: #dbcaa5;
}
.finding-card[data-kind="next_action"] {
  background: #edf4fa;
  border-color: #bad1e3;
}
.finding-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.finding-card p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.finding-references {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reference-pill {
  font-size: 11px;
  background: transparent;
  color: var(--ink);
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.assistant-message {
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
  padding-top: 20px;
}
.assistant-message > label {
  font-size: 14px;
  font-weight: 650;
}
.assistant-message > div {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 8px;
}
.assistant-message textarea {
  font-size: 15px;
  background: var(--paper);
  min-width: 0;
  flex: 1;
  resize: vertical;
}
.assistant-message button {
  font-size: 14px;
  flex-shrink: 0;
}
.assistant-case {
  position: sticky;
  top: 20px;
  min-width: 0;
  padding-top: 8px;
}
.case-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.country-pill {
  font-size: 12px;
  border-radius: 7px;
  background: #dce9f4;
  padding: 5px 7px;
  font-weight: 800;
}
.case-head h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
#assistant-case-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 15px 0 22px;
}
.assistant-case .flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}
.assistant-case .flow > li {
  position: relative;
  padding-bottom: 14px;
}
.assistant-case .flow > li:not(:last-child):after {
  content: "";
  position: absolute;
  height: 15px;
  left: 19px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.assistant-case .node {
  width: 100%;
  min-height: 0;
  background: transparent;
  border: 1px solid #cad7e2;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 3px 12px;
  text-align: left;
  padding: 13px 15px;
  color: var(--ink);
}
.assistant-case .node .number {
  font-size: 0;
  width: 8px;
  height: 8px;
  background: #bccbd8;
  grid-row: span 2;
  margin-top: 7px;
  border: 0;
  padding: 0;
  min-width: 0;
  border-radius: 50%;
}
.assistant-case .node strong {
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}
.assistant-case .node-summary {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.assistant-case .node[aria-current="step"] {
  background: #dceaf7;
  border-color: #7e9fbc;
  color: var(--ink);
}
.assistant-case .node[aria-current="step"] .number,
.assistant-case .node.complete .number {
  background: var(--blue);
}
.assistant-case .node.complete {
  background: #edf2e6;
  border-color: #bdcdb0;
}
.case-map-help {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 24px;
}
#work-inspector {
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
#work-inspector > summary {
  cursor: pointer;
  font-weight: 650;
}
#work-inspector .plan-card,
#work-inspector .operator-panel {
  padding: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  position: static;
}
#work-inspector h3 {
  font-size: 15px;
}
#work-inspector button {
  font-size: 12px;
  white-space: normal;
}
#work-inspector .history {
  max-height: 240px;
}
.assistant-case .practice-reviews,
.assistant-case .connection-details {
  font-size: 12px;
  margin-top: 16px;
}
.assistant-thread {
  border-top: 1px solid var(--line);
  font-size: 14px;
  padding: 16px 6px;
  margin-bottom: 20px;
}
.assistant-thread > summary {
  cursor: pointer;
  font-weight: 650;
}
#assistant-thread {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
#assistant-thread li {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}
#assistant-thread li[data-speaker="you"] {
  background: #e7eff7;
  margin-left: 30px;
}
#assistant-thread time {
  font-size: 11px;
  color: var(--muted);
  margin-left: 12px;
}
#assistant-thread p {
  margin: 8px 0 0;
}
.assistant-signin {
  max-width: 600px;
  margin: 30px auto;
}
html[data-observer="true"] .assistant-controls,
html[data-observer="true"] .assistant-permission,
html[data-observer="true"] #message-form,
html[data-observer="true"] #answer-form,
html[data-observer="true"] .question-choices {
  display: none !important;
}
@media (max-width: 1050px) {
  .assistant-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
  }
  .assistant-stage,
  .assistant-composer {
    padding: 24px;
  }
  .assistant-main {
    padding: 25px;
  }
  .assistant-case {
    position: static;
  }
}
@media (max-width: 760px) {
  .assistant-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .assistant-conversation,
  .assistant-case {
    width: 100%;
  }
  .assistant-case .flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .assistant-case .flow > li:after {
    display: none;
  }
  .assistant-case .node {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 7px;
    min-height: 100px;
  }
  .assistant-case .node .number {
    margin: 0;
  }
  .assistant-case .node strong {
    font-size: 11px;
  }
  .assistant-case .node-summary {
    font-size: 10px;
  }
  .assistant-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .assistant-heading > button {
    font-size: 12px;
    max-width: 130px;
  }
  .assistant-stage,
  .assistant-composer {
    padding: 20px;
    border-radius: 18px;
  }
  #assistant-explanation {
    font-size: 17px;
  }
  .assistant-composer > label {
    font-size: 24px;
  }
  .assistant-composer textarea {
    font-size: 19px;
  }
  .assistant-message > div {
    flex-direction: column;
  }
  .assistant-message textarea {
    width: 100%;
  }
  .question-choices {
    flex-direction: column;
  }
  .question-choices button {
    width: 100%;
  }
  .assistant-question {
    padding: 18px;
  }
  .assistant-question h3 {
    font-size: 23px;
  }
  .assistant-main {
    padding: 22px 16px;
  }
  .dot-identity {
    gap: 8px;
  }
  .assistant-controls {
    gap: 5px;
  }
  .assistant-controls button {
    font-size: 11px;
    padding: 6px;
  }
  .assistant-composer .goal-options {
    align-items: stretch;
  }
  .assistant-case {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
}
.assistant-heading > div {
  min-width: 0;
}
.assistant-heading h1,
.assistant-stage h2,
.assistant-question h3,
.assistant-case h2,
.assistant-case .node strong {
  overflow-wrap: anywhere;
}
.assistant-case .node {
  min-width: 0;
}
.assistant-layout select {
  max-width: 100%;
  min-width: 0;
}
.assistant-layout button {
  overflow-wrap: anywhere;
}
.assistant-stage .next {
  min-height: 0;
}
.alternative-answer {
  font-size: 14px;
  margin-top: 14px;
}
.alternative-answer > summary {
  cursor: pointer;
  font-weight: 650;
  margin-bottom: 12px;
}
html[data-observer="true"] .alternative-answer {
  display: none !important;
}
