 :root {
  --paper: #FBFBF8;
  --ink: #16181D;
  --wax: #B3382C;
  --brass: #9C7C4C;
  --line: rgba(22, 24, 29, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #fff 0, var(--paper) 52%, #f1ece2 100%); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; }
.paper { width: min(760px, 100%); margin: 0 auto; padding: 28px 18px 42px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .16em; color: var(--brass); margin-bottom: 30px; }
.signet { width: 42px; height: 42px; border: 2px solid var(--brass); border-radius: 50%; display: inline-grid; place-items: center; letter-spacing: 0; font-size: 24px; }
.card { border: 1px solid var(--line); background: rgba(255,255,255,.48); box-shadow: 0 24px 90px rgba(70, 48, 30, .10); padding: clamp(22px, 6vw, 54px); }
.eyebrow { color: var(--wax); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 8vw, 4.5rem); line-height: .96; margin: .2em 0 .5em; }
p { line-height: 1.55; }
.field { display: grid; gap: 8px; margin: 26px 0; font-weight: 700; }
input { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 14px 16px; color: var(--ink); font: 1rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.payload { overflow: auto; max-height: 42vh; padding: 16px; border: 1px solid var(--line); background: #fffef9; font: .92rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.hash { display: grid; gap: 5px; color: var(--brass); }
.hash code { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.actions { display: grid; justify-items: center; gap: 18px; margin-top: 28px; }
.seal-button { border: 0; background: var(--wax); color: #fffdf7; padding: 16px 24px; min-height: 56px; border-radius: 999px; font: 700 1rem Georgia, serif; box-shadow: inset 0 -5px 0 rgba(0,0,0,.15), 0 16px 35px rgba(179,56,44,.25); cursor: pointer; }
.seal-round { width: 178px; height: 178px; border-radius: 50%; padding: 22px; font-size: 1.05rem; }
.text-button { border: 0; background: transparent; color: var(--brass); text-decoration: underline; font: 1rem Georgia, serif; cursor: pointer; }
.status { font-weight: 700; color: var(--wax); }
.terminal { display: grid; gap: 10px; margin-top: 24px; padding: 18px; border: 1px solid rgba(179,56,44,.35); background: rgba(179,56,44,.07); color: var(--ink); }
.terminal[hidden] { display: none; }
.terminal-title { display: block; color: var(--wax); font-size: clamp(1.35rem, 5vw, 2.4rem); line-height: 1.05; }
.terminal-detail { display: block; line-height: 1.5; }
button:disabled, input:disabled { opacity: .62; cursor: wait; }
.actions.is-busy { opacity: .72; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
@media (max-width: 430px) {
  .paper { padding: 18px 12px 32px; }
  .brand { margin-bottom: 20px; }
  .card { padding: 22px 16px; }
  .seal-round { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
