@font-face {
  font-family: "Xipo Sans";
  src: url("/xipo-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Xipo Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f2f6f3;
  background: #0a0e0d;
  font-synthesis: none;
  line-height: 1.5;
  --surface: #111715;
  --raised: #161e1a;
  --field: #0d1310;
  --border: #29362f;
  --border-bright: #36483d;
  --text: #f2f6f3;
  --muted: #a1afa7;
  --mint: #a8f4c5;
  --mint-bright: #c9ffdb;
  --ink: #092116;
  --amber: #f2d197;
  --danger: #fbafa9;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 0; margin: 0; background: radial-gradient(ellipse 46rem 36rem at 72% -12rem, #173127, transparent 75%); }
h1, h2, h3, p, ol, dl { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .66; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
::selection { background: var(--mint); color: var(--ink); }

.site-width { width: min(calc(100% - 4rem), 72rem); margin-inline: auto; }
.page-header { border-bottom: 1px solid #23342c; background: #0b110ee0; }
.navigation { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .6rem; color: var(--text); text-decoration: none; font-size: 1.65rem; font-weight: 750; letter-spacing: -.075em; line-height: 1; }
.brand-mark { display: block; width: 2.15rem; height: 2.15rem; object-fit: contain; border-radius: .62rem; filter: drop-shadow(0 .18rem .45rem #74efab32); }
.nav-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1.35rem; }
.environment-label { display: inline-flex; align-items: center; gap: .43rem; color: #b3c4b9; font-size: .82rem; font-weight: 570; white-space: nowrap; }
.environment-label > span { width: .44rem; height: .44rem; border-radius: 50%; background: #84e7ac; box-shadow: 0 0 0 3px #84e7191c; }
.nav-link { display: inline-flex; align-items: center; gap: .58rem; min-height: 2.4rem; padding: .4rem .78rem; border: 1px solid var(--border); border-radius: .62rem; background: linear-gradient(#18211b, #101713); color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 610; white-space: nowrap; }
.nav-link:hover { background: var(--raised); border-color: var(--border-bright); }
.search-mark { position: relative; display: inline-block; width: .68rem; height: .68rem; margin-right: .14rem; border: 1.4px solid var(--muted); border-radius: 50%; }
.search-mark::after { position: absolute; right: -.31rem; bottom: -.16rem; width: .35rem; height: 1.4px; border-radius: 2px; background: var(--muted); transform: rotate(46deg); content: ""; }

.main-content { padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(18rem, 32vw, 24.5rem);
  margin-top: 1.6rem;
  padding: clamp(2rem, 5.7vw, 4.45rem);
  border: 1px solid #335044;
  border-radius: 1.3rem;
  box-shadow: inset 0 1px #bcffe419, 0 1.25rem 3rem #01050444;
  background:
    radial-gradient(ellipse at 77% 73%, #143629 0, transparent 62%),
    linear-gradient(125deg, #14251d, #0c1712 53%, #152a20);
}
.intro-visual { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.intro-grid {
  position: absolute;
  inset: 5% -7% -53% 23%;
  background-image: linear-gradient(#a1edc01e 1px, transparent 1px), linear-gradient(90deg, #a1edc01e 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: radial-gradient(ellipse at 61% 39%, black 11%, transparent 69%);
  transform: perspective(33rem) rotateX(48deg) rotateZ(-12deg);
}
.intro-light {
  position: absolute;
  inset: -10% -8% -32% 27%;
  background: radial-gradient(ellipse at 71% 48%, #72ffd22b, transparent 53%);
}
.intro-art {
  position: absolute;
  top: 52%;
  right: .9%;
  width: min(62%, 46rem);
  height: auto;
  max-height: 122%;
  object-fit: contain;
  object-position: center right;
  mask-image: linear-gradient(90deg, transparent, black 24%);
  transform: translateY(-50%);
  filter: drop-shadow(0 .9rem 1.2rem #04150c80);
}
.intro-content { width: min(100%, 41rem); }
.intro h1 { color: #f2f7f3; font-size: clamp(2.5rem, 5.25vw, 4.5rem); font-weight: 670; letter-spacing: -.07em; line-height: 1.03; }
.intro h1 span { color: #abf4c7; }
.intro-copy { max-width: 29rem; margin-top: 1.15rem; color: #c1d0c6; font-size: clamp(1rem, 1.6vw, 1.115rem); line-height: 1.62; }

.mode-notice { display: flex; min-height: 2.8rem; align-items: center; gap: .68rem; margin-block: 1rem; padding: .52rem .85rem; border: 1px solid #53422b; border-radius: .63rem; background: #211b13; color: #e1c6a1; font-size: .89rem; }
.mode-notice strong { color: #f5d8a9; font-weight: 670; }
.notice-mark { display: inline-grid; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; place-items: center; border: 1px solid #b89567; border-radius: 50%; color: var(--amber); font-size: .72rem; font-weight: 730; line-height: 1; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.workspace:has(#create-form:not([hidden])), .workspace:has(#owner-form:not([hidden])) { align-items: stretch; }
.panel { min-width: 0; padding: clamp(1.15rem, 2.6vw, 1.9rem); border: 1px solid var(--border); border-radius: .95rem; background: var(--surface); box-shadow: inset 0 1px #c6ffe10a, 0 .6rem 1.8rem #01060433; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.25rem; }
.panel-title { display: flex; min-width: 0; align-items: center; gap: .62rem; }
.panel-icon { position: relative; display: grid; flex: 0 0 auto; width: 2.08rem; height: 2.08rem; place-items: center; border: 1px solid #456853; border-radius: .56rem; background: linear-gradient(145deg, #224233, #142820); color: #a4efc1; }
.panel-icon .search-mark { border-color: currentColor; }
.panel-icon .search-mark::after { background: currentColor; }
.access-mark::before { position: absolute; top: .43rem; width: .55rem; height: .59rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .4rem .4rem 0 0; content: ""; }
.access-mark::after { position: absolute; top: .88rem; width: .84rem; height: .62rem; border: 1.5px solid currentColor; border-radius: .15rem; background: #1b3529; content: ""; }
.activity-mark::before { width: .22rem; height: .7rem; border-radius: .11rem; background: currentColor; box-shadow: -.35rem .18rem 0 -.02rem, .35rem -.18rem 0 -.02rem; content: ""; }
.panel h2 { color: var(--text); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 665; letter-spacing: -.038em; line-height: 1.3; }
.panel h3 { font-size: 1.12rem; letter-spacing: -.025em; line-height: 1.35; }
.panel-description { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.transfer-panel { border-color: #3a5144; background: radial-gradient(ellipse at 3% 0, #213a2c66, transparent 60%), var(--surface); }
#active-request { scroll-margin-top: 1rem; }
form label { display: block; color: var(--text); font-size: .915rem; font-weight: 625; }
.label-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-top: 1rem; }

input[type="text"], input[type="password"], select {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border-bright);
  border-radius: .55rem;
  background: var(--field);
  color: var(--text);
  transition: border-color 140ms ease, background 140ms ease;
}
input[type="text"], input[type="password"] { margin-top: .4rem; }
input[type="text"]::placeholder { color: #899c90; }
input[type="text"]:focus, input[type="password"]:focus, select:focus { border-color: #76bc94; background: #111c15; }
input[type="text"]:disabled, input[type="password"]:disabled, select:disabled { opacity: .72; }
.select-field { position: relative; margin-top: .4rem; }
.select-field::after { position: absolute; top: 1.13rem; right: 1rem; width: .5rem; height: .5rem; border-bottom: 1.6px solid #a6c4b0; border-right: 1.6px solid #a6c4b0; transform: rotate(45deg); content: ""; pointer-events: none; }
select { appearance: none; padding-right: 2.25rem; cursor: pointer; }
.field-note { margin-top: .48rem; color: var(--muted); font-size: .875rem; }
.acknowledgment {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  align-items: start;
  gap: .62rem;
  margin-top: .95rem;
  padding: .65rem .72rem;
  border: 1px solid #53422b;
  border-radius: .55rem;
  background: #211b13;
  color: #e1c6a1;
  font-size: .875rem;
  font-weight: 570;
  cursor: pointer;
}
.acknowledgment input { width: 1.05rem; height: 1.05rem; margin: .16rem 0 0; accent-color: var(--amber); }
body[data-mode="mainnet"] .environment-label { color: var(--amber); }
body[data-mode="mainnet"] .environment-label > span { background: var(--amber); box-shadow: 0 0 0 3px #f2d19725; }
.owner-resume { margin-bottom: 1.35rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--border); }
.owner-resume .form-action { margin-top: .65rem; }
.owner-data { margin-block: .85rem; padding: .75rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--field); }

.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .65rem .95rem; border: 1px solid transparent; border-radius: .6rem; text-align: center; text-decoration: none; font-size: .92rem; font-weight: 690; transition: background-color 140ms ease, border-color 140ms ease; }
.button-primary { border-color: #bbffd2; background: linear-gradient(145deg, #b7fbd0, #8adfba); color: var(--ink); box-shadow: inset 0 1px #edfff473, 0 .3rem .8rem #71ecad18; }
.button-primary:not(:disabled):hover { background: var(--mint-bright); }
.button-primary:not(:disabled):active { background: #8bdbac; }
.button-secondary { border-color: #41614e; background: #1b3225; color: #d3f7df; }
.button-secondary:not(:disabled):hover { border-color: #628d73; background: #243f2f; }
.button-quiet { min-height: 2.25rem; padding: .35rem .68rem; border-color: var(--border-bright); background: var(--raised); color: #c8e5d2; font-size: .84rem; }
.button-quiet:not(:disabled):hover { border-color: #5a8067; background: #202e25; }
.form-action { width: 100%; margin-top: 1rem; }
.text-button { appearance: none; padding: 0; border: 0; background: transparent; color: #a9eac1; text-decoration: none; font-size: .875rem; font-weight: 650; }
.text-button:hover { color: var(--mint-bright); text-decoration: underline; text-underline-offset: .2em; }

.activity-head { margin-bottom: .38rem; }
.activity-panel { background: radial-gradient(ellipse at 0 0, #21372d70, transparent 65%), var(--surface); }
.activity-timeline { margin-top: 1.38rem; padding: 0; list-style: none; }
.activity-timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .65rem;
  padding-bottom: 1rem;
}
.activity-timeline > li:last-child { padding-bottom: 0; }
.activity-timeline > li:not(:last-child)::after { position: absolute; top: 1.18rem; bottom: -.2rem; left: .765rem; width: 1px; background: #33453a; content: ""; }
.activity-timeline > li[data-state="complete"]::after { background: #5c9a74; }
.timeline-dot { position: relative; z-index: 1; display: grid; width: 1.1rem; height: 1.1rem; place-items: center; justify-self: center; margin-top: .13rem; border: 1px solid #52675a; border-radius: 50%; background: #141e17; }
.timeline-dot::before { width: .27rem; height: .27rem; border-radius: inherit; background: #80978a; content: ""; }
[data-state="current"] .timeline-dot { border-color: #85e4a9; background: #1f4230; box-shadow: 0 0 0 3px #8de2ac1a; }
[data-state="current"] .timeline-dot::before { width: .45rem; height: .45rem; background: var(--mint); }
.activity-panel:has(#activity-status[data-state="current"]) li[data-state="current"] .timeline-dot::after { position: absolute; inset: -1px; border: 1px solid var(--mint); border-radius: 50%; opacity: 0; content: ""; }
[data-state="complete"] .timeline-dot { border-color: #8fe1ad; background: #8fe1ad; }
[data-state="complete"] .timeline-dot::before { width: .33rem; height: .55rem; margin-top: -.12rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); border-radius: 0; background: none; transform: rotate(43deg); }
[data-state="failed"] .timeline-dot { border-color: #e09287; background: #4e2923; }
[data-state="failed"] .timeline-dot::before { background: var(--danger); }
.timeline-body { min-width: 0; }
.activity-timeline .timeline-title { color: #c7d4cb; font-size: .96rem; font-weight: 630; letter-spacing: -.018em; }
[data-state="current"] .timeline-title { color: var(--text); }
[data-state="complete"] .timeline-title { color: #cef9db; }
[data-state="failed"] .timeline-title { color: var(--danger); }
.timeline-detail { margin-top: .17rem; color: var(--muted); font-size: .88rem; line-height: 1.42; overflow-wrap: anywhere; }
.activity-events { margin-top: 1rem; padding: .75rem 0 0; border-top: 1px solid var(--border); color: var(--muted); list-style: none; font-size: .82rem; }
.activity-events li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding-block: .22rem; }
.activity-events time { color: #c4d7ca; font-variant-numeric: tabular-nums; white-space: nowrap; }
#activity-toggle { margin-top: .45rem; }

.lookup-panel { margin-top: 1rem; scroll-margin-top: 1rem; background: linear-gradient(120deg, #17221b, var(--surface) 70%); }
.lookup-panel .panel-head { margin-bottom: .4rem; }
.lookup-panel form { margin-top: 1.05rem; }
.lookup-types { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .65rem; padding: 0; border: 0; }
.lookup-types label { position: relative; flex: 0 0 auto; }
.lookup-types input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.lookup-types span { display: inline-block; padding: .38rem .67rem; border: 1px solid transparent; border-radius: .45rem; color: var(--muted); font-size: .87rem; font-weight: 615; cursor: pointer; }
.lookup-types span:hover { color: var(--text); background: var(--raised); }
.lookup-types input:checked + span { border-color: #3a5c48; background: #1c3226; color: #d1f5dc; }
.lookup-types input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.lookup-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: stretch; }
.lookup-fields input[type="text"], .lookup-fields .form-action { margin-top: 0; }
.lookup-fields .button { min-width: 8rem; }
#lookup-result { margin-top: 1.35rem; }
.message { margin-top: .8rem; padding: .65rem .75rem; border-radius: .55rem; font-size: .9rem; }
.message.error { border: 1px solid #71443a; background: #331d1a; color: var(--danger); }

.status { display: inline-flex; max-width: 100%; min-height: 1.65rem; align-items: center; gap: .38rem; padding: .2rem .55rem; border: 1px solid #3e5c49; border-radius: 2rem; background: #1a2b21; color: #b9ebca; font-size: .82rem; font-weight: 660; line-height: 1.35; }
.status::before { width: .33rem; height: .33rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.status.awaiting_confirmation, .status.processing, .status[data-state="current"] { border-color: #695938; background: #30271a; color: var(--amber); }
.status.completed, .status[data-state="complete"], .status[data-state="completed"] { border-color: #426e53; background: #20392a; color: #c3f8d3; }
.status.failed, .status[data-state="failed"] { border-color: #77473e; background: #462722; color: var(--danger); }
.report { min-width: 0; margin-top: 1.05rem; padding-top: .95rem; border-top: 1px solid var(--border); }
.report:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.report-heading, .report-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.report-actions { justify-content: start; margin-top: .85rem; }
.report dl { margin-top: .68rem; }
.report dl > div, .payment-summary > div, .payment-summary dl > div { display: grid; grid-template-columns: minmax(6.2rem, .8fr) minmax(0, 1.2fr); gap: .3rem .7rem; padding-block: .43rem; border-bottom: 1px solid #26332b; }
.report dt, .payment-summary dt { color: var(--muted); font-size: .89rem; }
.report dd, .payment-summary dd { min-width: 0; margin: 0; color: var(--text); font-size: .9rem; overflow-wrap: anywhere; }
.report dd bdi, .deposit-address code, .contract-detail dd bdi { font-family: var(--mono); font-size: .88em; }
.report dd .text-button { display: block; width: fit-content; padding-block: .1rem; font-size: .82rem; }
.report-meta, .phase-meta { margin-top: .4rem; color: var(--muted); font-size: .84rem; }
.active-receipt { border-top: 1px solid var(--border); }
.active-receipt > summary { padding-block: .7rem .25rem; color: #c8e5d2; font-size: .9rem; font-weight: 620; cursor: pointer; }
.active-receipt > summary:hover { color: var(--mint-bright); }
.active-receipt > summary::marker { color: #a0d7b4; }
.active-receipt > .report { margin-top: 0; padding-top: .9rem; border-top: 0; }

.workflow-step { min-width: 0; margin-bottom: 1.15rem; }
.workflow-step > p { margin-top: .45rem; color: var(--muted); line-height: 1.55; }
.workflow-step h3, .workflow-step strong { color: var(--text); }
.workflow-step bdi, .contract-detail dd, .deposit-address code, .phase-copy { overflow-wrap: anywhere; }
.workflow-step form { margin-top: .9rem; }
.workflow-step [type="submit"] { margin-top: .75rem; }
.section-label { margin-bottom: .4rem; color: #a4d7b6; font-size: .8rem; letter-spacing: .04em; }
.phase-banner, .deposit-address, .payment-summary { min-width: 0; margin-block: .85rem; padding: .8rem; border: 1px solid var(--border-bright); border-radius: .6rem; background: #0e1913; }
.phase-copy { color: var(--muted); }
.deposit-address-head, .status-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .7rem; }
.deposit-address code { display: block; margin-top: .34rem; color: #cbf8db; }
.deposit-address a, .deposit-address .text-button { color: #b1f1c9; }
.payment-summary > div:first-child, .payment-summary dl > div:first-child { padding-top: 0; }
.payment-summary > div:last-child, .payment-summary dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.payment-summary dd .text-button { margin-inline-start: .45rem; }
.contract-detail { margin-top: .7rem; color: var(--muted); font-size: .875rem; }
.contract-detail dd { margin: 0; }
.contract-detail dd bdi { display: block; color: var(--text); }
.workflow-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.empty { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 60rem) {
  .site-width { width: calc(100% - 2.75rem); }
  .intro-art { right: -6%; }
  .report dl > div, .payment-summary > div, .payment-summary dl > div { grid-template-columns: minmax(0, 1fr); gap: .12rem; }
}

@media (max-width: 42rem) {
  .site-width { width: calc(100% - 1.75rem); }
  .navigation { min-height: 3.7rem; }
  .nav-actions { gap: .45rem .65rem; }
  .nav-link { gap: .43rem; padding-inline: .5rem; }
  .environment-label { gap: .34rem; font-size: .76rem; }
  .intro { min-height: 14.7rem; margin-top: .83rem; padding: 1.25rem; border-radius: .85rem; }
  .intro-grid { inset: 12% -40% -42% 7%; }
  .intro-art { top: 60%; right: -19%; width: 91%; opacity: .42; mask-image: linear-gradient(90deg, transparent 15%, black 82%); }
  .intro h1 { font-size: clamp(1.72rem, 7.98vw, 3.65rem); }
  .intro-copy { max-width: 23rem; margin-top: .85rem; font-size: .94rem; }
  .mode-notice { margin-block: .79rem; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .activity-timeline { margin-top: 1.12rem; }
  .panel-head { margin-bottom: 1.02rem; }
  .activity-head, .lookup-panel .panel-head { margin-bottom: .37rem; }
  .lookup-types { gap: .2rem; }
  .lookup-types span { padding-inline: .4rem; }
}

@media (max-width: 23rem) {
  .navigation { gap: .45rem; }
  .nav-actions { gap: .55rem; }
  .nav-link { font-size: .81rem; }
  .nav-link .search-mark { display: none; }
  .brand { gap: .43rem; font-size: 1.37rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; }
  .intro { min-height: 13.45rem; padding: 1.12rem; }
  .mode-notice { font-size: .84rem; }
  .lookup-fields { grid-template-columns: minmax(0, 1fr); }
  .lookup-types span { padding-inline: .42rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-art { animation: hero-arrive 580ms ease-out; }
  .activity-panel:has(#activity-status[data-state="current"]) li[data-state="current"] .timeline-dot::after { animation: current-stage 1.6s ease-out 2; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .intro-art, .intro-light { transition: transform 660ms cubic-bezier(.2, .6, .3, 1); }
  .intro:hover .intro-art { transform: translate(-.62rem, -52%) scale(1.035); }
  .intro:hover .intro-light { transform: translate(.48rem, .35rem); }
}

@keyframes hero-arrive {
  from { opacity: 0; }
}

@keyframes current-stage {
  0% { opacity: .62; transform: scale(.9); }
  100% { opacity: 0; transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
