/* Proxen app: chat on the left, the stage (route review / sealed browser) on the right. Same tokens and type as the site. */
body.app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.app > .grain { position: fixed; z-index: 0; }
.app > .cols { position: fixed; }
.a-nav { position: relative; z-index: 10; flex: none; height: 76px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(6, 6, 6, .85); backdrop-filter: blur(10px); }
.a-nav .brand-word { margin-top: -4px; }
.a-chain { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); }
.a-chain span { color: var(--white); font-variant-numeric: tabular-nums; }
.a-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: blink 2s ease-in-out infinite; }
.a-links { display: flex; align-items: center; gap: 28px; }
.a-links > a { color: rgba(255, 255, 255, .7); transition: color .3s; }
.a-links > a:hover { color: var(--white); }
.a-wallet { width: auto; min-width: 190px; margin: 0; }
.a-wallet .btn-t { margin-right: 18px; }

.a-main { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.a-chat { position: relative; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .08); }
.a-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 48px 40px 24px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.a-hello h1 { margin-top: 22px; font-size: 64px; font-weight: 400; line-height: 64px; letter-spacing: -2px; }
.a-hello-t { margin-top: 22px; max-width: 520px; font-size: 16px; font-weight: 300; line-height: 27.2px; letter-spacing: .32px; color: rgba(255, 255, 255, .85); }
.a-hello .label { margin-left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); font: 300 14px/18px var(--sans); color: var(--white); transition: background .25s, border-color .25s; text-align: left; }
.chip:hover { background: var(--white); color: #060606; border-color: var(--white); }

/* messages */
.m { margin-top: 30px; animation: mIn .5s var(--ease); }
@keyframes mIn { from { opacity: 0; transform: translateY(14px); } }
.m-l { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .55); }
.m-l svg { width: 14px; height: 16px; }
.m-t { margin-top: 10px; font-size: 18px; font-weight: 400; line-height: 27px; letter-spacing: .1px; white-space: pre-wrap; }
.m-user .m-t { color: rgba(255, 255, 255, .7); }
.m-bot .m-t { color: var(--white); }
.m-bot .chips { margin-top: 16px; }
.m-err .m-t { color: #ffb4b4; }
.typing { display: inline-flex; gap: 5px; margin-top: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }

/* route cards */
.rcs { margin-top: 18px; display: grid; gap: 8px; }
.rc { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 4px 14px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .02); text-align: left; transition: border-color .25s, background .25s; }
.rc:hover { border-color: rgba(255, 255, 255, .4); }
.rc.on { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.rc-n { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .5); }
.rc-name { font-size: 17px; font-weight: 500; }
.rc-out { text-align: right; font-size: 20px; font-weight: 400; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.rc-out small { font-size: 13px; color: rgba(255, 255, 255, .6); margin-left: 4px; }
.rc-via { font-family: var(--mono); font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-usd { text-align: right; font-family: var(--mono); font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .55); }
.rc-tags { grid-column: 2 / -1; display: flex; gap: 6px; margin-top: 6px; }
.rc-tags i { font-style: normal; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .26px; padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .25); }
.rc-tags i.w { background: var(--white); color: #060606; border-color: var(--white); }

/* composer */
.a-compose { flex: none; padding: 14px 40px 22px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(6, 6, 6, .9); }
.a-read { min-height: 17px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.a-read.live { color: var(--white); }
.a-box { margin-top: 10px; display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); transition: border-color .25s; }
.a-box:focus-within { border-color: rgba(255, 255, 255, .6); }
.a-box textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; resize: none; padding: 9px 0; background: none; border: 0; outline: 0; color: var(--white); font: 300 17px/22px var(--sans); }
.a-box textarea::placeholder { color: rgba(255, 255, 255, .4); }
.a-priv { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); font: 300 13px var(--mono); text-transform: uppercase; letter-spacing: .26px; color: rgba(255, 255, 255, .7); transition: background .25s, color .25s, border-color .25s; }
.a-priv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.a-priv svg circle { fill: currentColor; stroke: none; }
.a-priv[aria-pressed="true"] { background: var(--white); color: #060606; border-color: var(--white); }
.a-send { flex: none; width: 112px; margin: 0; }
.a-fine { margin-top: 10px; color: rgba(255, 255, 255, .4); font-size: 11px; }

/* stage */
.a-stage { position: relative; min-height: 0; overflow-y: auto; padding: 48px 40px 40px; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.a-stage-x { display: none; }
.st-empty-art { width: 182px; margin: 10px 0 40px; }
.st-caps { margin-top: 22px; display: grid; gap: 1px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .08); }
.st-caps button { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 18px; padding: 18px 20px; background: var(--bg); text-align: left; transition: background .25s; }
.st-caps button:hover { background: #111; }
.st-caps img { width: 60px; height: 60px; object-fit: contain; }
.st-caps b { display: block; font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: .3px; }
.st-caps em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 300; line-height: 21px; color: rgba(255, 255, 255, .75); }
.st-body { animation: mIn .5s var(--ease); }
.st-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.st-h .label { margin: 0; }
.st-h .mono { color: rgba(255, 255, 255, .55); }

/* route review */
.rv-legs { margin-top: 26px; display: grid; gap: 1px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .1); }
.rv-leg { padding: 18px 22px; background: var(--bg); }
.rv-leg p { color: rgba(255, 255, 255, .55); }
.rv-amt { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; font-size: 44px; font-weight: 300; line-height: 50px; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.rv-amt small { font-size: 18px; letter-spacing: 0; color: rgba(255, 255, 255, .75); }
.rv-amt img { width: 26px; height: 26px; filter: brightness(0) invert(1); align-self: center; }
.rv-rows { margin-top: 18px; }
.rv-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14px; line-height: 20px; }
.rv-row > span:first-child { font-family: var(--mono); font-weight: 300; color: rgba(255, 255, 255, .55); }
.rv-row > span:last-child { text-align: right; }
.rv-slip { display: flex; gap: 4px; }
.rv-slip button { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .2); font: 300 12px var(--mono); color: rgba(255, 255, 255, .75); }
.rv-slip button.on { background: var(--white); color: #060606; border-color: var(--white); }
.rv-note { margin-top: 14px; font-size: 13px; font-weight: 300; line-height: 20px; color: rgba(255, 255, 255, .65); }
.hold { position: relative; margin-top: 24px; width: 100%; height: 52px; overflow: hidden; background: var(--white); color: #060606; font: 400 15px var(--sans); letter-spacing: .3px; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #060606; opacity: .14; }
.hold.holding i { width: 100%; transition: width .9s linear; }
.hold:disabled { opacity: .5; }
.hold span { position: relative; }
.steps-l { margin-top: 22px; display: grid; gap: 1px; }
.sl { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14px; }
.sl-ic { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.sl.run .sl-ic { border-color: var(--white); border-top-color: transparent; animation: spin .8s linear infinite; }
.sl.done .sl-ic { background: var(--white); border-color: var(--white); box-shadow: inset 0 0 0 4px #060606; }
.sl.warn .sl-ic { background: #8a8a8a; border-color: #8a8a8a; }
.sl.fail .sl-ic { background: transparent; border-color: #ffb4b4; }
.sl-d { font-family: var(--mono); font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .55); text-align: right; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-box { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--white); }
.done-box a { text-decoration: underline; text-underline-offset: 3px; }

/* sealed browser */
.sb { margin-top: 22px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0b0b; }
.sb-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sb-url { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .26px; padding: 3px 8px; background: var(--white); color: #060606; }
.sb-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #060606; }
.sb-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: grayscale(.15); }
.sb-scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); animation: scan 2.4s linear infinite; pointer-events: none; }
.sb.idle .sb-scan { display: none; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.sb-wait { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .5); }
.sb-cap { padding: 8px 14px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .08); }
.rep { margin-top: 24px; display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.rep-ring { position: relative; width: 150px; height: 150px; }
.rep-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rep-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 52px; font-weight: 300; letter-spacing: -2px; }
.rep-v { display: inline-block; padding: 6px 12px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .26px; background: var(--white); color: #060606; }
.rep-v.mid { background: #9a9a9a; } .rep-v.bad { background: transparent; color: var(--white); border: 1px solid var(--white); }
.rep-t { margin-top: 12px; font-size: 15px; font-weight: 300; line-height: 23px; color: rgba(255, 255, 255, .8); }
.fd { margin-top: 18px; display: grid; gap: 1px; }
.fd-i { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.fd-i i { width: 9px; height: 9px; margin-top: 6px; }
.fd-i.bad i { background: var(--white); transform: rotate(45deg); }
.fd-i.warn i { border: 1px solid var(--white); transform: rotate(45deg); }
.fd-i.ok i { border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); }
.fd-i b { display: block; font-size: 15px; font-weight: 500; }
.fd-i span { display: block; margin-top: 3px; font-size: 13px; font-weight: 300; line-height: 19px; color: rgba(255, 255, 255, .65); }

@media (max-width: 1000px) {
  .a-nav { padding: 0 20px; height: 64px; }
  .a-chain { display: none; }
  .a-links { gap: 16px; }
  .a-links > a { display: none; }
  .a-wallet { min-width: 0; }
  .a-wallet .btn-t { margin: 0 14px 0 12px; }
  .a-main { grid-template-columns: 1fr; }
  .a-chat { border-right: 0; }
  .a-thread { padding: 30px 20px 16px; }
  .a-hello h1 { font-size: 46px; line-height: 48px; }
  .a-compose { padding: 12px 16px 16px; }
  .a-priv span { display: none; }
  .a-send { width: 96px; }
  .a-stage { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: 64px; background: var(--bg); padding: 56px 20px 30px; transform: translateY(100%); transition: transform .5s var(--ease); border-top: 1px solid rgba(255, 255, 255, .15); }
  .a-stage.open { transform: none; }
  .a-stage-x { display: grid; place-items: center; position: absolute; right: 14px; top: 10px; width: 38px; height: 38px; font-size: 26px; font-weight: 300; }
  .rv-amt { font-size: 34px; line-height: 40px; }
  .rep { grid-template-columns: 110px 1fr; }
  .rep-ring { width: 110px; height: 110px; } .rep-ring b { font-size: 40px; }
}
