.appbody { background: var(--soft); min-height: 100vh; }
.abar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 var(--gut); background: rgba(255,255,255, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.atabs { display: flex; gap: 2px; margin-left: 20px; }
.atabs button { font: 500 15px var(--font); color: var(--ink-3); background: none; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.atabs button:hover { color: var(--ink); background: rgba(16,10,46, .05); }
.atabs button.on { color: var(--ink); background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0, .04); }
.net { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.net i { width: 7px; height: 7px; border-radius: 50%; background: #c5c2d6; }
.net.live i { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129, .18); }
.net.bad i { background: #e5484d; }
#walletBtn.on { background: #ffffff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; }
.banner { max-width: 1100px; margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; background: #f1eeff; color: #200b8f; font-size: 14px; border: 1px solid #dad5fb; }
.banner.bad { background: #fff1f1; color: #a01e24; border-color: #f6d3d4; }
.amain { max-width: 1100px; margin: 0 auto; padding: 28px var(--gut) 80px; }
.gate { display: grid; place-items: center; min-height: 60vh; }
.gate-card { text-align: center; max-width: 440px; background: #ffffff; border: 1px solid var(--line); border-radius: 22px; padding: 44px 36px; box-shadow: 0 30px 70px -40px rgba(11,3,56, .35); }
.gate-card h1 { font-size: 26px; letter-spacing: -.02em; margin: 18px 0 10px; }
.gate-card p { color: var(--ink-3); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 20px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-ai { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.grid-wire { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: start; }
.big { font-size: 38px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.big em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #efeef6; font-size: 14px; color: var(--ink-3); }
.kv b { color: var(--ink); font-weight: 500; }
.copy { background: var(--soft); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy.done { color: #0b547a; border-color: #bfe8d6; }
.fine { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin-top: 12px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #ffffff; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.icon-btn:hover { background: var(--soft); }
.icon-btn.spin { animation: spin .8s linear infinite; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 11px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { font: 500 14px var(--font); padding: 8px; border-radius: 8px; border: 0; background: none; color: var(--ink-3); cursor: pointer; }
.seg button.on { background: #ffffff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0, .08); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .composer textarea, select { width: 100%; font: 15px var(--font); color: var(--ink); background: #ffffff; border: 1px solid #dbd9e9; border-radius: 10px; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .composer textarea:focus { border-color: #250bb8; box-shadow: 0 0 0 3px rgba(37,11,184, .12); }
.field textarea { resize: vertical; font-family: var(--mono); font-size: 13px; }
.inrow { display: flex; align-items: center; gap: 8px; border: 1px solid #dbd9e9; border-radius: 10px; padding: 0 12px; background: #ffffff; }
.inrow:focus-within { border-color: #250bb8; box-shadow: 0 0 0 3px rgba(37,11,184, .12); }
.inrow input { border: 0; padding: 11px 0; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.inrow em { font-style: normal; color: var(--ink-3); font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link { background: none; border: 0; color: #250bb8; font: 500 14px var(--font); cursor: pointer; padding: 0; }
.sum { margin: 4px 0 16px; }
.sum .r { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; color: var(--ink-3); }
.sum .r b { color: var(--ink); font-weight: 500; text-align: right; }
.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.steps-run { list-style: none; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.steps-run li { position: relative; padding: 6px 0 6px 26px; font-size: 13.5px; color: var(--ink-3); }
.steps-run li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #cbc8dc; box-sizing: border-box; }
.steps-run li.now { color: var(--ink); }
.steps-run li.now::before { border-color: #250bb8; border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-run li.done { color: var(--ink); }
.steps-run li.done::before { background: #10b981; border-color: #10b981; }
.steps-run li.fail { color: #a01e24; }
.steps-run li.fail::before { background: #e5484d; border-color: #e5484d; }
.steps-run a { margin-left: 8px; color: #250bb8; font-family: var(--mono); font-size: 12px; }
#activity .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #efeef6; font-size: 14px; }
#activity a { color: #250bb8; font-family: var(--mono); font-size: 12.5px; }
.empty { padding: 28px 8px; text-align: center; color: var(--ink-3); font-size: 14px; }
.chatcard { display: flex; flex-direction: column; min-height: 560px; }
.thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 16px; max-height: 520px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; background: var(--soft); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #ffffff; }
.bubble small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .65; font-family: var(--mono); }
.bubble.wait { color: var(--ink-3); }
.composer { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.composer textarea { resize: none; }
.composer .btn { height: 46px; }
select { width: auto; padding: 7px 10px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.chan { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; color: inherit; }
.chan:hover { background: var(--soft); }
.chan.on { background: #f2f0ff; border-color: #d5cff8; }
.chan b { display: block; font-family: var(--mono); font-size: 13px; }
.chan small { color: var(--ink-3); font-size: 12.5px; }
.newch { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.newch summary { cursor: pointer; font-weight: 500; font-size: 14px; color: #250bb8; margin-bottom: 12px; }
.job { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.job-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.job-h b { font-size: 16px; }
.job .kv { padding: 7px 0; font-size: 13px; }
.job .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job .acts .btn { height: 34px; font-size: 13.5px; }
.btn-soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { background: #efeef6; }
.st { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); text-transform: capitalize; }
.st.funded { background: #f1eeff; color: #250bb8; } .st.submitted { background: #fff4e5; color: #a8590a; } .st.completed { background: #e6f7f0; color: #0b547a; } .st.rejected, .st.expired { background: #fff1f1; color: #a01e24; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(9,3,40, .45); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { width: min(380px, 100%); background: #ffffff; border-radius: 18px; padding: 20px; box-shadow: 0 40px 80px -20px rgba(0,0,0, .4); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff; cursor: pointer; font: 500 15px var(--font); }
.wallets button:hover { background: var(--soft); }
.wallets img { width: 28px; height: 28px; border-radius: 7px; }
@media (max-width: 860px) {
  .atabs { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; justify-content: space-around; background: rgba(255,255,255, .95); border-top: 1px solid var(--line); padding: 8px; z-index: 30; }
  .net { display: none; }
  #walletBtn { margin-left: auto; }
  .grid2, .grid-ai, .grid-wire { grid-template-columns: 1fr; }
  .amain { padding-bottom: 110px; }
  .chatcard { min-height: 460px; }
}
[hidden] { display: none !important; }
button.btn, label.btn { border: 0; font-family: var(--font); cursor: pointer; }
.btn-soft { border: 1px solid var(--line) !important; }
#walletBtn.on { border: 0; }

/* ---------- sky skin (usecylo-style) ---------- */
.appbody { --font: "Host Grotesk", ui-sans-serif, system-ui, sans-serif; font-family: var(--font); color: #1e143b;
  background: linear-gradient(180deg, rgba(242,238,255, .55), rgba(242,238,255, .9) 340px, #efeaff 560px), url(/assets/sky/hero-violet.webp) center top / 100% auto no-repeat, #efeaff; }
.abar { background: rgba(243,240,252, .78); border-bottom: 0; margin: 16px auto 0; max-width: 1100px; width: calc(100% - 32px); border-radius: 14px; top: 16px; box-shadow: 0 10px 30px rgba(41,20,100, .12); }
.abar .brand span { font-weight: 600; font-size: 21px; letter-spacing: -.04em; text-transform: lowercase; }
.atabs button.on { background: rgba(255,255,255, .9); box-shadow: none; }
.btn-dark { background: #691aff; color: #ffffff; box-shadow: inset 0 -2px 0 rgba(0,0,0, .15); }
.btn-dark:hover { background: #5d0ff0; }
#walletBtn.on { background: rgba(255,255,255, .9); color: #1e143b; }
.card, .gate-card, .modal-card { background: rgba(255,255,255, .72); border: 1px solid rgba(255,255,255, .8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 20px 50px -24px rgba(56,20,140, .35); }
.big { letter-spacing: -.045em; color: #691aff; }
.big em { color: #655a86; }
.gate-card h1 { font-size: 30px; letter-spacing: -.03em; font-weight: 500; }
.seg, .steps-run, .copy { background: rgba(255,255,255, .6); }
.bubble.me { background: #691aff; }
.field input, .field textarea, .composer textarea, select, .inrow { background: rgba(255,255,255, .85); }
.st.funded { background: #ede6ff; color: #691aff; }
.banner { background: rgba(237,230,255, .9); color: #5512c4; border-color: rgba(105,26,255, .2); }
