@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap";

/* src/style.css */
:root {
  color: #151a17;
  background: #f4f1e8;
  font-family:
    "Manrope",
    system-ui,
    sans-serif;
  font-synthesis: none;
  --ink: #151a17;
  --muted: #68706a;
  --line: #d5d2c8;
  --paper: #fbfaf5;
  --acid: #d9ff4f;
  --blue: #2254d8;
  --danger: #b92f22;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f1e8;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border-radius: 0;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font: 500 10px/1.3 "DM Mono", monospace;
  letter-spacing: .13em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  background: var(--ink);
  color: var(--acid);
  font: 500 13px/1 "DM Mono", monospace;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(430px, .8fr);
  background:
    linear-gradient(rgba(21, 26, 23, .032) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(21, 26, 23, .032) 1px,
      transparent 1px),
    #f4f1e8;
  background-size: 32px 32px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 9vw, 140px);
}
.login-brand .brand-mark {
  margin-bottom: 72px;
}
.login-brand h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  font-size: clamp(58px, 7vw, 100px);
  line-height: .94;
  letter-spacing: -.072em;
}
.login-brand > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.login-card {
  align-self: center;
  width: min(500px, calc(100% - 64px));
  padding: 36px;
  background: var(--ink);
  color: white;
  box-shadow: 10px 10px 0 var(--acid);
}
.login-card h2 {
  margin: 10px 0 28px;
  font-size: 40px;
  letter-spacing: -.05em;
}
.login-card .eyebrow {
  color: var(--acid);
}
.field {
  display: block;
  margin-top: 18px;
}
.field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.login-card .field > span {
  color: #aab1ab;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 12px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(34, 84, 216, .13);
}
.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 12px 15px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.primary-button {
  background: var(--ink);
  color: white;
}
.login-card .primary-button {
  width: 100%;
  margin-top: 24px;
  background: var(--acid);
  color: var(--ink);
}
.primary-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--acid);
}
.login-card .primary-button:hover {
  box-shadow: 4px 4px 0 white;
}
.secondary-button {
  background: transparent;
  color: var(--ink);
}
.local-note {
  margin: 16px 0 0;
  color: #7e867f;
  font: 400 9px/1.5 "DM Mono", monospace;
}
.form-status {
  margin: 15px 0 0;
  padding: 11px;
  border: 1px solid #9db45e;
  background: #eef8d0;
  color: var(--ink);
  font-size: 11px;
}
.form-status.error {
  border-color: #e4a7a1;
  background: #fff0ed;
  color: var(--danger);
}
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  background: var(--ink);
  color: white;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  text-transform: uppercase;
}
.sidebar .brand-mark {
  background: var(--acid);
  color: var(--ink);
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 68px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #a9b1aa;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.nav-item span {
  font: 500 11px "DM Mono", monospace;
}
.nav-item.active {
  border-color: #3c423e;
  background: #242a26;
  color: var(--acid);
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #3c423e;
}
.sidebar-footer > span {
  display: block;
  color: #717972;
  font: 400 8px "DM Mono", monospace;
}
.sidebar-footer strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #c5cbc6;
  font: 500 9px "DM Mono", monospace;
}
.sidebar-footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e68b18;
}
.sidebar-footer p {
  margin: 16px 0 0;
  overflow: hidden;
  color: #aab1ab;
  font: 400 9px/1.6 "DM Mono", monospace;
  text-overflow: ellipsis;
}
.sidebar-footer button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8e968f;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
}
.workspace {
  min-width: 0;
  padding: 38px clamp(24px, 4vw, 64px) 72px;
  background:
    linear-gradient(rgba(21, 26, 23, .028) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(21, 26, 23, .028) 1px,
      transparent 1px),
    #f4f1e8;
  background-size: 32px 32px;
}
.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.workspace-head h1 {
  margin: 8px 0 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.head-actions span {
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}
.head-actions button {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.management-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(380px, .65fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}
.table-panel,
.editor-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head strong,
.panel-head span {
  font: 500 11px "DM Mono", monospace;
}
.panel-head span {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 12px 14px;
  background: #efede6;
  color: var(--muted);
  font: 500 10px "DM Mono", monospace;
  text-align: left;
}
td {
  padding: 15px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}
td strong,
td small {
  display: block;
}
td small {
  max-width: 230px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font: 400 10px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
td code {
  font: 400 11px "DM Mono", monospace;
}
.status-chip {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: #efede6;
  font: 500 10px "DM Mono", monospace;
  white-space: nowrap;
}
.status-chip.published {
  border-color: #9db45e;
  background: #eef8d0;
}
.status-chip.archived {
  color: var(--danger);
}
.row-actions {
  white-space: nowrap;
}
.row-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.row-actions button + button {
  margin-left: 10px;
}
.empty-row {
  padding: 54px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.editor-panel {
  position: static;
  padding-bottom: 18px;
}
.editor-panel > .field,
.editor-panel > .field-pair,
.editor-actions,
.editor-panel > .form-status {
  margin-right: 18px;
  margin-left: 18px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-pair.narrow-wide {
  grid-template-columns: 110px 1fr;
}
.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.wallet-field input {
  border-color: var(--ink);
  background: var(--acid);
}
.settlement-panel {
  margin: 20px 18px 4px;
  padding: 0 14px 16px;
  border: 1px solid var(--ink);
  background: #f3f7de;
}
.settlement-head {
  border-bottom: 1px solid #cbd5a6;
}
.settlement-state {
  padding: 5px 7px;
  border: 1px solid #9db45e;
  background: var(--acid);
  color: var(--ink) !important;
}
.settlement-state.config-only {
  border-color: #d5a45b;
  background: #fff0d3;
  color: #80520c !important;
}
.payment-mode-note {
  margin-top: 13px;
  padding: 13px 14px;
  border: 1px solid #9db45e;
  background: white;
}
.payment-mode-note span,
.payment-mode-note strong,
.payment-mode-note small {
  display: block;
}
.payment-mode-note span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.payment-mode-note strong {
  margin-top: 6px;
  font-size: 15px;
}
.payment-mode-note small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.settlement-panel .field-pair {
  margin: 0;
}
.settlement-panel .field {
  margin-top: 13px;
}
.settlement-token-address {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.settlement-token-address code {
  color: var(--ink);
  font: 500 8px/1.5 "DM Mono", monospace;
  overflow-wrap: anywhere;
}
.settlement-panel .wallet-field {
  margin-right: 0;
  margin-left: 0;
}
.editor-actions {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin-top: 22px;
}
.product-credential-panel {
  margin: 20px 18px 0;
  padding: 0 14px 14px;
  border: 1px solid var(--ink);
  background: #efede6;
}
.product-credential-panel .contract-head {
  border-bottom: 1px solid var(--line);
}
.product-credential-panel .field {
  margin-top: 13px;
}
.product-credential-panel .credential-note {
  margin-top: 13px;
}
.product-binding-toggle {
  margin: 13px 0 0;
  background: white;
}
.binding-state {
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue) !important;
}
.credential-fields {
  gap: 10px;
}
.binding-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  align-items: end;
  margin-top: 13px;
}
.binding-actions .form-status {
  margin: 0;
}
.binding-actions .secondary-button {
  min-height: 42px;
  justify-content: center;
  background: var(--paper);
}
.binding-toggles {
  gap: 10px;
}
.orders-panel {
  margin-top: 24px;
}
.order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.order-stats article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.order-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.order-stats strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: 28px;
  letter-spacing: -.05em;
  text-overflow: ellipsis;
}
.order-stats .revenue-stat {
  background: var(--ink);
  color: white;
}
.order-stats .revenue-stat span {
  color: #aab1ab;
}
.order-stats .revenue-stat strong {
  color: var(--acid);
  font-size: 20px;
}
.order-stats .revenue-stat b {
  font-size: 28px;
}
.order-stats .profit-stat {
  border-color: var(--blue);
  background: #eef4ff;
}
.order-stats .profit-stat strong {
  color: var(--blue);
  font-size: 20px;
}
.order-stats .profit-stat b {
  font-size: 28px;
}
.order-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, .8fr) 145px 145px 90px 120px;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.order-filters label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.order-filters select,
.order-filters input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
  font-size: 12px;
}
.order-filters button {
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.revenue-filters {
  grid-template-columns: 180px 180px 120px;
  justify-content: start;
}
.order-breakdown {
  margin-top: 18px;
}
.batch-funds-panel {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.batch-funds-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.batch-funds-head h2 {
  margin: 7px 0 0;
  font-size: 30px;
  letter-spacing: -.04em;
}
.batch-funds-head > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.batch-funds-actions {
  display: flex;
  gap: 8px;
}
.batch-funds-actions button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
#batch-claim-settle {
  background: var(--ink);
  color: white;
}
.batch-funds-actions button:disabled {
  cursor: wait;
  opacity: .55;
}
.batch-funds-panel > .form-status {
  margin-top: 14px;
}
.batch-settings-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 120px;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f3f7de;
}
.batch-settings-card > div > span,
.batch-settings-card label span {
  display: block;
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}
.batch-settings-card > div > strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}
.batch-settings-card > div > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.batch-settings-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: white;
  font-size: 13px;
}
.batch-settings-card button {
  min-height: 42px;
  border: 1px solid var(--ink);
  background: var(--acid);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.batch-settings-card > .form-status {
  grid-column: 1 / -1;
  margin: 0;
}
.batch-stats {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.batch-stats article strong {
  font-size: 18px;
}
.batch-stats article strong b {
  font-size: 25px;
}
.batch-channel-table {
  margin-top: 18px;
}
.batch-channel-table td small {
  max-width: 340px;
}
.order-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.order-pagination span {
  color: var(--muted);
  font: 500 11px "DM Mono", monospace;
}
.order-pagination button {
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.order-pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.contract-builder {
  margin: 20px 18px 0;
  border-top: 1px solid var(--line);
}
.contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 10px;
}
.contract-head > div {
  display: grid;
  gap: 4px;
}
.contract-head strong,
.contract-head span {
  font: 500 9px "DM Mono", monospace;
}
.contract-head span {
  color: var(--muted);
}
.contract-head button {
  padding: 7px 9px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}
.definition-list {
  display: grid;
  gap: 9px;
}
.definition-empty {
  margin: 0;
  padding: 22px 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}
.definition-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  background: #f5f3ec;
}
.definition-number {
  padding-top: 27px;
  color: var(--blue);
  font: 500 9px "DM Mono", monospace;
}
.definition-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 9px;
}
.definition-fields .field {
  margin-top: 9px;
}
.definition-fields .wide-field {
  grid-column: 1 / -1;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: end;
  min-height: 41px;
  font-size: 10px;
  font-weight: 700;
}
.check-field input {
  accent-color: var(--blue);
}
.remove-definition {
  align-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 9px;
  text-decoration: underline;
}
.field-head {
  padding-top: 8px;
}
.response-controls {
  margin: 0;
}
.response-field-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 110px 36px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f5f3ec;
}
.response-field-row .definition-number {
  align-self: center;
  padding-top: 0;
}
.response-field-row .field {
  margin-top: 0;
}
.simulation-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.simulation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 12, .68);
  backdrop-filter: blur(4px);
}
.simulation-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(217, 255, 79, .9);
}
.simulation-panel .panel-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 9px;
  text-decoration: underline;
}
.simulation-grid {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr);
  gap: 18px;
  min-height: 0;
  padding: 0 18px 18px;
  overflow: auto;
}
.simulation-grid textarea {
  font: 400 10px/1.65 "DM Mono", monospace;
}
.dynamic-form {
  margin-top: 18px;
}
.dynamic-form > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.simulation-environment-field {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.simulation-provider-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  background: #efede6;
}
.simulation-provider-summary strong {
  font: 500 9px "DM Mono", monospace;
}
.simulation-provider-summary span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 400 9px/1.5 "DM Mono", monospace;
}
.dynamic-form .runtime-field {
  margin-top: 11px;
}
.runtime-field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.runtime-check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
}
.runtime-check input {
  accent-color: var(--blue);
}
.simulation-result {
  min-width: 0;
  margin-top: 18px;
}
.simulation-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.simulation-result-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.simulation-result-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
}
.simulation-result-head button:disabled {
  cursor: not-allowed;
  opacity: .4;
}
#simulation-result {
  min-height: 250px;
  max-height: 520px;
  padding: 14px;
  overflow: auto;
  border: 1px solid #3c423e;
  background: var(--ink);
  color: #d9e0da;
  font: 400 10px/1.65 "DM Mono", monospace;
}
.simulation-result pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.rendered-key-values {
  margin: 0;
  border: 1px solid #3c423e;
  background: #1c211e;
}
.rendered-key-values div {
  display: grid;
  grid-template-columns: minmax(112px, 36%) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 11px 12px;
  border-bottom: 1px solid #3c423e;
}
.rendered-key-values div:last-child {
  border-bottom: 0;
}
.rendered-key-values dt {
  color: #aeb6af;
  font-size: 11px;
}
.rendered-key-values dd {
  margin: 0;
  color: white;
  font-size: 14px;
  text-align: right;
  word-break: break-word;
}
.rendered-key-values .json-value {
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
}
.rendered-result-list {
  display: grid;
  gap: 12px;
}
.rendered-result-summary,
.rendered-result-group {
  border: 1px solid #4b534d;
  background: #1c211e;
}
.rendered-result-summary {
  margin-bottom: 14px;
}
.rendered-result-summary > header,
.rendered-result-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #4b534d;
  background: #252b27;
}
.rendered-result-summary > header span,
.rendered-result-group > header span {
  color: #aeb6af;
  font-size: 9px;
  letter-spacing: .12em;
}
.rendered-result-summary > header strong,
.rendered-result-group > header strong {
  color: var(--acid);
  font-size: 11px;
}
.rendered-result-summary .rendered-key-values,
.rendered-result-group .rendered-key-values {
  border: 0;
}
.rendered-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #4b534d;
  color: #aeb6af;
}
.rendered-table-wrap {
  overflow: auto;
}
.rendered-table-wrap table {
  color: white;
}
.rendered-table-wrap th {
  background: #2c332e;
  color: #aeb6af;
}
.rendered-table-wrap td {
  border-color: #3c423e;
}
.rendered-text {
  margin: 0;
  white-space: pre-wrap;
}
.simulation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.simulation-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.charge-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 9px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
}
.charge-confirm input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--danger);
}
.simulation-actions .primary-button {
  min-width: 220px;
}
.integration-grid {
  display: grid;
  grid-template-columns: minmax(380px, .65fr) minmax(560px, 1.35fr);
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}
.integration-panel {
  position: static;
}
.integration-panel > .field,
.integration-panel > .toggle-field,
.integration-panel > .credential-note,
.integration-panel > .editor-actions,
.integration-panel > .form-status {
  margin-right: 18px;
  margin-left: 18px;
}
.toggle-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #efede6;
  font-size: 11px;
  font-weight: 700;
}
.toggle-field input {
  accent-color: var(--blue);
}
.credential-note {
  margin-top: 20px;
  padding: 13px;
  border: 1px solid #9db45e;
  background: #eef8d0;
}
.credential-note strong {
  font: 500 9px "DM Mono", monospace;
}
.credential-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font: 400 9px "DM Mono", monospace;
}
.integration-actions {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}
.integration-actions > span {
  overflow: hidden;
  color: var(--muted);
  font: 400 8px/1.5 "DM Mono", monospace;
  text-overflow: ellipsis;
}
.access-grid {
  grid-template-columns: minmax(620px, 1.35fr) minmax(360px, .65fr);
}
.user-panel {
  position: static;
}
.user-panel > .field,
.user-panel > .toggle-field,
.user-panel > .editor-actions,
.user-panel > .form-status {
  margin-right: 18px;
  margin-left: 18px;
}
.permission-builder {
  margin: 20px 18px 0;
  border-top: 1px solid var(--line);
}
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.permission-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f5f3ec;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.permission-grid input {
  accent-color: var(--blue);
}
.permission-summary {
  max-width: 320px;
  white-space: normal;
}
.readonly-product-panel {
  position: static;
}
.readonly-product-panel > div:last-child {
  padding: 28px 22px;
}
.readonly-product-panel > div:last-child > strong {
  font-size: 16px;
}
.readonly-product-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.audit-panel {
  margin-top: 18px;
}
.audit-details {
  min-width: 280px;
}
.audit-details summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.audit-details > div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.audit-details p {
  display: grid;
  grid-template-columns: minmax(90px, .6fr) minmax(120px, 1fr) 18px minmax(120px, 1fr);
  gap: 7px;
  align-items: start;
  margin: 0;
  padding: 8px;
  background: #efede6;
}
.audit-details b {
  font-size: 11px;
}
.audit-details span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 400 10px/1.5 "DM Mono", monospace;
}
.audit-details i {
  color: var(--blue);
  font-style: normal;
  text-align: center;
}
@media (max-width: 1100px) {
  .management-grid,
  .integration-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }
  .editor-panel {
    position: static;
  }
  .simulation-grid {
    grid-template-columns: 1fr;
  }
  .order-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .batch-funds-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .order-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 48px 24px 28px;
  }
  .login-brand .brand-mark {
    margin-bottom: 48px;
  }
  .login-brand h1 {
    font-size: 56px;
  }
  .login-card {
    align-self: start;
    width: calc(100% - 48px);
    margin: 0 24px 48px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }
  .sidebar nav {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
  }
  .sidebar-footer {
    display: none;
  }
  .workspace {
    padding: 26px 16px 56px;
  }
  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .management-grid {
    margin-top: 16px;
  }
  .field-pair,
  .field-pair.narrow-wide {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .binding-actions {
    grid-template-columns: 1fr;
  }
  .definition-fields {
    grid-template-columns: 1fr;
  }
  .definition-fields .wide-field {
    grid-column: auto;
  }
  .response-field-row {
    grid-template-columns: 26px 1fr;
  }
  .response-field-row .field,
  .response-field-row .remove-definition {
    grid-column: 2;
  }
  .simulation-grid {
    padding: 0 12px 12px;
  }
  .simulation-modal {
    padding: 12px;
  }
  .simulation-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    box-shadow: 6px 6px 0 rgba(217, 255, 79, .9);
  }
  .simulation-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .simulation-actions .primary-button {
    width: 100%;
    min-width: 0;
  }
  .order-stats {
    grid-template-columns: 1fr 1fr;
  }
  .batch-stats {
    grid-template-columns: 1fr;
  }
  .batch-funds-actions {
    width: 100%;
    flex-direction: column;
  }
  .order-filters {
    grid-template-columns: 1fr;
  }
  .order-pagination {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}
/*# sourceMappingURL=app.css.map */
