/* src/index.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080809;
  --surface: #0f0f11;
  --surface-2: #141416;
  --border: #1e1e22;
  --border-strong: #2a2a30;
  --text: #f0f0f0;
  --text-dim: #9898a8;
  --muted: #58586a;
  --accent: #f0f0f0;
  --accent-fg: #080809;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px #0006;
  --shadow: 0 4px 20px #0000008c;
  --shadow-lg: 0 12px 48px #000000b3;
  --font-mono: "Anonymous Pro", "Noto Sans Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --font-code: "Anonymous Pro", "Noto Sans Mono", ui-monospace, Menlo, monospace;
  --font-display: "Anonymous Pro", "Noto Sans Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Sono", "Anonymous Pro", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sono", "Anonymous Pro", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

html, body, #root {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-variation-settings: "MONO" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -.005em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.page {
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.page--center {
  display: flex;
  justify-content: center;
  align-items:  center;
}

.page--admin {
  max-width: 900px;
}

.page--room {
  max-width: 1180px;
  padding-top: 2rem;
}

.wordmark {
  font-family: var(--font-mono);
  letter-spacing: -.01em;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.wordmark-zero {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-size: inherit;
}

.admin-label {
  font-family: var(--font-sans);
  color: var(--text-dim);
  border: 1px solid var(--border);
  vertical-align: middle;
  border-radius: 4px;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: .72rem;
  font-weight: 500;
}

.home-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding: 3rem 0 2rem;
}

.home-header .wordmark {
  display: block;
  margin-bottom: .5rem;
  font-size: 2.1rem;
}

.home-header .wordmark-zero {
  font-size: 1.25em;
}

.tagline {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1.05rem;
  font-style: normal;
}

.home-pitch {
  margin-bottom: 2.5rem;
}

.home-pitch p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.pitch-list {
  list-style: none;
  display: flex;
  color: var(--text-dim);
  flex-direction: column;
  gap: .5rem;
}

.pitch-list li {
  position: relative;
  padding-left: 1rem;
}

.pitch-list li:before {
  content: "";
  position: absolute;
  background: var(--muted);
  width: 6px;
  height: 1px;
  top: .7em;
  left: 0;
}

.home-cta {
  margin-bottom: 3rem;
}

.open-rooms {
  margin-bottom: 2.5rem;
}

.open-rooms-title {
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: .75rem;
  font-size: .78rem;
}

.open-rooms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.open-room-btn {
  display: flex;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: none;
  align-items:  center;
  gap: .75rem;
  width: 100%;
  padding: .7rem .9rem;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  font-size: .9rem;
}

.open-room-btn:hover {
  border-color: var(--muted);
  background: #ffffff08;
}

.open-room-id {
  font-family: var(--font-mono, monospace);
  color: var(--text-dim);
}

.open-room-side {
  color: var(--text);
}

.open-room-status {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-left: auto;
  font-size: .75rem;
}

.home-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding-top: 2rem;
  font-size: .78rem;
}

.created-room {
  margin-bottom: 2.5rem;
}

.created-room h2 {
  margin-bottom: .4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.created-desc {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.link-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.link-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.link-block--invite {
  border-color: var(--border-strong);
}

.link-label {
  display: block;
  color: var(--text-dim);
  margin-bottom: .6rem;
  font-size: .78rem;
  font-weight: 500;
}

.link-url {
  display: block;
  font-family: var(--font-mono);
  word-break: break-all;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: .85rem;
  padding: .5rem .65rem;
  font-size: .78rem;
}

.link-actions {
  display: flex;
  gap: .5rem;
}

.room-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
}

.room-meta {
  display: flex;
  align-items:  center;
  gap: .55rem;
}

.room-id {
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: .04em;
  font-size: .72rem;
}

.room-side {
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .73rem;
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  padding: 1.6rem 1.75rem;
  transition: box-shadow .2s;
}

.panel:hover {
  box-shadow: var(--shadow);
}

.panel h2 {
  font-family: var(--font-display);
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: .85rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.panel h3 {
  color: var(--text-dim);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  font-size: .78rem;
  font-weight: 600;
}

.panel p {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.6;
}

.panel--warn {
  background: #facc1508;
  border-color: #facc1540;
}

.panel--warn h2 {
  color: var(--yellow);
}

.panel--terminal {
  border-color: var(--border);
  opacity: .7;
  box-shadow: none;
}

.panel--resolve {
  border-color: var(--border-strong);
}

.badge {
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: none;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: .7rem;
  font-weight: 600;
}

.badge--grey {
  color: var(--muted);
}

.badge--blue {
  color: var(--blue);
  background: #60a5fa12;
  border-color: #60a5fa66;
}

.badge--teal {
  color: var(--text);
  border-color: var(--border-strong);
}

.badge--yellow {
  color: var(--yellow);
  background: #facc1512;
  border-color: #facc1566;
}

.badge--green {
  color: var(--green);
  background: #4ade8012;
  border-color: #4ade8066;
}

.badge--red {
  color: var(--red);
  background: #f8717112;
  border-color: #f8717166;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.field > span, .field-label {
  color: var(--text-dim);
  font-size: .8rem;
  font-weight: 500;
}

.input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  width: 100%;
  padding: .6rem .85rem;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  font-size: .9rem;
}

.input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px #f0f0f00f;
}

.input::placeholder {
  color: var(--muted);
}

.input--textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
  line-height: 1.55;
}

.input--select-sm {
  flex-shrink: 0;
  width: 96px;
}

.input-row {
  display: flex;
  gap: .5rem;
}

.btn {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  justify-content: center;
  align-items:  center;
  gap: .4rem;
  padding: .58rem 1.15rem;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 500;
}

.btn:hover:not(:disabled) {
  background: var(--border-strong);
  border-color: var(--muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0);
}

.btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

.btn--primary:hover:not(:disabled) {
  color: var(--accent-fg);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 4px 16px #f0f0f033;
}

.btn--danger {
  color: var(--red);
  background: none;
  border-color: #f8717166;
}

.btn--danger:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
  background: #f871711f;
}

.btn--ghost {
  border-color: var(--border);
  background: none;
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
  background: #ffffff0a;
}

.btn--sm {
  border-radius: 6px;
  padding: .38rem .8rem;
  font-size: .76rem;
}

.btn--block {
  width: 100%;
  padding: .75rem 1.1rem;
  font-size: .9rem;
}

.error-msg {
  color: var(--red);
  margin-top: .5rem;
  font-size: .85rem;
}

.muted {
  font-size: .85rem;
  color: var(--muted) !important;
}

.resolution {
  margin-top: .75rem;
}

.hold-timer {
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}

code, .address, .hash {
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--border);
  word-break: break-all;
  color: var(--text);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .78rem;
}

pre {
  font-family: var(--font-mono);
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--text);
  padding: .75rem .85rem;
  font-size: .78rem;
}

.deposit-address {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-top: .35rem;
  margin-bottom: .35rem;
  padding: 1rem 1.1rem;
}

.deposit-address-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .6rem;
}

.deposit-address-head .field-label {
  margin-bottom: 0;
}

.deposit-chain {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}

.deposit-address-row {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}

.deposit-address-row .address {
  display: flex;
  flex: 1;
  align-items:  center;
  padding: .55rem .7rem;
  font-size: .78rem;
  line-height: 1.3;
}

.deposit-address-row .btn {
  flex-shrink: 0;
}

.deposit-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items:  flex-start;
  gap: .5rem;
  margin-top: 1rem;
}

.deposit-qr {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  width: 176px;
  height: 176px;
  padding: 8px;
}

.deposit-qr-caption {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.3;
}

.fee-breakdown {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  padding: .9rem 1.1rem;
  font-size: .85rem;
}

.fee-row {
  display: flex;
  color: var(--text-dim);
  justify-content: space-between;
  align-items: baseline;
  padding: .35rem 0;
}

.fee-row span:first-child {
  color: var(--muted);
}

.fee-row span:last-child, .fee-row strong {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
}

.fee-row--total {
  border-top: 1px solid var(--border);
  margin-top: .35rem;
  padding-top: .6rem;
}

.fee-row--total span:first-child {
  color: var(--text);
  font-weight: 500;
}

.fee-row--total strong {
  font-weight: 600;
}

.fee-notice {
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  padding-top: .6rem;
  font-size: .78rem;
}

.fee-loading {
  margin-bottom: .75rem;
  font-size: .8rem;
}

.preview-block {
  margin-bottom: 1.25rem;
}

.preview-descriptor, .preview-file, .preview-crypto {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.preview-descriptor:last-child, .preview-file:last-child, .preview-crypto:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.preview-descriptor p {
  color: var(--text);
  white-space: pre-wrap;
  font-size: .9rem;
}

.hash-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  margin-top: .4rem;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .4rem;
}

.file-meta span:first-child {
  color: var(--text);
  font-weight: 500;
}

.file-meta span:last-child {
  color: var(--muted);
  font-size: .8rem;
}

.dispute-form {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.dispute-form h3 {
  color: var(--red);
  margin-bottom: .5rem;
}

.dispute-form .input {
  margin-bottom: .75rem;
}

.admin-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (width <= 620px) {
  .admin-parties {
    grid-template-columns: 1fr;
  }
}

.admin-party h2 {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .85rem;
  font-size: .85rem;
  font-weight: 500;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .4rem;
}

.admin-descriptor {
  margin-top: .85rem;
}

.admin-descriptor pre {
  overflow-y: auto;
  max-height: 200px;
}

.admin-file {
  margin-top: .85rem;
}

.panel--admin-meta {
  margin-bottom: 1rem;
}

.resolve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--text);
  animation: spin .7s linear infinite;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.proposals-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 1rem;
}

.proposals-header h2 {
  margin-bottom: 0;
}

.proposal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: .6rem;
  padding: .95rem 1.05rem;
}

.proposal--incoming {
  border-color: var(--border-strong);
}

.proposal--mine {
  border-color: var(--border);
}

.proposal--accepted {
  border-color: var(--border);
  opacity: .7;
}

.proposal--rejected {
  border-color: var(--border);
  opacity: .5;
}

.proposal--superseded {
  opacity: .4;
}

.proposal-badge {
  color: var(--text-dim);
  margin-bottom: .65rem;
  font-size: .75rem;
  font-weight: 500;
}

.proposal-badge--mine {
  color: var(--muted);
}

.proposal-body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
}

.proposal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
}

.proposal-descriptor {
  color: var(--text);
  white-space: pre-wrap;
  margin: 0;
  font-size: .875rem;
}

.proposal-actions {
  display: flex;
  gap: .5rem;
}

.propose-form {
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  padding-top: 1rem;
}

.propose-form h3 {
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .85rem;
  font-size: .85rem;
  font-weight: 500;
}

.propose-form em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.prop-status {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  font-weight: 500;
}

.prop-status--accepted {
  color: var(--green);
}

.prop-status--rejected {
  color: var(--red);
}

.prop-status--superseded {
  color: var(--muted);
}

.proposal-history {
  border-top: 1px solid var(--border);
  margin-top: .75rem;
  padding-top: .85rem;
}

.proposal-history summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
  list-style: none;
  margin-bottom: .75rem;
  font-size: .78rem;
}

.proposal-history summary::-webkit-details-marker {
  display: none;
}

.proposal-history summary:before {
  content: "› ";
  display: inline-block;
  transition: transform .15s;
}

.proposal-history[open] summary:before {
  transform: rotate(90deg);
}

.proposal-history summary:hover {
  color: var(--text);
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  gap: 3px;
  width: 100%;
  padding: 3px;
}

.seg-opt {
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  flex: 1;
  padding: .5rem .85rem;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 500;
}

.seg-opt:hover:not(.seg-opt--active) {
  color: var(--text);
  background: #ffffff09;
}

.seg-opt--active {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.seg--sm .seg-opt {
  padding: .4rem .85rem;
  font-size: .79rem;
}

.amount-input {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  align-items: stretch;
  transition: border-color .15s, box-shadow .15s;
}

.amount-input:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px #f0f0f00f;
}

.amount-input-field {
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -.01em;
  background: none;
  border: none;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: .7rem .85rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.amount-input-field::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.amount-input-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input-suffix {
  font-family: var(--font-mono);
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  display: flex;
  letter-spacing: .04em;
  align-items:  center;
  padding: 0 .85rem;
  font-size: .85rem;
  font-weight: 500;
}

.deposit-section {
  margin-top: 1.5rem;
}

.section-divider {
  display: flex;
  color: var(--muted);
  align-items:  center;
  gap: .75rem;
  margin: 0 0 1.1rem;
  font-size: .8rem;
  font-weight: 500;
}

.section-divider:before, .section-divider:after {
  content: "";
  background: var(--border);
  flex: 1;
  height: 1px;
}

.dropzone {
  position: relative;
  display: flex;
  background: var(--bg);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  outline: none;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: .5rem;
  min-height: 160px;
  padding: 1.5rem 1.25rem;
  transition: border-color .15s, background .15s, color .15s;
}

.dropzone:hover {
  border-color: var(--text-dim);
}

.dropzone:focus-visible {
  border-color: var(--text);
}

.dropzone--active {
  border-color: var(--text);
  background: var(--surface-2);
  border-style: solid;
}

.dropzone--filled {
  border-style: solid;
  border-color: var(--border-strong);
  cursor: default;
  text-align: left;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
  padding: 1rem 1.1rem;
}

.dropzone-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  width: 100%;
  height: 100%;
  inset: 0;
}

.dropzone-icon {
  color: var(--text-dim);
  display: flex;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 44px;
  height: 44px;
  margin-bottom: .25rem;
}

.dropzone--active .dropzone-icon {
  color: var(--text);
  border-color: var(--text);
}

.dropzone-title {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
}

.dropzone-hint {
  color: var(--muted);
  font-size: .78rem;
}

.dropzone-file {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 1rem;
}

.dropzone-file-info {
  flex: 1;
  min-width: 0;
}

.dropzone-file-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 500;
}

.dropzone-file-meta {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-top: .2rem;
  font-size: .75rem;
}

.amount-input-toggle {
  display: flex;
  border-left: 1px solid var(--border);
  gap: 2px;
  padding: 4px;
}

.amount-input-toggle-opt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: calc(var(--radius)  - 4px);
  background: none;
  border: none;
  padding: 0 .7rem;
  transition: background .12s, color .12s;
  font-size: .78rem;
  font-weight: 500;
}

.amount-input-toggle-opt:hover {
  color: var(--text);
}

.amount-input-toggle-opt.is-active {
  background: var(--text);
  color: var(--bg);
}

.amount-input-hint {
  display: block;
  font-family: var(--font-mono);
  margin-top: .4rem;
  font-size: .75rem;
}

.fee-row-values {
  display: flex;
  flex-direction: column;
  align-items:  flex-end;
  gap: 2px;
}

.fee-row-values .fee-row-primary {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
}

.fee-row-values .fee-row-secondary {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 400;
}

.fee-row--total .fee-row-values .fee-row-primary {
  font-weight: 600;
}

.phase-stepper {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items:  center;
  gap: 0;
  margin: 1.5rem 0 2rem;
  padding: .85rem 1rem;
}

.phase-stepper--ended, .phase-stepper--disputed {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 1rem;
  font-size: .85rem;
}

.phase-stepper--disputed {
  color: var(--red);
  border-color: var(--red);
}

.phase-step {
  display: flex;
  position: relative;
  flex: 1;
  align-items:  center;
  gap: .6rem;
  min-width: 0;
}

.phase-step:last-child {
  flex: none;
}

.phase-step-num {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items:  center;
  width: 22px;
  height: 22px;
  transition: all .15s;
  font-size: .72rem;
  font-weight: 600;
}

.phase-step-label {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .8rem;
}

.phase-step-bar {
  background: var(--border);
  flex: 1;
  height: 1px;
  margin: 0 .5rem;
}

.phase-step--current .phase-step-num {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.phase-step--current .phase-step-label {
  color: var(--text);
  font-weight: 600;
}

.phase-step--done .phase-step-num {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.phase-step--done .phase-step-label {
  color: var(--text-dim);
}

.phase-step--done .phase-step-bar {
  background: var(--border-strong);
}

.substep-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: .4rem;
  margin: .75rem 0 1.75rem;
  padding-bottom: .85rem;
}

.substep {
  display: flex;
  font-family: var(--font-mono);
  color: var(--muted);
  border: 1px solid #0000;
  border-radius: 4px;
  flex: 1;
  align-items:  center;
  gap: .5rem;
  min-width: 0;
  padding: .4rem .6rem;
  font-size: .75rem;
}

.substep-dot {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: .7rem;
}

.substep-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.substep--current {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.substep--current .substep-dot {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.substep--done {
  color: var(--text-dim);
}

.substep--done .substep-dot {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .25rem;
}

.step-counter {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .78rem;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem;
}

.step-actions--single {
  justify-content: flex-end;
}

.step-warn {
  background: var(--surface-2);
  border-left: 2px solid var(--yellow);
  border-radius: 4px;
  padding: .7rem .85rem;
  font-size: .78rem;
}

.field-hint {
  display: block;
  font-size: .72rem;
  font-family: var(--font-sans);
  margin-top: .4rem;
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.type-card {
  display: flex;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items:  center;
  gap: .55rem;
  padding: 1.25rem .75rem 1rem;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}

.type-card:hover {
  border-color: var(--muted);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.type-card.is-active {
  background: var(--surface-2);
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text) inset;
}

.type-card-icon-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: flex;
  color: var(--muted);
  border-radius: 10px;
  justify-content: center;
  align-items:  center;
  width: 52px;
  height: 52px;
  margin-bottom: .1rem;
  font-size: 1.35rem;
}

.type-card.is-active .type-card-icon-wrap {
  color: var(--text-dim);
  border-color: var(--border-strong);
}

.type-card-icon-row {
  display: inline-flex;
  align-items:  center;
  gap: .3rem;
}

.type-card-icon-plus {
  color: var(--muted);
  font-size: .5rem;
}

.type-card-label {
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: .01em;
  font-size: .82rem;
  font-weight: 700;
}

.type-card-hint {
  color: var(--muted);
  font-size: .68rem;
  font-family: var(--font-sans);
  line-height: 1.3;
}

@media (width <= 540px) {
  .type-cards {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  gap: .65rem;
  padding: 1.1rem 1.25rem;
}

.review-card h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .85rem;
  font-size: .85rem;
}

.review-row > span:last-child, .review-row > strong {
  font-family: var(--font-mono);
  color: var(--text);
}

.review-row--block {
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
}

.review-descriptor {
  font-family: var(--font-sans);
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  border-radius: 4px;
  padding: .55rem .7rem;
  font-size: .85rem;
}

.address-inline {
  font-family: var(--font-code);
  color: var(--text);
  word-break: break-all;
  font-size: .75rem;
}

.hold-explainer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
}

.hold-explainer h3 {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .6rem;
  font-size: 1rem;
  font-weight: 700;
}

.numbered-list {
  list-style: decimal;
  display: flex;
  color: var(--text-dim);
  flex-direction: column;
  gap: .4rem;
  padding-left: 1.25rem;
  font-size: .88rem;
}

.numbered-list li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
}

.small {
  font-size: .78rem;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: .85rem 0;
}

.checklist li {
  display: flex;
  font-family: var(--font-mono);
  color: var(--text-dim);
  align-items:  center;
  gap: .6rem;
  font-size: .85rem;
}

.checklist li.is-done {
  color: var(--text);
}

.checklist-mark {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: .75rem;
}

.checklist li.is-done .checklist-mark {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}

.file-tree {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: .6rem 0;
}

.file-tree summary {
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: .5rem .75rem;
  font-size: .78rem;
}

.file-tree-content {
  font-family: var(--font-code);
  color: var(--text-dim);
  background: var(--bg);
  white-space: pre-wrap;
  border-top: 1px solid var(--border);
  overflow: auto;
  max-height: 240px;
  padding: .6rem .85rem;
  font-size: .72rem;
}

.completed-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: 1rem;
  padding: .75rem .85rem;
}

.completed-summary code {
  font-family: var(--font-code);
  color: var(--text);
  word-break: break-all;
  font-size: .78rem;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items:  start;
  gap: 1.75rem;
}

.room-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.room-sidebar {
  position: sticky;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  top: 1.5rem;
}

@media (width <= 980px) {
  .room-layout {
    grid-template-columns: 1fr;
  }

  .room-sidebar {
    position: static;
  }
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem;
}

.side-card-head {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.side-card-head h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
}

.side-card-head .pill {
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .7rem;
}

.side-status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.side-status-list li {
  display: flex;
  font-family: var(--font-mono);
  color: var(--text-dim);
  align-items:  center;
  gap: .55rem;
  font-size: .8rem;
}

.side-status-list li.is-done {
  color: var(--text);
}

.side-status-list li.is-pending {
  color: var(--muted);
}

.side-status-mark {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-dim);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: .72rem;
}

.side-status-list li.is-done .side-status-mark {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}

.side-empty {
  color: var(--muted);
  font-size: .82rem;
}

.notif-feed {
  list-style: none;
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: .55rem;
  max-height: 280px;
}

.notif {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 4px;
  align-items:  flex-start;
  gap: .6rem;
  padding: .55rem .65rem;
  font-size: .78rem;
}

.notif-icon {
  display: flex;
  color: var(--text-dim);
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  font-size: .78rem;
}

.notif--success .notif-icon {
  color: var(--green);
}

.notif--info .notif-icon {
  color: var(--blue);
}

.notif--warn .notif-icon {
  color: var(--yellow);
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title {
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
}

.notif-time {
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 2px;
  font-size: .68rem;
}

.side-card .proposal {
  margin-bottom: .5rem;
  padding: .7rem .8rem;
  font-size: .82rem;
}

.side-card .proposal:last-child {
  margin-bottom: 0;
}

.side-card .proposal-actions {
  gap: .4rem;
}

.side-card .proposal-actions .btn {
  padding: .32rem .7rem;
  font-size: .74rem;
}

.side-card .proposal-history {
  margin-top: .5rem;
  padding-top: .55rem;
}

.side-card .propose-form h3 {
  font-family: var(--font-display);
  font-size: .78rem;
}

.token-icon {
  display: inline-flex;
  vertical-align: -.12em;
  color: inherit;
  justify-content: center;
  align-items:  center;
  width: 1em;
  height: 1em;
  font-style: normal;
}

.token-icon--usdt {
  display: inline-block;
  vertical-align: -.15em;
  color: inherit;
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
}

.token-chip {
  display: inline-flex;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  align-items:  center;
  gap: .4rem;
  font-weight: 600;
}

.token-chip .token-icon {
  color: var(--text);
  font-size: 1.1em;
}

.amount-input-toggle-opt .token-icon {
  margin-right: 4px;
  font-size: .95em;
}

.seg-opt .token-icon {
  margin-right: 4px;
  font-size: 1em;
}

.type-card-label .token-icon {
  margin-right: 6px;
}

.side-counterparty-row {
  display: flex;
  font-family: var(--font-mono);
  color: var(--text-dim);
  justify-content: space-between;
  align-items:  center;
  gap: .5rem;
  padding: .3rem 0;
  font-size: .78rem;
}

.side-counterparty-row + .side-counterparty-row {
  border-top: 1px dashed var(--border);
}

.side-counterparty-row strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
}
