/* TASKPAY design system: black + mint + white. Tokens first, then base, components, app shell, pages. */
:root {
  --bg: #071211; --bg2: #0d1c1a; --surf: #102420; --surf2: #14302a; --mint: #2de4a2; --em: #10c98b; --lm: #a5f5d4; --tx: #f5fbf8; --tx2: #8da8a0; --tx3: #5d7a72;
  --bd: rgba(165, 245, 212, .12); --bd2: rgba(165, 245, 212, .22); --warn: #f5b62e; --bad: #ff6b6b; --blue: #6cb6ff; --vio: #a99bff;
  --r: 16px; --r2: 22px; --ease: cubic-bezier(.2, .8, .2, 1); --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(900px 520px at 78% -8%, rgba(45, 228, 162, .13), transparent 70%), radial-gradient(700px 500px at -5% 40%, rgba(16, 201, 139, .07), transparent 70%), var(--bg); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
:where(svg:not([width])) { width: 1.15em; height: 1.15em; flex: none; }          /* icons without their own size follow the text size (zero specificity: any class rule wins) */
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.08; font-weight: 650; }
p { margin: 0; }
::selection { background: rgba(45, 228, 162, .3); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #1c3a33; border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
.mono { font-family: var(--mono); }
.dim { color: var(--tx2); } .dim3 { color: var(--tx3); } .mint { color: var(--mint); }
.wordmark { font-weight: 750; letter-spacing: -.035em; } .wordmark b { color: var(--mint); font-weight: 750; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--bd2); background: rgba(255, 255, 255, .03); color: var(--tx); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; white-space: nowrap; user-select: none; }
.btn:hover { background: rgba(165, 245, 212, .08); border-color: rgba(165, 245, 212, .4); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.pri { background: linear-gradient(180deg, #46f0b4, #17c98e); border-color: transparent; color: #04211a; box-shadow: 0 10px 30px -10px rgba(45, 228, 162, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.pri:hover { box-shadow: 0 16px 38px -10px rgba(45, 228, 162, .85), inset 0 1px 0 rgba(255, 255, 255, .55); filter: brightness(1.05); }
.btn.dan { color: #ffb1b1; border-color: rgba(255, 107, 107, .35); } .btn.dan:hover { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .6); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; } .btn.lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn[disabled], .btn.off { opacity: .45; pointer-events: none; }
.btn.busy { pointer-events: none; color: transparent !important; } .btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: currentColor; color: var(--tx); animation: spin .7s linear infinite; } .btn.pri.busy::after { color: #04211a; border-color: rgba(4, 33, 26, .25); border-top-color: #04211a; }
.btn svg { width: 17px; height: 17px; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, rgba(20, 48, 42, .82), rgba(13, 28, 26, .84)); border: 1px solid var(--bd); border-radius: var(--r2); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); }
.card.pad { padding: 22px; }
.card.hov { transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; } .card.hov:hover { transform: translateY(-3px); border-color: var(--bd2); box-shadow: 0 24px 50px -28px rgba(45, 228, 162, .3); }
.glass { background: rgba(13, 28, 26, .85); border: 1px solid var(--bd); }
.hr { height: 1px; background: var(--bd); border: 0; margin: 18px 0; }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; } .field > span, .lbl { font-size: 12.5px; font-weight: 600; color: var(--tx2); letter-spacing: .01em; }
.input, select.input, textarea.input { width: 100%; background: rgba(7, 18, 17, .7); border: 1px solid var(--bd2); border-radius: 12px; padding: 11px 14px; min-height: 44px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.input::placeholder { color: var(--tx3); } .input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(45, 228, 162, .13); background: rgba(7, 18, 17, .95); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; } select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238da8a0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field .err { color: #ff9c9c; font-size: 12.5px; min-height: 0; } .input.bad { border-color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .col { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

/* ---------- chips / badges / avatar ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: rgba(165, 245, 212, .07); border: 1px solid var(--bd); font-size: 12.5px; font-weight: 550; color: var(--lm); white-space: nowrap; cursor: default; }
button.chip, a.chip { cursor: pointer; transition: all .2s; } button.chip:hover, a.chip:hover { border-color: var(--bd2); background: rgba(165, 245, 212, .13); } .chip.on { background: var(--mint); color: #04211a; border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.st-open { color: var(--mint); background: rgba(45, 228, 162, .12); } .st-awaiting_funding { color: var(--warn); background: rgba(245, 182, 46, .12); } .st-in_progress, .st-revision_requested { color: var(--blue); background: rgba(108, 182, 255, .12); }
.st-submitted { color: var(--vio); background: rgba(169, 155, 255, .13); } .st-release_pending, .st-refund_pending { color: var(--warn); background: rgba(245, 182, 46, .12); } .st-paid { color: #fff; background: rgba(45, 228, 162, .28); } .st-disputed { color: var(--bad); background: rgba(255, 107, 107, .13); } .st-refunded, .st-cancelled { color: var(--tx2); background: rgba(141, 168, 160, .13); }
.ava { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: calc(var(--s) * .4); color: #04211a; background: linear-gradient(135deg, var(--c1, #46f0b4), var(--c2, #0fa97a)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); overflow: hidden; }
.ava.official { background: #fff; padding: calc(var(--s) * .16); } .ava.official img { width: 100%; height: 100%; object-fit: contain; display: block; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); color: #04211a; font-size: 10px; font-weight: 900; vertical-align: 1px; margin-left: 4px; }
.sol { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; } .sol small { color: var(--tx2); font-weight: 500; font-size: .7em; margin-left: 3px; letter-spacing: 0; }

/* ---------- toast / modal / drawer / skeleton ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { padding: 13px 16px; border-radius: 14px; background: rgba(16, 36, 32, .97); border: 1px solid var(--bd2); box-shadow: var(--shadow); font-size: 14px; animation: tin .4s var(--ease); display: flex; gap: 10px; align-items: flex-start; } .toast.err { border-color: rgba(255, 107, 107, .5); } .toast.out { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(2, 8, 7, .78); display: grid; place-items: center; padding: 16px; animation: fade .25s; overflow: auto; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; background: linear-gradient(180deg, #123029, #0c1f1b); border: 1px solid var(--bd2); border-radius: 24px; box-shadow: 0 40px 100px -20px #000; animation: mpop .4s var(--ease); position: relative; }
.modal h3 { font-size: 22px; margin-bottom: 6px; } .modal .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--bd); background: transparent; cursor: pointer; font-size: 18px; color: var(--tx2); } .modal .x:hover { color: var(--tx); border-color: var(--bd2); }
@keyframes fade { from { opacity: 0; } } @keyframes mpop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.skel { border-radius: 12px; background: linear-gradient(100deg, rgba(165, 245, 212, .05) 30%, rgba(165, 245, 212, .13) 50%, rgba(165, 245, 212, .05) 70%); background-size: 200% 100%; animation: shim 1.4s infinite linear; }
@keyframes shim { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 20px; color: var(--tx2); display: grid; gap: 10px; justify-items: center; } .empty > svg { width: 56px; height: 56px; color: var(--mint); opacity: .8; } .empty h4 { color: var(--tx); font-size: 18px; }
.notice { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(245, 182, 46, .35); background: rgba(245, 182, 46, .07); color: #ffe3a3; font-size: 14px; } .notice.ok { border-color: rgba(45, 228, 162, .35); background: rgba(45, 228, 162, .07); color: var(--lm); } .notice.bad { border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .07); color: #ffc1c1; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(7, 18, 17, .6); border: 1px solid var(--bd); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.tab { position: relative; padding: 8px 15px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--tx2); cursor: pointer; border: 0; background: none; white-space: nowrap; transition: color .2s, background .2s; } .tab:hover { color: var(--tx); } .tab.on { color: #04211a; background: var(--mint); } .tab .n { margin-left: 6px; font-size: 11px; opacity: .75; }
.dot { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; text-align: center; border-radius: 99px; background: var(--mint); color: #04211a; font-size: 11px; font-weight: 800; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--bd); background: rgba(7, 18, 17, .94); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; font-size: 21px; } .brand img { width: 30px; height: 30px; object-fit: contain; }
.nav { display: grid; gap: 2px; } .nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--tx2); font-weight: 560; font-size: 14.5px; position: relative; transition: color .2s, background .2s, transform .25s var(--ease); }
.nav a svg { width: 19px; height: 19px; flex: none; } .nav a:hover { color: var(--tx); background: rgba(165, 245, 212, .06); transform: translateX(2px); } .nav a.on { color: var(--tx); background: linear-gradient(90deg, rgba(45, 228, 162, .18), rgba(45, 228, 162, .04)); } .nav a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 14px var(--mint); } .nav a .dot { margin-left: auto; }
.side .sp { flex: 1; } .net { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bd); font-size: 12.5px; color: var(--tx2); } .net i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); } .net.main i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(7, 18, 17, .94); border-bottom: 1px solid var(--bd); }
.top .burger { display: none; } .top .search { flex: 1; max-width: 460px; position: relative; } .top .search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--tx3); } .top .search .input { padding-left: 40px; min-height: 40px; border-radius: 99px; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bd2); background: none; cursor: pointer; display: grid; place-items: center; } .bell svg { width: 19px; } .bell:hover { background: rgba(165, 245, 212, .08); } .bell .dot { position: absolute; top: -6px; right: -6px; }
.page { padding: 30px 28px 80px; max-width: 1280px; width: 100%; margin: 0 auto; animation: pin .5s var(--ease); } @keyframes pin { from { opacity: 0; transform: translateY(10px); } }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; } .ph h1 { font-size: clamp(28px, 4vw, 40px); } .ph p { color: var(--tx2); margin-top: 8px; max-width: 620px; }
.pop { position: absolute; right: 0; top: 50px; width: 360px; max-width: calc(100vw - 24px); max-height: 70vh; overflow: auto; padding: 8px; background: #0f2924; border: 1px solid var(--bd2); border-radius: 18px; box-shadow: 0 30px 80px -20px #000; z-index: 50; animation: mpop .3s var(--ease); } .pop .it { padding: 11px 12px; border-radius: 12px; display: grid; gap: 2px; cursor: pointer; font-size: 14px; } .pop .it:hover { background: rgba(165, 245, 212, .07); } .pop .it.un { background: rgba(45, 228, 162, .07); } .pop .it small { color: var(--tx3); }
.walletbtn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 8px; border-radius: 99px; border: 1px solid var(--bd2); background: rgba(165, 245, 212, .05); cursor: pointer; font-weight: 600; font-size: 13.5px; } .walletbtn:hover { background: rgba(165, 245, 212, .1); } .walletbtn .ava { --s: 26px; }
.menu { position: absolute; right: 0; top: 48px; min-width: 210px; padding: 6px; background: #0f2924; border: 1px solid var(--bd2); border-radius: 16px; box-shadow: 0 30px 80px -20px #000; z-index: 50; animation: mpop .25s var(--ease); } .menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--tx); } .menu a:hover, .menu button:hover { background: rgba(165, 245, 212, .08); }

/* ---------- task cards ---------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tc { padding: 20px; display: grid; gap: 14px; position: relative; overflow: hidden; cursor: pointer; align-content: start; } .tc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 140px at var(--mx, 80%) var(--my, 0%), rgba(45, 228, 162, .13), transparent 70%); opacity: 0; transition: opacity .3s; } .tc:hover::before { opacity: 1; }
.tc h3 { font-size: 18px; line-height: 1.22; } .tc .sh { color: var(--tx2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .tc .by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx2); min-width: 0; } .tc .by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc .price { font-size: 22px; } .tc .foot { display: flex; justify-content: space-between; align-items: center; color: var(--tx3); font-size: 12.5px; border-top: 1px solid var(--bd); padding-top: 12px; } .tc .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--tx2); font-size: 12px; }
.fundedtag { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-size: 12px; font-weight: 700; } .fundedtag svg { width: 14px; }
.filters { display: grid; gap: 14px; margin-bottom: 22px; } .cats { display: flex; gap: 8px; flex-wrap: wrap; }
.official-band { position: relative; padding: 22px; border-radius: var(--r2); overflow: hidden; border: 1px solid rgba(45, 228, 162, .35); background: linear-gradient(120deg, rgba(45, 228, 162, .16), rgba(16, 36, 32, .6) 55%); margin-bottom: 26px; }

/* ---------- task page ---------- */
.tp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; } .tp .side2 { position: sticky; top: 86px; display: grid; gap: 16px; }
.price-big { font-size: 38px; letter-spacing: -.04em; line-height: 1; } .kv { display: grid; gap: 11px; font-size: 14px; } .kv div { display: flex; justify-content: space-between; gap: 12px; } .kv span:first-child { color: var(--tx2); }
.prose { white-space: pre-wrap; word-wrap: break-word; color: #d3e6df; line-height: 1.65; }
.tl { display: flex; gap: 0; align-items: flex-start; margin: 4px 0 2px; } .tl .s { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: var(--tx3); padding-top: 22px; font-weight: 600; } .tl .s::before { content: ''; position: absolute; top: 5px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--bg2); border: 2px solid #28463f; transform: translateX(-50%); z-index: 1; transition: .4s; } .tl .s::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #1c3a33; } .tl .s:first-child::after { display: none; }
.tl .s.done { color: var(--tx2); } .tl .s.done::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 12px var(--mint); } .tl .s.done::after { background: var(--mint); } .tl .s.now { color: var(--tx); } .tl .s.now::before { border-color: var(--mint); animation: pulse 1.6s infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(45, 228, 162, .15); } }
.apps { display: grid; gap: 12px; } .app { padding: 16px; border-radius: 16px; border: 1px solid var(--bd); background: rgba(7, 18, 17, .5); display: grid; gap: 10px; } .app.acc { border-color: var(--mint); }
.deliv { padding: 16px; border-radius: 16px; border: 1px solid var(--bd); background: rgba(7, 18, 17, .5); display: grid; gap: 10px; } .file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--bd); background: rgba(255, 255, 255, .03); font-size: 13.5px; cursor: pointer; } .file:hover { border-color: var(--bd2); } .file svg { width: 17px; color: var(--mint); flex: none; } .file small { color: var(--tx3); margin-left: auto; } .file.locked { opacity: .65; } .file.locked svg { color: var(--warn); }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-rows: 1fr auto; height: min(620px, 72vh); border-radius: 20px; border: 1px solid var(--bd); background: rgba(7, 18, 17, .55); overflow: hidden; }
.msgs { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: #14302a; border-bottom-left-radius: 5px; animation: mi .35s var(--ease); font-size: 14.5px; word-wrap: break-word; white-space: pre-wrap; } .msg.me { align-self: flex-end; background: linear-gradient(180deg, #1b6e54, #0f5a43); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.msg .t { display: block; font-size: 11px; color: var(--tx3); margin-top: 4px; } .msg.me .t { color: #8fd9bd; text-align: right; } .msg .rp { display: block; font-size: 12px; padding: 5px 9px; margin-bottom: 6px; border-left: 2px solid var(--mint); background: rgba(0, 0, 0, .2); border-radius: 6px; color: var(--tx2); }
.msg.sys { align-self: center; max-width: 90%; background: none; border: 1px dashed var(--bd2); color: var(--tx2); font-size: 12.5px; text-align: center; border-radius: 12px; } .msg img.att { max-width: 240px; max-height: 200px; border-radius: 10px; display: block; margin-bottom: 4px; cursor: zoom-in; }
@keyframes mi { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.typing { display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 16px; background: #14302a; align-self: flex-start; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx2); animation: bounce 1.1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; } @keyframes bounce { 40% { transform: translateY(-5px); background: var(--mint); } }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--bd); align-items: flex-end; background: rgba(13, 28, 26, .8); } .composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; background: rgba(7, 18, 17, .8); border: 1px solid var(--bd2); border-radius: 14px; outline: 0; } .composer textarea:focus { border-color: var(--mint); }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bd2); background: none; cursor: pointer; display: grid; place-items: center; flex: none; } .iconbtn:hover { background: rgba(165, 245, 212, .08); } .iconbtn svg { width: 19px; }
.attprev { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--bd); font-size: 13px; background: rgba(45, 228, 162, .06); animation: mi .3s; }

/* ---------- payment sequence ---------- */
.seq { display: grid; gap: 14px; margin: 18px 0 4px; } .seq .st { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--bd); color: var(--tx3); transition: .4s; } .seq .st i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #28463f; display: grid; place-items: center; flex: none; font-style: normal; font-size: 13px; font-weight: 800; transition: .4s; }
.seq .st.now { color: var(--tx); border-color: var(--bd2); } .seq .st.now i { border-color: var(--mint); border-top-color: transparent; animation: spin .8s linear infinite; } .seq .st.done { color: var(--tx); border-color: rgba(45, 228, 162, .4); background: rgba(45, 228, 162, .07); } .seq .st.done i { background: var(--mint); border-color: var(--mint); color: #04211a; animation: none; }
.burst { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; } .burst i { position: absolute; width: 9px; height: 14px; border-radius: 2px; left: 50%; top: 45%; opacity: 0; animation: conf 1.6s var(--ease) forwards; } @keyframes conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
.paid-hero { text-align: center; padding: 10px 0; display: grid; gap: 10px; justify-items: center; } .paid-hero .big { width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(180deg, #46f0b4, #17c98e); display: grid; place-items: center; color: #04211a; box-shadow: 0 0 0 10px rgba(45, 228, 162, .12), 0 0 60px rgba(45, 228, 162, .5); animation: pop .6s var(--ease); } .paid-hero .big svg { width: 38px; } @keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* ---------- workspace ---------- */
.ws { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; gap: 0; height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--bd); border-radius: 22px; overflow: hidden; background: rgba(7, 18, 17, .6); }
.ws > div { min-width: 0; display: flex; flex-direction: column; } .ws .pane-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--bd); font-size: 13px; font-weight: 600; color: var(--tx2); min-height: 52px; flex-wrap: wrap; }
.ws .files { border-right: 1px solid var(--bd); background: rgba(13, 28, 26, .5); } .ws .chatp { border-left: 1px solid var(--bd); background: rgba(13, 28, 26, .5); }
.tree { padding: 8px; overflow: auto; display: grid; gap: 2px; align-content: start; flex: 1; } .tree button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 9px; border: 0; background: none; cursor: pointer; font: 500 13px var(--mono); color: var(--tx2); animation: mi .35s var(--ease); } .tree button:hover { background: rgba(165, 245, 212, .07); color: var(--tx); } .tree button.on { background: rgba(45, 228, 162, .14); color: var(--tx); } .tree button.new::after { content: 'updated'; margin-left: auto; font: 700 9.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.stage { flex: 1; position: relative; background: #fff; min-height: 0; } .stage iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; } .stage.mob { display: grid; place-items: center; background: #09100f; } .stage.mob iframe { width: 390px; max-width: 100%; height: calc(100% - 24px); border-radius: 22px; border: 6px solid #1c3a33; }
.code { flex: 1; width: 100%; background: #060e0d; color: #cfe9df; border: 0; padding: 16px; font: 13px/1.6 var(--mono); resize: none; outline: 0; tab-size: 2; white-space: pre; }
.aichat { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; } .aimsg { padding: 11px 13px; border-radius: 14px; background: #14302a; font-size: 14px; animation: mi .35s var(--ease); } .aimsg.u { background: linear-gradient(180deg, #1b6e54, #0f5a43); align-self: flex-end; max-width: 88%; } .aimsg .ch { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; } .aimsg .ch span { font: 11px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(45, 228, 162, .14); color: var(--lm); }
.think { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #14302a; color: var(--tx2); font-size: 13.5px; } .think .bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; } .think .bars i { width: 3px; background: var(--mint); border-radius: 2px; animation: bar 1s infinite ease-in-out; } .think .bars i:nth-child(2) { animation-delay: .12s; } .think .bars i:nth-child(3) { animation-delay: .24s; } .think .bars i:nth-child(4) { animation-delay: .36s; } @keyframes bar { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }

/* ---------- profile / leaderboard / misc ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .stat { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--bd); background: rgba(7, 18, 17, .5); } .stat b { display: block; font-size: 26px; letter-spacing: -.03em; margin-top: 4px; font-weight: 650; } .stat span { font-size: 12.5px; color: var(--tx2); }
.lb { display: grid; gap: 10px; } .lbr { display: grid; grid-template-columns: 44px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; cursor: pointer; } .lbr .rk { font: 700 22px var(--mono); color: var(--tx3); } .lbr:nth-child(1) .rk { color: #ffd76a; } .lbr:nth-child(2) .rk { color: #d6e2e0; } .lbr:nth-child(3) .rk { color: #e6a06b; }
.stars { color: var(--warn); letter-spacing: 2px; } .stars.pick span { cursor: pointer; font-size: 26px; transition: transform .15s; } .stars.pick span:hover { transform: scale(1.2); } .stars.pick span.off { color: #3b4f4a; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; } .steps i { flex: 1; height: 4px; border-radius: 4px; background: #1c3a33; transition: .4s; } .steps i.on { background: var(--mint); box-shadow: 0 0 12px rgba(45, 228, 162, .5); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; color: var(--tx3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; } .tbl td { padding: 13px 12px; border-top: 1px solid var(--bd); }
.hide-m { } .show-m { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .tp { grid-template-columns: minmax(0, 1fr); } .tp .side2 { position: static; } .ws { grid-template-columns: 200px 1fr; height: auto; } .ws .chatp { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--bd); height: 480px; } .ws .files, .ws .mainp { min-height: 480px; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-102%); transition: transform .35s var(--ease); background: #0a1a17; } .side.open { transform: none; box-shadow: 30px 0 80px #000a; } .top .burger { display: grid; }
  .top, .page { padding-left: 16px; padding-right: 16px; } .top .search { display: none; } .grid2 { grid-template-columns: 1fr; } .feed { grid-template-columns: 1fr; } .hide-m { display: none !important; } .show-m { display: initial; }
  .lbr { grid-template-columns: 34px 1fr auto; } .lbr .x1, .lbr .x2 { display: none; } .ws { grid-template-columns: 1fr; } .ws .files { border-right: 0; border-bottom: 1px solid var(--bd); min-height: 0; max-height: 200px; } .ws .stage { min-height: 380px; } .tl .s { font-size: 10px; } .modal { padding: 20px; } .msg { max-width: 90%; }
}
/* user chose calm mode (toggle on the site) */ html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

[hidden] { display: none !important; }

.cachip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(45,228,162,.35); background: rgba(45,228,162,.08); color: var(--lm); font: 700 12.5px var(--font, inherit); letter-spacing: .02em; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s, border-color .2s; }
.cachip:hover { background: rgba(45,228,162,.16); border-color: var(--mint); transform: translateY(-1px); }
.xchip { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 0 12px; text-decoration: none; font-weight: 800; }
