/* src/styles.css */
:root {
  color: #e5edf7;
  background: #07111f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  color: #05111f;
  background: #7dd3fc;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.1rem;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

input, textarea {
  color: #e5edf7;
  background: #0b1727;
  border: 1px solid #29415d;
  border-radius: .8rem;
  width: 100%;
  padding: .8rem;
}

label {
  display: grid;
  color: #b6c7dc;
  gap: .45rem;
  font-weight: 650;
}

fieldset {
  display: flex;
  border: 1px solid #29415d;
  border-radius: 1rem;
  gap: 1rem;
  padding: 1rem;
}

legend {
  color: #b6c7dc;
}

code, pre {
  overflow-wrap: anywhere;
  color: #bae6fd;
}

pre {
  overflow: auto;
  background: #020817;
  border-radius: .8rem;
  max-height: 24rem;
  padding: 1rem;
}

.shell {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  padding: 2rem 0;
}

.hero h1 {
  max-width: 820px;
  margin: .25rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.eyebrow {
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.card {
  background: linear-gradient(#0f2035, #0a1626);
  border: 1px solid #1e3550;
  border-radius: 1.5rem;
  margin-top: 1rem;
  padding: 1.25rem;
  box-shadow: 0 20px 60px #00000040;
}

.muted-card {
  opacity: .78;
}

.muted {
  color: #8aa2bd;
  margin: 0 0 .75rem;
  font-size: .93rem;
  line-height: 1.45;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title h2, .section-title h3 {
  margin: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid p {
  margin: 0;
}

.grid span {
  display: block;
  color: #8aa2bd;
  font-size: .9rem;
}

.token-meta {
  display: flex;
  color: #b6c7dc;
  flex-wrap: wrap;
  align-items:  center;
  gap: .5rem .75rem;
  margin: .8rem 0 1rem;
}

.error-text {
  color: #fca5a5;
}

.field-hint {
  color: #8aa2bd;
  font-size: .85rem;
  font-weight: 500;
}

.radio {
  display: flex;
  align-items:  center;
  gap: .45rem;
}

.radio input {
  width: auto;
}

.inline {
  display: flex;
  gap: .7rem;
}

.inline input {
  flex: 1;
}

.ghost {
  color: #dbeafe;
  background: none;
  border: 1px solid #34506e;
}

.notice {
  background: #0b1727;
  border: 1px solid #34506e;
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1rem;
}

.notice.warn {
  border-color: #fbbf24;
}

.notice.success {
  border-color: #34d399;
}

.notice.error {
  border-color: #f87171;
}

.rows {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.row-card, .commitment {
  background: #091426;
  border: 1px solid #223c5a;
  border-radius: 1rem;
  padding: 1rem;
}

.commitment {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.commitment p {
  margin: 0;
}

.result-list {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.result-item {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  background: #071225;
  border: 1px solid #223c5a;
  border-radius: .9rem;
  gap: .8rem;
  padding: .9rem;
}

.result-item p {
  margin: 0;
}

.result-item span {
  display: block;
  color: #8aa2bd;
  font-size: .85rem;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}

.sig-panel {
  border-top: 1px solid #223c5a;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.sig-panel:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.sig-panel h3 {
  margin: 0 0 .5rem;
}

.sig-panel .actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.inline-list {
  margin: .35rem 0 0;
  padding-left: 1.25rem;
}

.inline-list code {
  font-size: .92em;
}

@media (max-width: 760px) {
  .two, .three, .result-item {
    grid-template-columns: 1fr;
  }

  .inline, .section-title, .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
