:root {color-scheme:light; font:16px/1.55 "Inter",system-ui,sans-serif; color:#172d2a; background:#f4f6f0}
* {box-sizing:border-box}
body {margin:0; min-height:100vh; display:flex; flex-direction:column; background:radial-gradient(ellipse at 85% 22%,#e5efe160,transparent 45%),#f4f6f0}
header {background:#fcfdf8; border-bottom:1px solid #d7dfd4}
.bar {max-width:69rem; height:4.75rem; padding:0 2rem; margin:auto; display:flex; align-items:center; justify-content:space-between}
.brand {display:inline-flex; gap:.7rem; align-items:center; text-decoration:none; color:#17352f; font-weight:720; font-size:1.23rem; letter-spacing:-.065em}
.brand-mark {height:1.95rem; width:1.95rem; border-radius:.62rem; background:#185444; display:grid; place-items:center; transform:rotate(-5deg)}
.brand-mark::before {content:""; width:.78rem; height:1rem; border:2px solid #ecf7ce; border-radius:2px; box-shadow:3px 3px #185444,4px 4px #ecf7ce; transform:rotate(20deg)}
details {position:relative; font-size:.86rem}
summary {cursor:pointer; color:#36534b}
.help {position:absolute; top:2rem; right:0; z-index:1; width:min(18rem,80vw); padding:1rem; background:white; border:1px solid #c8d6c7; border-radius:.6rem; box-shadow:0 6px 24px #233a2917}
main {width:100%; max-width:44rem; margin:clamp(2.5rem,8vh,6rem) auto; padding:0 1.4rem}
footer {margin-top:auto; padding:1rem; text-align:center; font-size:.8rem; color:#4e6559}
.intro {margin-bottom:1.7rem}
h1 {margin:0; font:500 clamp(2.45rem,5.2vw,3.7rem)/1.12 Georgia,"Times New Roman",serif; letter-spacing:-.052em}
.intro p {margin:.65rem 0 0; color:#4c6159; font-size:1.04rem}
.card {background:#fff; border:1px solid #d1dcd0; border-radius:1.15rem; padding:clamp(1.15rem,4vw,2rem); box-shadow:0 5px 18px #283e2910}
.label-row,.actions,.buttons,.hint,.privacy {display:flex; align-items:center; gap:.65rem}
.label-row,.actions {justify-content:space-between; flex-wrap:wrap}
label {font-weight:650; font-size:.96rem}
#count {font-size:.79rem; color:#57665e}
textarea,input,select {margin-top:.65rem; display:block; width:100%; border:1px solid #aebfb1; background:#fbfcf9; color:inherit; border-radius:.55rem; padding:.85rem 1rem; font:inherit; line-height:1.5}
textarea {resize:vertical; min-height:8rem}
textarea::placeholder {color:#68796f}
[aria-invalid=true] {border-color:#a54233}
.meta {display:flex; justify-content:flex-end; align-items:center; gap:1rem; margin-top:.45rem; min-height:1.4rem}
#count {font-variant-numeric:tabular-nums}
.actions {border-top:1px solid #e2e8df; padding-top:1.15rem; margin-top:1.2rem}
.hint,.privacy {color:#4e6559; font-size:.86rem}
.privacy {margin:1rem .25rem}
.clock {width:1rem;height:1rem;border:1.5px solid currentColor;border-radius:50%;position:relative;flex:none}
.clock::before {content:"";position:absolute;left:44%;top:15%;width:22%;height:33%;border-left:1.5px solid;border-bottom:1.5px solid}
.lock {width:.82rem;height:.65rem;border:1.4px solid;border-radius:2px;position:relative;top:2px;margin:0 .12rem}
.lock::before {content:"";position:absolute;width:55%;height:.4rem;bottom:100%;left:12%;border:1.4px solid;border-bottom:0;border-radius:.4rem .4rem 0 0}
button {cursor:pointer;line-height:1.25;font-family:inherit;font-weight:650;font-size:.93rem}
.primary,.secondary {border-radius:.55rem; padding:.78rem 1.15rem; min-height:2.8rem; border:1px solid transparent}
.primary {color:white;background:#195443}
.primary:hover {background:#123c31}
.primary:disabled {background:#526e60;cursor:wait}
.secondary {background:white;border-color:#becbc0;color:#234c3d}
.text-link {border:none;background:none;color:#15523d;text-decoration:underline;margin-right:auto}
.buttons {margin-top:1rem;flex-wrap:wrap}
:focus-visible {outline:3px solid #669851; outline-offset:3px}
#instruction {margin:0 0 1rem}
#notice {margin:1rem 0 0;font-size:.92rem}
#notice:empty {margin:0}
#notice[data-error] {color:#913521}
[hidden] {display:none!important}
@media(max-width:30rem) {.bar{height:4rem;padding:0 1.2rem} main{padding:0 1rem}.actions{align-items:stretch;flex-direction:column;gap:1rem}.actions button{width:100%}}

.back-link {font-weight:600;color:#195443}

select {margin-bottom:1.1rem}
.label-row .text-link {margin:0}
#mode, #visibility, #reset {min-height:2.75rem}
#paste-hint {margin:.45rem 0}
#message.json, #content.json {font-family:ui-monospace, monospace}
textarea {overflow-wrap:anywhere}
.meta {flex-wrap:wrap}

.transfer-action, .result-label, .result-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.transfer-action, .result-label { gap: .6em }
.transfer-action { position: relative; overflow: hidden }
.transfer-action[aria-busy="true"] { background: #245744 }
.transfer-action[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #b5dba7;
}
.result-mark {
  --keyhole: #eaf3e6;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #195443;
  background: #eaf3e6;
}
.transfer-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
}
.transfer-icon::before, .transfer-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border: 1.7px solid currentColor;
}
.chain-icon { transform: rotate(-42deg) }
.chain-icon::before, .chain-icon::after {
  width: .78em;
  height: .50em;
  top: .375em;
  border-radius: .3em;
}
.chain-icon::before { left: 0 }
.chain-icon::after { right: 0 }
.padlock-icon::before {
  width: .65em;
  height: .65em;
  top: .05em;
  left: .30em;
  border-bottom: 0;
  border-radius: .38em .38em 0 0;
  transform-origin: 85% 100%;
}
.padlock-icon::after {
  inset: .53em .15em .03em;
  border-radius: .18em;
  background: radial-gradient(circle, var(--keyhole, #195443) 1px, currentColor 1.5px);
}
.result-mark .padlock-icon::before { transform: rotateY(155deg) }

@media (prefers-reduced-motion: no-preference) {
  .transfer-action[aria-busy="true"]::after {
    width: 40%;
    animation: transfer-sweep 1.3s ease-in-out infinite;
  }
  .transfer-action[aria-busy="true"] .chain-icon::before,
  .result-mark .chain-icon::before { animation: join-left .38s ease-out }
  .transfer-action[aria-busy="true"] .chain-icon::after,
  .result-mark .chain-icon::after { animation: join-right .38s ease-out }
  .result-mark .padlock-icon::before { animation: open-shackle .42s ease-out }
  #result:not([hidden]) { animation: result-arrive .22s ease-out }
}
@keyframes transfer-sweep {
  from { transform: translateX(-105%) }
  to { transform: translateX(255%) }
}
@keyframes join-left { from { transform: translateX(-45%) } }
@keyframes join-right { from { transform: translateX(45%) } }
@keyframes open-shackle { from { transform: rotateY(0) } }
@keyframes result-arrive {
  from { opacity: .75; transform: translateY(3px) }
  to { opacity: 1; transform: translateY(0) }
}

.guide-link {color:#245744; font-weight:600; text-underline-offset:.25em}
.guide {margin-top:3rem; border-top:1px solid #cad7ca; scroll-margin-top:1.25rem}
.guide h2 {margin:2rem 0 .5rem; font:500 clamp(1.7rem,4vw,2.2rem)/1.2 Georgia,serif; letter-spacing:-.035em}
.guide p {margin:.35rem 0 0; color:#475f54}
.guide-steps {padding-left:1.9rem; margin:1.25rem 0 2rem}
.guide-steps li {padding:.5rem 0 .65rem .45rem}
.guide-steps li::marker {color:#245744; font-weight:700}
.guide h3 {font-size:1.05rem; margin:0}
.guide details {border-bottom:1px solid #cad7ca; font-size:1rem}
.guide summary {padding:.8rem 0; font-weight:600}
.guide details p {margin:0 0 1rem}
@media (prefers-reduced-motion: no-preference) {
  .guide:target .guide-steps li {animation:guide-enter .36s ease-out backwards}
  .guide:target .guide-steps li:nth-child(2) {animation-delay:60ms}
  .guide:target .guide-steps li:nth-child(3) {animation-delay:120ms}
  .guide details[open] p, header details[open] .help {animation:guide-enter .18s ease-out}
}
@keyframes guide-enter {
  from {opacity:.6; transform:translateY(5px)}
  to {opacity:1; transform:translateY(0)}
}

@media (prefers-reduced-motion: no-preference) {
  .brand-intro .brand-mark {animation:brand-settle .55s ease-out}
  .brand-intro .brand-name {animation:brand-lettering .45s .08s ease-out backwards}
}
@keyframes brand-settle {
  from {opacity:.45; transform:translateY(4px) rotate(-18deg) scale(.85)}
  70% {transform:rotate(-2deg) scale(1.03)}
  to {opacity:1; transform:rotate(-5deg)}
}
@keyframes brand-lettering {
  from {opacity:.2; transform:translateX(-5px)}
  to {opacity:1; transform:translateX(0)}
}
