.hash-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hash-section {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.hash-section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin-bottom: 1rem;
}

/* Hash input */
.hash-input {
  width: 100%;
  min-height: 90px;
  padding: .65rem .75rem;
  font-family: ui-monospace, monospace;
  font-size: .875rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--input-bg, #f9fafb);
  color: var(--text, #111);
  resize: vertical;
  box-sizing: border-box;
}
.hash-input:focus { outline: 2px solid #2563eb; border-color: transparent; }

/* Hash results table */
.hash-results {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.hash-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: .5rem;
  background: var(--input-bg, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  padding: .5rem .75rem;
}

.hash-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted, #6b7280);
  white-space: nowrap;
}

.hash-value {
  font-family: ui-monospace, monospace;
  font-size: .8rem;
  color: var(--text, #111);
  word-break: break-all;
  overflow: hidden;
}

.btn-copy-hash {
  font-size: .75rem;
  padding: .25rem .6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Token section */
.token-controls {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.token-select {
  padding: .45rem .65rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--input-bg, #f9fafb);
  font-size: .875rem;
  color: var(--text, #111);
}

.token-count {
  width: 70px;
  padding: .45rem .65rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--input-bg, #f9fafb);
  font-size: .875rem;
  color: var(--text, #111);
}

.token-output {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.token-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--input-bg, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  padding: .45rem .75rem;
}

.token-item code {
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  color: var(--text, #111);
  word-break: break-all;
  flex: 1;
}

.btn-copy-token {
  font-size: .75rem;
  padding: .25rem .6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.token-copy-all {
  display: flex;
  justify-content: flex-end;
  margin-top: .25rem;
}

@media (max-width: 600px) {
  .hash-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .btn-copy-hash { grid-column: 2; }
}
