@layer legacy{.trade-detail.trade-receipt-screen{--receipt-green:var(--accent);max-width:560px;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink);overflow:visible}.trade-record-modal:has(.trade-receipt-screen){width:min(560px,calc(100% - 24px));background:var(--bg)}.trade-record-modal .trade-detail.trade-receipt-screen{padding:0;border:0;border-radius:0}.trade-receipt-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:-webkit-sticky;position:sticky;top:0;z-index:5;padding:16px 20px;border-bottom:1px solid var(--line);background:var(--bg);border-radius:20px 20px 0 0}.trade-receipt-topbar h1{font-size:1.1rem;margin:0;white-space:nowrap}.trade-receipt-topbar__tools{display:flex;align-items:center;gap:7px}.trade-receipt-brand{color:var(--buy-deep);font-size:.95rem;font-weight:800}.trade-receipt-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;color:var(--ink);background:transparent;text-decoration:none;font-size:28px;cursor:pointer}.trade-receipt-close:hover{background:var(--surface)}.trade-receipt-content{padding:18px;display:grid;grid-gap:16px;gap:16px}.trade-receipt-content>.trade-detail__alert{margin:0;font-size:.85rem}.trade-receipt-extra,.trade-receipt-facts,.trade-receipt-hero{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 2px 3px #182e2105}.trade-receipt-hero{padding:22px 16px;text-align:center}.trade-receipt-hero h2{display:flex;align-items:center;justify-content:center;gap:14px;margin:0;font-size:1.6rem;font-weight:800;color:var(--ink)}.trade-receipt-icon{width:42px;height:42px;color:var(--buy-deep);flex:none}.trade-receipt-screen--sell .trade-receipt-icon{color:var(--gold-deep)}.trade-receipt-state{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:14px}.trade-receipt-state .trade-status{font-size:.8rem;padding:6px 14px}.trade-receipt-state .trade-status:before{display:none}.trade-receipt-created{margin:8px 0 0;color:var(--muted);font-size:.76rem}.trade-receipt-amount{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:8px;margin:22px 0 16px;color:var(--buy-deep)}.trade-receipt-amount bdi{font-size:clamp(2rem,9vw,3rem);line-height:1.2;font-weight:800;letter-spacing:-.8px;overflow-wrap:anywhere;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.trade-receipt-amount span{color:var(--muted);font-size:1rem;font-weight:600}.trade-receipt-weight{display:inline-block;margin:0;padding:7px 16px;border:1px solid var(--gold);border-radius:14px;background:color-mix(in srgb,var(--gold) 10%,var(--surface));font-size:.85rem;color:var(--ink)}.trade-receipt-reason{margin:14px 0 0;color:var(--danger);font-size:.85rem}.trade-receipt-facts{padding-inline:16px}.trade-receipt-extra dl,.trade-receipt-facts dl{margin:0}.trade-receipt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:13px;border-bottom:1px solid var(--line);font-size:.85rem}.trade-receipt-row:last-child{border-bottom:0}.trade-receipt-row dt{color:var(--muted);flex:none}.trade-receipt-row dd{min-width:0;margin:0;text-align:left;font-weight:650;overflow-wrap:anywhere}.trade-receipt-row a{color:inherit;text-underline-offset:3px}.trade-receipt-row time{font-size:.8rem}.trade-receipt-tracking{display:flex;align-items:center;gap:8px;direction:ltr}.trade-receipt-tracking bdi{-webkit-user-select:all;-moz-user-select:all;user-select:all}.trade-receipt-tracking button{display:grid;place-items:center;width:36px;height:36px;margin-block:-9px;border:0;border-radius:8px;background:transparent;color:var(--buy-deep);cursor:pointer}.trade-receipt-tracking button:hover{background:var(--bg)}.trade-receipt-tracking svg{width:21px;height:21px}.trade-receipt-help{position:relative;flex:none;text-align:right}.trade-receipt-help>summary{display:grid;place-items:center;list-style:none;width:27px;height:27px;border:1.5px solid;border-radius:50%;color:var(--muted);font-size:.9rem;line-height:1;font-weight:700;cursor:pointer}.trade-receipt-help>summary::-webkit-details-marker{display:none}.trade-receipt-help p{position:absolute;z-index:8;top:calc(100% + 7px);inset-inline-end:-10px;width:min(260px,70vw);box-sizing:border-box;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:.8rem;font-weight:400;line-height:1.9;box-shadow:0 5px 20px #0002}.trade-receipt-extra{padding-inline:16px}.trade-receipt-extra>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;padding-block:11px;color:var(--muted);font-size:.8rem;cursor:pointer}.trade-receipt-extra>summary:after{content:"+";font-size:1.2rem}.trade-receipt-extra[open]>summary:after{content:"−"}.trade-receipt-extra>summary::-webkit-details-marker{display:none}.trade-receipt-extra .trade-detail__audit{padding-bottom:14px}.trade-receipt-extra .trade-detail__audit li{gap:8px;font-size:.8rem}.trade-receipt-actions{display:grid;grid-gap:12px;gap:12px;padding-block:12px 4px}.trade-receipt-primary,.trade-receipt-secondary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;box-sizing:border-box;padding:10px 18px;border:1px solid transparent;border-radius:14px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.trade-receipt-primary{background:var(--receipt-green);color:#fff}.trade-receipt-primary:hover{background:var(--brand-green-deep)}.trade-receipt-secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.trade-receipt-actions button:disabled,.trade-receipt-menu button:disabled{cursor:wait;opacity:.55}.trade-receipt-review{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.trade-receipt-cancel{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:2px}.trade-receipt-cancel>button{min-height:40px;padding:6px;border:0;background:transparent;color:var(--danger);font:inherit;font-size:.9rem;cursor:pointer}.trade-receipt-cancel .trade-receipt-help>summary{color:var(--danger);width:23px;height:23px}.trade-receipt-cancel .trade-receipt-help p{top:auto;bottom:calc(100% + 8px)}.trade-receipt-menu{position:relative}.trade-receipt-menu>summary{display:grid;place-items:center;list-style:none;width:30px;height:36px;cursor:pointer;font-size:24px}.trade-receipt-menu>summary::-webkit-details-marker{display:none}.trade-receipt-menu>div{position:absolute;inset-inline-end:0;top:100%;z-index:10;display:grid;min-width:180px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 20px #0002}.trade-receipt-menu button{text-align:right;white-space:nowrap;background:transparent;border:0;border-radius:8px;color:var(--ink);padding:10px;min-height:44px;font:inherit;font-size:.82rem;cursor:pointer}.trade-receipt-menu button:hover{background:var(--bg)}.trade-receipt-screen :is(button,summary,a):focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px}@media (max-width:700px){.trade-record-modal:has(.trade-receipt-screen){width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.trade-receipt-topbar{padding:13px 14px;gap:8px}.trade-receipt-topbar h1{font-size:1rem}.trade-receipt-topbar__tools{gap:4px}.trade-receipt-brand{font-size:.86rem}.trade-receipt-content{padding:12px;gap:12px}.trade-receipt-hero{padding:20px 12px}.trade-receipt-hero h2{font-size:1.5rem}.trade-receipt-amount{margin-block:18px 14px}.trade-receipt-weight{font-size:.8rem;padding:7px 12px}.trade-receipt-facts{padding-inline:13px}.trade-receipt-row{font-size:.8rem;padding-block:12px;gap:10px}.trade-receipt-row time{font-size:.74rem}}@media print{.trade-receipt-actions,.trade-receipt-help,.trade-receipt-topbar__tools,.trade-receipt-tracking button{display:none}.trade-record-modal:has(.trade-receipt-screen){position:static;max-height:none;overflow:visible}.trade-receipt-topbar{position:static}}.trade-receipt-cancel,.trade-receipt-state{position:relative}.trade-receipt-cancel>.trade-receipt-help,.trade-receipt-state>.trade-receipt-help{position:static}.trade-receipt-cancel .trade-receipt-help p,.trade-receipt-state .trade-receipt-help p{inset-inline:0;width:auto}}body dialog.trade-record-modal--result{position:fixed;inset:auto 0 0;margin:0 auto;padding:0;width:min(100%,560px);max-width:none;max-height:calc(100dvh - 16px);border:1px solid var(--reference-line);border-bottom:0;border-radius:20px 20px 0 0;background:var(--surface);overscroll-behavior:contain}body dialog.trade-record-modal--result::-webkit-backdrop{background:rgb(31 35 38/22%)}body dialog.trade-record-modal--result::backdrop{background:rgb(31 35 38/22%)}.trade-record-modal--result[open]{animation:trade-result-enter .26s cubic-bezier(.2,.7,.3,1) both}@keyframes trade-result-enter{0%{transform:translateY(100%)}to{transform:translateY(0)}}.trade-result-sheet{padding:16px 23px max(28px,env(safe-area-inset-bottom));color:var(--ink)}.trade-result-sheet__header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:22px}.trade-result-sheet__header h1{margin:0;font-size:14px;font-weight:600}.trade-result-sheet__header button{display:grid;place-items:center;width:32px;height:44px;padding:0;border:0;background:none;cursor:pointer}.trade-result-sheet__rows{margin:0;padding:0 23px;border-radius:20px;background:rgb(5 73 113/5%)}.trade-result-sheet__rows .trade-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content);min-height:56px;grid-gap:8px;gap:8px;padding:12px 0;font-size:12px}.trade-result-sheet__rows .trade-receipt-row dd{max-width:min(50vw,270px);text-align:left;overflow-wrap:anywhere}.trade-result-sheet__rows .trade-receipt-row:last-child{min-height:75px;border-bottom:0}.trade-result-sheet__invoice,.trade-result-sheet__rows .trade-status{display:inline-grid;place-items:center;min-width:102px;min-height:26px;padding:2px 8px;border-radius:14px;font-size:11px;line-height:18px;text-align:center}.trade-result-sheet__rows .trade-status:before{display:none}.trade-result-sheet__invoice{border:1px solid var(--accent);background:var(--surface);color:var(--accent);text-decoration:none}.trade-result-sheet>.trade-receipt-cancel{margin-top:16px}.trade-result-sheet__dismiss{display:block;width:min(100%,266px);min-height:50px;margin:22px auto 0;border:0;border-radius:20px;background:rgb(5 73 113/5%);color:var(--ink);font:700 14px/20px var(--font-body);cursor:pointer}@media(max-width:359px){.trade-result-sheet{padding-inline:15px}.trade-result-sheet__rows{padding-inline:12px}}@media(prefers-reduced-motion:reduce){.trade-record-modal--result[open]{animation:none}}.trade-result-sheet--compact .trade-result-sheet__header button{width:44px;border-radius:14px;background:var(--accent-soft)}.trade-result-sheet--compact .trade-result-sheet__header button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.trade-result-sheet--compact .trade-result-sheet__header button:focus:not(:focus-visible){outline:none}.trade-result-sheet--compact .trade-result-sheet__header{margin-bottom:12px}.trade-result-sheet--compact .trade-result-sheet__rows .trade-receipt-row{min-height:39px;padding-block:8px}.trade-result-sheet--compact .trade-result-sheet__rows .trade-receipt-row:last-child{min-height:44px}.trade-result-sheet--compact .trade-result-sheet__dismiss{margin-top:12px;min-height:44px}body dialog.trade-record-modal:has(.purchase-receipt){width:min(100%,460px);max-height:100dvh;background:var(--bg)}@media (max-width:600px){body dialog.trade-record-modal:has(.purchase-receipt){inset:0;height:100dvh;border:0;border-radius:0}}.purchase-receipt{box-sizing:border-box;width:min(100%,460px);margin:0 auto;color:var(--ink);padding:max(16px,env(safe-area-inset-top)) 24px max(16px,env(safe-area-inset-bottom))}.purchase-receipt__header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;grid-gap:6px;gap:6px}.purchase-receipt__header h1{margin:0;text-align:center;font-size:12px;font-weight:500}.purchase-receipt__header :is(button,a){display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:14px;background:var(--accent-soft);color:var(--ink);font:inherit;font-size:23px;text-decoration:none;cursor:pointer}.purchase-receipt__header :is(button,a):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.purchase-receipt__hero{text-align:center;margin:clamp(12px,2.8dvh,26px) 0;font-size:12px}.purchase-receipt__hero p{margin:12px 0 2px}.purchase-receipt__check{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#a2d0ff;color:#1688fa;font-size:26px;font-weight:700}.purchase-receipt__card{padding:8px;border:1px solid var(--reference-line);border-radius:24px;background:var(--surface)}.purchase-receipt__card dl{margin:0 14px 8px}.purchase-receipt__card .trade-receipt-row{padding:8px 0;min-height:38px;font-size:12px}.purchase-receipt__card .trade-receipt-row dt{flex:0 1 auto}.purchase-receipt__action,.purchase-receipt__print{display:grid;place-items:center;width:100%;min-height:48px;padding:6px 10px;border:0;border-radius:18px;background:var(--accent);color:white;font:inherit;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}.purchase-receipt__actions{display:grid;grid-template-columns:2fr 1fr;grid-gap:6px;gap:6px}.purchase-receipt__print{background:var(--accent-soft);color:var(--accent)}@media print{.purchase-receipt__actions,.purchase-receipt__header :is(button,a){display:none}}.purchase-receipt__withdraw{display:block;margin-top:8px;text-align:center;color:var(--accent);font-size:12px}.purchase-receipt--figma{--receipt-top:env(safe-area-inset-top,0px);--receipt-bottom:env(safe-area-inset-bottom,0px);--receipt-unit:min(1px,calc((100dvh - var(--receipt-top) - var(--receipt-bottom)) / 806));--receipt-gutter:clamp(16px,5.825vw,24px);position:relative;width:min(100%,412px);min-height:calc(var(--receipt-top) + 806 * var(--receipt-unit) + var(--receipt-bottom));padding:0;background:#f9fafd;color:#1f2326}.purchase-receipt--figma .purchase-receipt__header{position:absolute;inset:calc(var(--receipt-top) + 23.59 * var(--receipt-unit)) var(--receipt-gutter) auto}.purchase-receipt--figma .purchase-receipt__header :is(button,a){background:rgb(12 78 112/5%)}.purchase-receipt--figma .purchase-receipt__header :is(button,a):focus-visible{outline-offset:-2px}.purchase-receipt--figma .purchase-receipt__hero{position:absolute;inset:calc(var(--receipt-top) + 77 * var(--receipt-unit)) var(--receipt-gutter) auto;margin:0;font-size:11px}.purchase-receipt--figma .purchase-receipt__emblem{display:block;width:calc(100 * var(--receipt-unit));height:calc(82 * var(--receipt-unit));margin:0 auto}.purchase-receipt--figma .purchase-receipt__hero p{margin:calc(25 * var(--receipt-unit)) 0 3px}.purchase-receipt--figma .purchase-receipt__hero strong{font-size:13px}.purchase-receipt--figma .purchase-receipt__hero small{color:var(--muted);font-size:10px;font-weight:400}.purchase-receipt--figma .purchase-receipt__card{position:absolute;inset:calc(var(--receipt-top) + 252.154 * var(--receipt-unit)) var(--receipt-gutter) auto;display:flex;flex-direction:column;box-sizing:border-box;height:calc(525.198 * var(--receipt-unit));padding:calc(16 * var(--receipt-unit)) 8.53px 8.53px;border:1px solid rgb(5 73 113/10%);border-radius:28px;background:white}.purchase-receipt--figma .purchase-receipt__card dl{display:flex;flex-direction:column;flex:1 1;min-height:0;margin:0 14.72px}.purchase-receipt--figma .purchase-receipt__card .trade-receipt-row{flex:0 0 auto;box-sizing:border-box;min-height:calc(40 * var(--receipt-unit));padding:2px 0;border:0;font-size:11px;line-height:1.35}.purchase-receipt--figma .trade-receipt-row dd{font-size:12px}.purchase-receipt--figma:not(.purchase-receipt--success) .trade-receipt-row:nth-child(5){margin-top:calc(8 * var(--receipt-unit));padding-top:calc(8 * var(--receipt-unit));border-top:1px solid rgb(31 35 38/10%)}.purchase-receipt--figma:not(.purchase-receipt--success) .trade-receipt-row:last-child{flex:1 1;border-top:1px solid rgb(31 35 38/10%);font-weight:700}.purchase-receipt--figma .purchase-receipt__action{display:flex;flex:none;align-items:center;justify-content:center;gap:6px;min-height:44px;height:calc(52 * var(--receipt-unit));border-radius:20px;background:#054971}.purchase-receipt--figma.purchase-receipt--success .purchase-receipt__card{inset-block-start:calc(var(--receipt-top) + 270 * var(--receipt-unit));height:calc(286 * var(--receipt-unit));padding-top:0}.purchase-receipt--figma.purchase-receipt--success .trade-receipt-row{min-height:calc(50 * var(--receipt-unit))}.purchase-receipt--figma.purchase-receipt--success .trade-receipt-row+.trade-receipt-row{border-top:1px solid rgb(31 35 38/10%)}.purchase-receipt--figma .purchase-receipt__feedback{position:absolute;inset:auto var(--receipt-gutter) max(8px,var(--receipt-bottom));margin:0;text-align:center;font-size:12px}@media (max-width:600px){body:has(.purchase-receipt--figma),html:has(.purchase-receipt--figma){overflow:hidden;overscroll-behavior:none}.trade-record-page:has(>.purchase-receipt--figma){position:fixed;inset:0;height:100dvh;z-index:40;padding:0;background:#f9fafd}body dialog.trade-record-modal:has(.purchase-receipt--figma){overflow:hidden}body dialog.trade-record-modal--result:has(.trade-result-sheet--compact){max-height:calc(100dvh - max(8px, env(safe-area-inset-top)));overscroll-behavior:contain}.trade-result-sheet--compact{padding-bottom:max(12px,env(safe-area-inset-bottom))}.purchase-receipt:not(.purchase-receipt--figma) .purchase-receipt__hero{margin-block:clamp(8px,1.7dvh,18px)}.purchase-receipt:not(.purchase-receipt--figma) .trade-receipt-row{min-height:clamp(30px,5dvh,38px);padding-block:5px}}@media (max-height:560px){.purchase-receipt--figma .purchase-receipt__card dl{margin-inline:8px}.purchase-receipt--figma .purchase-receipt__card .trade-receipt-row,.purchase-receipt--figma .trade-receipt-row dd{font-size:10px}}@media print{.trade-record-page:has(>.purchase-receipt--figma){position:static}.purchase-receipt--figma .purchase-receipt__action{display:none}}@media (max-width:600px){.purchase-receipt--figma[data-android-receipt]{--receipt-unit:1px;width:100%;min-height:calc(var(--receipt-top) + 806px + var(--receipt-bottom));padding:calc(var(--receipt-top) + 252.154px) var(--receipt-gutter) max(28px,var(--receipt-bottom))}.purchase-receipt--figma[data-android-receipt].purchase-receipt--success{min-height:100dvh;padding-top:calc(var(--receipt-top) + 270px)}.purchase-receipt--figma[data-android-receipt] .purchase-receipt__card{position:relative;inset:auto;height:auto;min-height:525.198px}.purchase-receipt--figma[data-android-receipt].purchase-receipt--success .purchase-receipt__card{inset:auto;height:auto;min-height:286px}.purchase-receipt--figma[data-android-receipt] .purchase-receipt__feedback{position:static;margin-top:8px}.trade-record-page:has(>.purchase-receipt--figma[data-android-receipt]),body dialog.trade-record-modal:has(.purchase-receipt--figma[data-android-receipt]){max-width:none;width:100%;overflow-y:auto;overscroll-behavior-y:contain}}