.live-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #aab49a;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #e6e8dc;
  font-size: 14px;
  line-height: 1.5;
}
.live-blocked,
.live-form-error {
  color: #895630;
  font-size: 13px;
  line-height: 1.6;
}
.live-form-error:empty {
  display: none;
}
.live-agent {
  max-width: 850px;
  margin: auto;
}
.live-agent .chat-feed {
  max-height: 500px;
}
.live-record,
.live-session {
  margin-bottom: 18px;
}
.live-history-heading {
  margin-top: 40px;
}
.live-wallet-options {
  display: grid;
  gap: 12px;
}
.live-menu {
  display: none;
}
.pair b {
  overflow-wrap: anywhere;
  max-width: 65%;
  text-align: right;
}
.proposal .status-list small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
}
.proposal .status-list b {
  font-size: 9px;
  white-space: normal;
  text-align: right;
}
.chat-bubble {
  overflow-wrap: anywhere;
}
.chat-bubble > .chat-role {
  display: block;
  font: 10px monospace;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: #77866c;
}
.chat-bubble.user > .chat-role {
  color: #cad6b3;
}
.assistant-markdown strong,
.assistant-markdown em {
  display: inline;
  font: inherit;
  text-transform: none;
  color: inherit;
}
.assistant-markdown p:first-child {
  margin-top: 0;
}
.chat-bubble p {
  margin: 10px 0;
  line-height: 1.6;
}
.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3,
.chat-bubble h4 {
  font-size: 14px;
  line-height: 1.3;
  margin: 16px 0 8px;
  font-weight: 650;
}
.chat-bubble h1 {
  font-size: 17px;
}
.chat-bubble ul,
.chat-bubble ol {
  margin: 10px 0;
  padding-left: 20px;
  line-height: 1.65;
}
.chat-bubble code {
  font:
    11px/1.4 "IBM Plex Mono",
    "Courier New",
    monospace;
  background: #e2e5d5;
  padding: 2px 4px;
}
.chat-bubble pre {
  overflow: auto;
  background: #e2e5d5;
  padding: 12px;
  margin: 10px 0;
}
.chat-bubble pre code {
  padding: 0;
  background: transparent;
}
.chat-bubble a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chat-bubble.user {
  white-space: pre-wrap;
}
.val {
  overflow-wrap: anywhere;
  max-width: 55%;
}
.wallet-dialog .field input,
.wallet-dialog .field select {
  width: 100%;
}
h1:focus {
  outline: none;
}
@media (max-width: 809px) {
  .live-menu {
    display: inline-flex;
  }
  .wallet-head {
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .wallet-nav {
    display: none !important;
  }
  .wallet-nav.live-open {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .wallet-nav a,
  .wallet-nav a:first-child {
    padding: 16px 8px;
  }
  .live-notice {
    align-items: flex-start;
    flex-direction: column;
  }
  .pair {
    gap: 15px;
  }
  .wallet-head .chip {
    display: none;
  }
  .live-record .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
.privacy-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  border-top: 1px solid #bac3ac;
  border-bottom: 1px solid #bac3ac;
  margin-bottom: 24px;
}
.privacy-totals .metric {
  padding: 22px 0;
}
.privacy-grid {
  border-top: 0;
  margin-top: 26px;
  align-items: start;
}
.privacy-entry,
.privacy-local {
  margin-bottom: 16px;
}
.privacy-entry .pair b {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
}
.privacy-local b {
  font-size: 14px;
  font-weight: 550;
}
.privacy-local p {
  margin: 8px 0 0;
}
.privacy-catalogue-heading {
  margin: 40px 0 18px;
}
.privacy-wrap {
  white-space: normal;
  min-width: 190px;
  max-width: 340px;
  line-height: 1.6;
}
@media (max-width: 1150px) {
  .privacy-totals {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 750px) {
  .privacy-totals {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .privacy-totals .metric {
    padding: 16px 0;
    border-bottom: 1px dashed #c2cbb5;
  }
  .privacy-totals .metric:last-child {
    border-bottom: 0;
  }
  .privacy-entry .actions,
  .privacy-grid .section-label .actions {
    flex-wrap: wrap;
  }
}
.demo-guide {
  border: 1px solid #8a9765;
  background: #e7eadc;
  margin-bottom: 26px;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid #b6c09e;
  background: #243b2c;
  color: #f2f0ee;
}
.demo-banner .eyebrow {
  font-size: 11px;
}
.demo-banner .chip {
  border-color: #7d8d63;
  color: #f2f0ee;
}
.demo-steps {
  display: flex;
  overflow: auto;
  border-bottom: 1px solid #b6c09e;
  scrollbar-width: thin;
}
.demo-step {
  border: 0;
  border-right: 1px solid #c3cbb1;
  background: transparent;
  color: #5c6857;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
  padding: 13px 16px;
  white-space: nowrap;
  min-height: 44px;
  text-align: left;
}
.demo-step:hover {
  background: #dde2cd;
}
.demo-step.done {
  color: #76845f;
}
.demo-step.current {
  background: #f2f0ee;
  color: #2c4430;
  box-shadow: inset 0 -2px 0 #768143;
}
.demo-body {
  padding: 22px 20px;
}
.demo-body h2 {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.demo-body p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 70ch;
}
.privacy-entry .proposal-top .actions {
  justify-content: flex-end;
}
@media (max-width: 750px) {
  .demo-body {
    padding: 18px 16px;
  }
  .demo-body h2 {
    font-size: 21px;
  }
  .demo-body .actions .btn {
    flex: 1 1 auto;
  }
}
.share-preview {
  border: 1px solid #b5bfa8;
  background: #e9ecdf;
  max-height: 46vh;
  overflow: auto;
  margin: 18px 0;
}
.share-preview pre {
  margin: 0;
  padding: 16px;
  font:
    12px/1.7 "IBM Plex Mono",
    "Courier New",
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.share-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 4px 0 10px;
}
.share-toggle input {
  flex: none;
}
.minimise-toggle {
  margin: 0 0 0 auto;
}
.minimise-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.minimise-columns .section-label {
  margin-bottom: 0;
}
.minimise-columns .share-preview {
  margin: 10px 0 0;
  max-height: 34vh;
}
.minimise-mark {
  background: #d3dcbe;
  color: inherit;
  padding: 1px 2px;
  box-decoration-break: clone;
}
.minimise-mark.kept {
  background: transparent;
  border-bottom: 1px dashed #8d9a7c;
}
.minimise-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 10px;
}
.minimise-sent {
  margin-top: 12px;
  border-top: 1px solid #b5bfa8;
  padding-top: 10px;
}
.minimise-sent summary {
  font: 10px monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.minimise-sent pre {
  margin: 10px 0 0;
  padding: 12px;
  background: #e2e5d5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.7 "IBM Plex Mono",
    "Courier New",
    monospace;
}
.minimise-sent .micro {
  margin: 8px 0 0;
}
.chat-bubble.user .minimise-sent,
.chat-bubble.user .minimise-sent-plain {
  white-space: normal;
}
.minimise-sent-plain {
  margin: 10px 0 0;
  opacity: 0.75;
}
@media (max-width: 750px) {
  .minimise-columns {
    grid-template-columns: 1fr;
  }
  .minimise-toggle {
    margin-left: 0;
  }
}
.gate-detail summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.gate-detail summary::-webkit-details-marker {
  display: none;
}
.gate-detail summary::after {
  content: "+";
  font:
    12px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #768143;
  margin-left: 4px;
}
.gate-detail[open] summary::after {
  content: "–";
}
.gate-detail .gate-name {
  flex: 1;
  min-width: 0;
}
.gate-detail summary b {
  margin-left: auto;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #566b3e;
  white-space: nowrap;
}
.status-list li.blocked .gate-detail summary b {
  color: #945f3d;
}
.gate-body {
  padding: 4px 0 14px 32px;
}
.gate-body .pair {
  border-bottom: 1px dotted #ccd2c1;
  font-size: 12px;
}
.gate-nuance {
  color: #895630;
}
.local-verify {
  border: 1px solid #b9c0ae;
  padding: 14px 16px;
  margin: 18px 0 4px;
  background: #eceedf;
}
.local-verify.failed {
  border-color: #b5977b;
}
.local-verify summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
}
.local-verify summary b {
  color: #566b3e;
}
.local-verify.failed summary b {
  color: #945f3d;
}
.local-list {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.local-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed #c8cfbb;
  font-size: 13px;
}
.local-list li small {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: #717c65;
  margin-top: 5px;
}
.local-list li b {
  margin-left: auto;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #566b3e;
  white-space: nowrap;
}
.local-list li.blocked b {
  color: #945f3d;
}
.version-history {
  border: 1px solid #b9c0ae;
  padding: 14px 16px;
  margin: 14px 0 4px;
}
.version-history summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
}
.version-entry {
  border-top: 1px dashed #c8cfbb;
  padding: 14px 0 4px;
}
.version-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.version-top b {
  font-size: 13px;
  font-weight: 550;
}
.version-top time {
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #6b7563;
}
.version-diff {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.version-diff li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dotted #ccd2c1;
  font-size: 12px;
}
.version-diff li > span:first-child {
  min-width: 120px;
  color: #6b7663;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
}
.version-diff .from {
  color: #8b7a63;
  text-decoration: line-through;
  overflow-wrap: anywhere;
}
.version-diff .arrow {
  color: #768143;
}
.version-diff .to {
  color: #2c4430;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.version-diff em {
  font-style: normal;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
  border: 1px solid #a7b197;
  padding: 3px 6px;
  color: #5d6b4b;
}
@media (max-width: 750px) {
  .version-diff li > span:first-child {
    min-width: 100%;
  }
}
.boundary {
  border: 1px solid #b9c0ae;
  padding: 14px 16px;
  margin: 14px 0 4px;
}
.boundary summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
}
.boundary-side,
.boundary-side-note {
  display: block;
  padding: 12px 14px;
  margin: 12px 0;
  background: #e7eadc;
  border-left: 2px solid #a2ac7a;
}
.boundary-side b,
.boundary-side-note b {
  display: block;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4c622f;
  margin-bottom: 5px;
}
.boundary-side small,
.boundary-side-note small {
  font-size: 12px;
  line-height: 1.6;
  color: #5d6858;
}
.boundary-side-note {
  background: #243b2c;
  border-left-color: #f2f0ee;
}
.boundary-side-note b {
  color: #dbe2c4;
}
.boundary-side-note small {
  color: #dfe3d4;
}
.boundary-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stage;
}
.boundary-stages .stage {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed #c8cfbb;
}
.stage-mark {
  width: 18px;
  flex: none;
  text-align: center;
  font:
    12px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #8b957e;
}
.stage-body {
  flex: 1;
  min-width: 0;
}
.stage-body b {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.stage-body small {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: #717c65;
  margin-top: 5px;
}
.boundary-stages .stage em {
  font-style: normal;
  font:
    9px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #8b957e;
  white-space: nowrap;
}
.stage.running .stage-mark,
.stage.running em {
  color: #4c622f;
}
.stage.done .stage-mark,
.stage.done em {
  color: #566b3e;
}
.stage.failed .stage-mark,
.stage.failed em {
  color: #945f3d;
}
.stage.owner .stage-body b {
  color: #2c4430;
}
.boundary-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4c622f;
}
.boundary-line::before,
.boundary-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #768143 0 6px, transparent 6px 12px);
}
.preview {
  border: 1px solid #b9c0ae;
  padding: 14px 16px;
  margin: 14px 0 4px;
}
.preview summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font:
    11px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
}
.preview-sentence {
  font-size: 16px;
  line-height: 1.6;
  margin: 14px 0;
  padding: 14px 16px;
  background: #e7eadc;
  border-left: 2px solid #a2ac7a;
  overflow-wrap: anywhere;
}
.preview-flags {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.preview-flags li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed #c8cfbb;
  font-size: 13px;
  line-height: 1.6;
}
.preview-flags li b {
  flex: none;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
  border: 1px solid #a7b197;
  padding: 3px 7px;
  color: #5d6b4b;
}
.preview-flags li.attention b {
  border-color: #b5977b;
  color: #895630;
}
.preview-raw .section-label {
  margin: 0 0 8px;
}
.preview-row b {
  font:
    11px/1.6 "IBM Plex Mono",
    "Courier New",
    monospace;
  max-width: 62%;
}
.simulator-heading {
  margin: 38px 0 18px;
}
.sim-result {
  border: 1px solid #aeb9a2;
  padding: 18px;
  margin-top: 22px;
}
.sim-result.blocked {
  border-color: #b5977b;
}
.sim-rules {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.sim-rules li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px dashed #c8cfbb;
  font-size: 13px;
}
.sim-scope {
  flex: none;
  width: 120px;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  text-transform: uppercase;
  color: #6b7663;
  line-height: 1.5;
}
.sim-rule {
  flex: 1;
  min-width: 0;
}
.sim-rule b {
  display: block;
  font-weight: 550;
}
.sim-rule small {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: #717c65;
  margin-top: 5px;
}
.sim-rules li em {
  font-style: normal;
  font:
    10px "IBM Plex Mono",
    "Courier New",
    monospace;
  color: #566b3e;
  white-space: nowrap;
}
.sim-rules li.blocked em {
  color: #945f3d;
}
.preset {
  border: 1px solid #bac3ac;
  padding: 16px;
  margin-bottom: 14px;
}
.preset.off {
  opacity: 0.65;
}
.wallet-dialog select[multiple] {
  width: 100%;
  padding: 6px;
}
@media (max-width: 750px) {
  .sim-scope {
    width: 100%;
  }
  .sim-rules li {
    flex-wrap: wrap;
  }
}

.egress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.egress-party {
  display: flex;
  flex-direction: column;
  border-left: 3px solid #c2cbb5;
}
.egress-party.live {
  border-left-color: #6d7d5c;
}
.egress-host {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  margin: 2px 0 14px;
  overflow-wrap: anywhere;
}
.egress-label {
  margin: 4px 0 8px;
}
.egress-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.egress-list li {
  margin-bottom: 4px;
}
.egress-party .pair {
  margin-top: auto;
}
.egress-control {
  border-top: 1px dashed #c2cbb5;
  padding-top: 10px;
  margin-top: 10px;
}
.privacy-catalogue-heading .micro {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Ten wallet sections need two clear rows before the medium desktop width
   becomes a clipped horizontal strip. */
@media (min-width: 751px) and (max-width: 1400px) {
  .wallet-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
  .wallet-nav a,
  .wallet-nav a:first-child {
    min-width: 0;
    padding: 14px 10px;
    font-size: 11px;
  }
}
.integrity-chip {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.integrity-alarm {
  border-color: #b5977b;
  background: #efe4d8;
}
.integrity-alarm b {
  font-weight: 600;
}
.integrity-alarm a {
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.integrity-table {
  margin: 18px 0;
  max-height: 320px;
}
.integrity-table td small {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.integrity-table td {
  white-space: normal;
  vertical-align: top;
}

.panel-duress {
  border-color: #b5977b;
}
.panel-duress h2 {
  color: #8a5430;
}
.wipe-limits {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: #6c7763;
}
.wipe-limits li {
  margin-bottom: 6px;
}

/* The endpoint list is one URL per line. Monospace so a long key-bearing URL can
   be scanned for a typo, and a fixed resize axis so the panel cannot be dragged
   sideways out of its column. */
.field textarea#rpc-endpoint {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}

/* A deterministic answer is quoted from the wallet's own source, so it is
   marked differently from an engine reply: this is the wallet speaking, not an
   assistant summarising it. A withheld reply is marked differently again,
   because it is the absence of an answer rather than a quiet one. */
.chat-bubble.sourced {
  border-left: 2px solid #768143;
  padding-left: 12px;
}
.chat-bubble.withheld {
  border-left: 2px solid #945f3d;
  padding-left: 12px;
}
.chat-bubble.sourced > .chat-role {
  color: #c2cbb5;
}

/* A refused message is not a warning about something that happened; it is a
   statement that nothing happened. It sits where the reply would have been. */
.note-refused {
  border-left: 2px solid #945f3d;
  padding-left: 12px;
}
