/* Grape Liquidity: the Grape Wallet design (grapewallet.org): DM Sans text, Manrope headings, the wallet's colours,
   cards, buttons, review rows and dialog. Fonts are the wallet's own files (SIL Open Font License, licences beside them). */
@font-face{font-family:"DM Sans";src:url('/team/DMSans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
@font-face{font-family:Manrope;src:url('/team/Manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
@font-face{font-family:Space;src:url('/assets/SpaceGrotesk.ttf') format('truetype');font-display:swap;font-weight:300 700}
:root{--bg:#f7f7f5;--paper:#fff;--ink:#241c2c;--muted:#797482;--soft:#776783;--line:#e8e5eb;--hair:#f0edf1;--purple:#652fa0;--violet:#9b82c5;
  --lilac:#f5f2f8;--lilac-2:#f1ebf7;--orange:#ff6c00;--green:#427564;--red:#b3261e;--ease:cubic-bezier(.2,.7,.2,1)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"DM Sans",Space,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}
button,a,input{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9c78c3;outline-offset:3px}
h1,h2,h3{font-family:Manrope,"DM Sans",Space,sans-serif;font-weight:500;letter-spacing:-.045em;margin:0}
h1{font-size:36px;line-height:1.2}h2{font-size:21px;line-height:1.25;margin:0 0 16px}h3{font-size:17px;margin:0 0 8px}p{margin:0 0 8px}
a{color:var(--purple)}
.eyebrow{font-size:9px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);margin:0 0 8px}
.muted{color:var(--muted)}.small{font-size:12px;line-height:1.7}

/* Team-test banner (rehearsal only). */
.profile-banner{position:sticky;top:0;z-index:50;padding:12px 16px;text-align:center;font-weight:700;letter-spacing:.06em;color:#fff;
  background:repeating-linear-gradient(-45deg,#b3261e 0 18px,#c8471c 18px 36px);border-bottom:3px solid #271c35}
.profile-banner small{display:block;font-weight:400;letter-spacing:0;font-size:12px;margin-top:3px}

/* Top bar, as the wallet's. */
.top{height:88px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfbfa;border-bottom:1px solid var(--line)}
.brand{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;flex-shrink:0}
.brand img{width:104px;height:40px;object-fit:contain;object-position:left}
.brand span{font-size:9px;letter-spacing:.25em;color:#85808b;padding:4px 0 0 3px}
.top-actions{display:flex;align-items:center;gap:10px;min-width:0;flex:0 1 auto}
.link{color:var(--purple);text-decoration:underline;text-underline-offset:3px;padding:0;font-size:inherit}
.top-actions .link{font-size:12px;color:#5f446e;text-decoration:none;padding:10px 12px;border-radius:25px;font-weight:500}
.top-actions .link:hover{background:var(--lilac)}
.network-chip{font-size:11px;display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:25px;padding:9px 12px;background:#fff;white-space:nowrap}
.chain-dot{height:6px;width:6px;background:var(--violet);border-radius:50%;box-shadow:0 0 0 3px #9b82c51f;display:inline-block}
.wallet-pill{flex-shrink:1;min-width:0;border:1px solid var(--line);background:#fff;border-radius:25px;padding:10px 16px;font-size:12px;font-weight:600;color:var(--ink);
  max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:border-color .2s var(--ease),background .2s var(--ease)}
.wallet-pill:hover{border-color:#d9cbe6;background:#fdfbff}

/* The lilac strip under the top bar. */
.strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 38px;background:#f3f0f6;border-bottom:1px solid #ebe6f0;font-size:10px;color:var(--soft)}
.strip span{display:flex;align-items:center;gap:8px}.strip span i{width:5px;height:5px;border-radius:50%;background:var(--violet)}
.text-button{color:var(--soft);font-size:10px;display:inline-flex;align-items:center;gap:6px}.text-button b{font-weight:400}
.text-button:hover{color:var(--purple)}

.notice{margin:12px 0;padding:13px 16px;border-radius:14px;background:#fff6ee;border:1px solid #f4d6bd;color:#7a3f0e;font-size:13px;line-height:1.6}
#notice{max-width:1550px;margin:20px 38px 0}
.notice.error{background:#fdecea;border-color:#f2b8b5;color:var(--red)}

.page-heading{max-width:1550px;margin:0 auto;padding:32px 38px 0}
.page-heading h1{margin:0 0 25px}

/* Layout: the pool beside the deposit form, as the wallet's overview grid. */
main{max-width:1550px;margin:0 auto;padding:0 38px;display:grid;gap:23px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.dash main{grid-template-columns:minmax(0,1fr) minmax(320px,400px)}
.card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:24px;min-width:0}
#positions,#history,#status{grid-column:1/-1}
#deposit{scroll-margin-top:24px}

/* The pool: the wallet's balance card. */
.pool-card{background:linear-gradient(118deg,#fcfbfe 7%,#f2edf9 65%,#faf4ef);border-color:#e6dfed;border-radius:20px;padding:28px}
.pool-card h2{font-size:23px}
.pool-card{position:relative;overflow:hidden;isolation:isolate}
.pool-art{position:absolute;top:18px;right:18px;width:min(236px,34%);height:auto;pointer-events:none;z-index:0}
.pool-card>:not(.pool-art){position:relative;z-index:1}
#pool #pool-body>p:first-of-type{max-width:min(460px,calc(100% - 250px))}
#pool-body>p:not(.small):not(.rates):not(.notice){font-size:15px;color:#4e4059;max-width:640px}
.pill{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:500;padding:5px 9px;background:var(--lilac-2);border-radius:6px;color:#7a5a96;margin:0 0 14px}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #9273ab22}
.pill.open{background:#e9f2ee;color:var(--green)}.pill.missed{background:#fdecea;color:var(--red)}
.figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:20px 0}
.figure{background:rgba(255,255,255,.72);border:1px solid #ebe4f2;border-radius:14px;padding:16px 18px;min-width:0;display:flex;flex-direction:column;gap:5px;backdrop-filter:blur(4px)}
.figure small{display:block;font-size:12px;line-height:1.55;color:#665b70}
.figure small:first-child{font-size:9px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.figure b{display:block;font-family:Manrope,"DM Sans",sans-serif;font-weight:500;font-size:20px;line-height:1.25;letter-spacing:-.04em;color:var(--ink);overflow-wrap:anywhere}
.countdown{font-size:26px;letter-spacing:-.045em}
.figure b.countdown{font-size:26px}
.bar{height:5px;border-radius:99px;background:#ebe5f1;overflow:hidden;margin:6px 0 2px}.bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9b82c5,#652fa0)}
.rates{font-size:12px;line-height:1.8;color:#5e4a6d;margin:4px 0 12px;padding:14px 16px;background:rgba(255,255,255,.6);border:1px solid #ebe4f2;border-radius:14px}
.rates b{font-weight:600;color:var(--ink)}
#pool .small.muted{font-size:12px;line-height:1.8;color:#665b70}

/* Deposit: the wallet's onboarding card, amount input and review rows. */
.deposit-card h2{font-size:30px;margin-bottom:12px}
.deposit-card>.small{margin-bottom:6px}
label:not(.secondary){display:block;font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#6a5e75;margin:18px 0 9px}
body:not(.dash) .input-line{margin:6px 0 10px}
.input-line{display:flex;align-items:center;border:1px solid #e3d9eb;background:#fcfafd;border-radius:12px;padding:0 15px 0 16px;transition:border-color .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease)}
.input-line:focus-within{border-color:#b9a2d4;background:#fff;box-shadow:0 0 0 4px #9b82c51f}
.input-line input{flex:1;border:0;padding:14px 0;min-width:0;font-family:Manrope,"DM Sans",sans-serif;font-size:26px;font-weight:500;letter-spacing:-.03em;color:var(--ink);background:transparent}
.input-line input:focus{outline:none}.input-line input::placeholder{color:#cdc5d5}
.input-line input[type=file]{font-family:"DM Sans",sans-serif;font-size:12px;font-weight:400;letter-spacing:0;color:#5e496f;padding:12px 0}
.input-line span{font-size:12px;color:#6f5a80;font-weight:600}
.summary{margin:14px 0 18px;font-size:11px}
.summary div{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);color:#776783}
.summary div span{flex-shrink:0}
.summary div b{font-weight:500;color:#5e496f;text-align:right;overflow-wrap:anywhere}
.summary .actions{border:0;padding:12px 0 0;justify-content:flex-start}

/* Buttons, as the wallet's (.btn-primary, .btn-secondary). */
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--orange);color:#251509;font-weight:600;font-size:13px;line-height:1.4;border-radius:10px;
  padding:11px 18px;min-height:44px;text-decoration:none;box-shadow:0 4px 12px #ff6c0014;transition:transform .2s,background .2s}
.primary:hover:not(:disabled){background:#ee6400;transform:translateY(-1px)}
.primary:disabled{background:var(--lilac);color:#a596b1;box-shadow:none;opacity:1}
#deposit-button{width:100%;min-height:50px;font-size:14px}
.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid #e5ddea;color:#5f446e;border-radius:10px;padding:10px 16px;min-height:40px;font-size:12px;transition:transform .2s,background .2s}
.secondary:hover:not(:disabled){background:#fdfbff;transform:translateY(-1px)}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* Progress of a deposit or a redemption. */
.status{margin-top:14px;font-size:12px;line-height:1.6;color:#5e496f}
.status .step{padding:10px 13px;border-radius:12px;background:#faf8fc;border:1px solid var(--hair);margin-top:8px;overflow-wrap:anywhere}
.status .step.retrying,.status .step.requote{background:#fff4e8}
.status .step.retrying,.status .step.requote{border-color:#f4d6bd}
.status .step.error{background:#fdecea;border-color:#f6cdca;color:var(--red)}.status .step.done{background:#e9f2ee;border-color:#d3e6dc;color:var(--green)}

/* Positions, history and status: the wallet's asset list and fact rows. */
.position{border:1px solid var(--line);border-radius:14px;padding:18px 19px;margin-bottom:12px;background:#fff;transition:background .2s}
.position:hover{background:#fdfbff}
.position header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:baseline;margin-bottom:6px}
.position .figures{margin:12px 0}.position .figure{background:#faf8fc;border-color:var(--hair);backdrop-filter:none}
.rates{overflow-wrap:anywhere}
table{width:100%;border-collapse:collapse;font-size:12px}
th{font-size:9px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);text-align:left;padding:12px 16px;background:#fcfbfd;border-bottom:1px solid var(--line)}
td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--hair);vertical-align:top;overflow-wrap:anywhere;color:#4e4059}
tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fdfbff}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
#status .figure,#positions>div>.figures .figure{background:#faf8fc;border-color:var(--hair);backdrop-filter:none}
code{font-size:11px;overflow-wrap:anywhere;color:#5e496f;background:var(--lilac);padding:2px 6px;border-radius:6px}

/* Dialogs, as the wallet's. */
dialog{border:1px solid #e6dceb;border-radius:23px;padding:24px 26px;width:min(490px,calc(100% - 30px));max-width:min(490px,calc(100vw - 30px));max-height:calc(100dvh - 40px);overflow:auto;
  background:#fff;box-shadow:0 30px 130px #1f0e392e;color:var(--ink)}
dialog::backdrop{background:#21182f4d;backdrop-filter:blur(7px)}
dialog h2{font-size:21px;margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
dialog p{font-size:12px;line-height:1.85}
dialog .actions{margin-top:20px}dialog .actions>button{flex:1;min-height:46px}
dialog.risks-dialog{width:min(720px,calc(100% - 30px));max-width:min(720px,calc(100vw - 32px));max-height:calc(100% - 32px);overflow:auto}
.risk-list{list-style:none;margin:0 0 4px;padding:0;counter-reset:risk;display:grid;gap:10px}
.risk-list li{counter-increment:risk;position:relative;padding:14px 16px 14px 50px;border:1px solid var(--hair);border-radius:14px;background:#fcfbfd;font-size:12px;line-height:1.8;color:#5e4a6d}
.risk-list li::before{content:counter(risk,decimal-leading-zero);position:absolute;left:15px;top:14px;width:24px;height:21px;border-radius:6px;background:var(--lilac-2);color:#7a5a96;font-size:9px;font-weight:600;line-height:21px;text-align:center;letter-spacing:.04em}
.risk-list b{color:var(--ink);font-weight:600}
.wallet-option{display:flex;align-items:center;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:8px 0;background:#fff;font-size:13px;font-weight:500;transition:background .2s,border-color .2s}
.wallet-option:hover{background:#fdfbff;border-color:#d9cbe6}
a.wallet-option{color:var(--ink);text-decoration:none}

/* Footer, as the wallet's. */
.app-footer{max-width:1550px;margin:24px auto 0;padding:18px 38px 23px;color:#6f6479;font-size:10px;letter-spacing:.12em;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.app-footer i{font-style:normal;margin:0 7px}
.app-footer>span:last-child{letter-spacing:0;display:flex;gap:14px;align-items:center}
.app-footer a{color:var(--purple);font-size:12px;font-weight:600;text-decoration:none}

/* Inside the wallet or buy.grap3.com (?embedded=wallet): their own frame already shows the heading and the strip. */
.embedded .top{height:auto;padding:12px 16px}.embedded .strip,.embedded .page-heading,.embedded .app-footer{display:none}
.embedded main{padding:16px 12px 24px;gap:16px}.embedded #notice{margin:12px 12px 0}

@media (max-width:1100px){main,.dash main{grid-template-columns:1fr}}
@media (max-width:760px){.pool-art{display:none}#pool #pool-body>p:first-of-type{max-width:none}.top{height:75px;padding:0 21px}.strip,.page-heading{padding-left:21px;padding-right:21px}main{padding:0 21px;gap:17px}
  .page-heading{padding-top:26px}h1{font-size:29px}.page-heading h1{margin-bottom:22px}.network-chip{display:none}
  .card,.pool-card{padding:22px;border-radius:18px}.deposit-card h2{font-size:26px}.figure b{font-size:19px}.figure b.countdown,.countdown{font-size:22px}
  #notice{margin:16px 21px 0}.app-footer{padding:18px 21px 40px}}
@media (max-width:480px){.top{padding:0 16px;gap:8px}.brand img{width:80px;height:31px}.brand span{display:none}.top-actions{gap:4px}
  .top-actions .link{padding:10px 8px}.top-actions .wallet-pill{padding:10px 12px}.strip{padding:10px 16px}.strip span{display:none}
  .page-heading{padding-left:16px;padding-right:16px}main{padding:0 16px}#notice{margin:14px 16px 0}.figures{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* 21 Nov 2026: while a request waits in a phone wallet app (WalletConnect), a bar to open the app at that request. */
.wallet-wait{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px #1f0e3926;color:var(--ink);font-size:13px}
.wallet-wait a.primary{flex-shrink:0;text-decoration:none;padding:11px 16px}
@media(min-width:720px){.wallet-wait{left:auto;max-width:520px}}
