/* Salty terminal. Reuses the site tokens (brine, pink, tear) from ../style.css. */
:root {
  --up: #3ecf8e; --down: #ff6b81; --warn: #f5c04a;
  --panel: rgba(251, 253, 255, 0.04); --panel-2: rgba(251, 253, 255, 0.07);
  --muted: #9fb3c8; --hair: rgba(251, 253, 255, 0.09);
  --panes-h: 56px;
}
body.terminal { --tabs-h: var(--panes-h); background: radial-gradient(1200px 500px at 70% -10%, rgba(244, 163, 181, .10), transparent 60%), var(--brine-3); }
.terminal .num, .term b, .term em { font-variant-numeric: tabular-nums; font-style: normal; }
.up { color: var(--up); } .down { color: var(--down); }
.conn { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); margin-left: auto; white-space: nowrap; }
.conn[data-state="live"] { color: var(--up); } .conn[data-state="live"]::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 6px; box-shadow: 0 0 0 0 rgba(62, 207, 142, .6); animation: pulse 2s infinite; }
.conn[data-state="polling"] { color: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(62, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); } }
.bar .conn + .wallet { margin-left: 8px; }

.term { flex: 1; display: grid; gap: 10px; padding: 10px; min-height: 0; }
.col { min-width: 0; display: none; flex-direction: column; gap: 10px; }
.term[data-pane="markets"] .col-left, .term[data-pane="chart"] .col-mid, .term[data-pane="trade"] .col-right { display: flex; }

.panes { position: fixed; inset: auto 0 0 0; height: var(--panes-h); display: flex; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: rgba(10, 33, 48, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); z-index: 30; box-sizing: content-box; }
.panes button { flex: 1; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 700 14px var(--body); }
.panes button[aria-pressed="true"] { background: var(--pink); color: var(--brine); }

.panel, .col-left, .pair-head, .chart-wrap, .ppanel, .quote, .portfolio { border-radius: 16px; }
.col-left { background: var(--panel); border: 1px solid var(--hair); padding: 10px; }
.search-box { position: relative; }
.search-box input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--hair); background: var(--panel-2); color: var(--salt); padding: 0 14px; font: 600 15px var(--body); }
.search-box input:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.results { position: absolute; z-index: 25; left: 0; right: 0; top: 48px; background: #0f2f42; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.rs-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--salt); text-align: left; font: 600 14px var(--body); align-items: center; cursor: pointer; }
.rs-row:hover { background: var(--panel-2); } .rs-row span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk-tabs { display: flex; gap: 4px; margin: 10px 0 6px; background: var(--panel); padding: 4px; border-radius: 12px; }
.mk-tabs button { flex: 1; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 13px var(--body); padding: 8px 4px; cursor: pointer; }
.mk-tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--salt); box-shadow: inset 0 -2px 0 var(--pink); }
.mk-note { font-size: 12px; color: var(--muted); margin: 0 4px 8px; }
.mk-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; max-height: calc(100svh - 270px); overscroll-behavior: contain; }
.mk-row { display: grid; grid-template-columns: 22px 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.mk-row:hover { background: var(--panel); } .mk-row.sel { background: var(--panel-2); border-color: rgba(244, 163, 181, .35); }
.mk-row:focus-visible { outline: 2px solid var(--pink); }
.mk-skel { height: 48px; background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: sh 1.4s infinite; border: 0; }
@keyframes sh { to { background-position: -200% 0; } }
.mk-star { border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0; } .mk-star.on { color: var(--warn); }
.mk-ico { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--brine-2); }
.mk-ico-fb { display: grid; place-items: center; font-weight: 800; color: var(--pink); }
.mk-id, .mk-px { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mk-px { text-align: right; } .mk-id b, .mk-px b { font-size: 14px; } .mk-id span, .mk-px span { font-size: 12px; color: var(--muted); }
.mk-px span.up { color: var(--up); } .mk-px span.down { color: var(--down); }
.mk-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-empty { padding: 18px 10px; color: var(--muted); font-size: 14px; text-align: center; }

.pair-head { background: var(--panel); border: 1px solid var(--hair); padding: 14px; display: grid; gap: 12px; }
.pr-name { display: flex; align-items: center; gap: 12px; } .pr-name > div { display: flex; flex-direction: column; line-height: 1.25; }
.pr-name b { font-size: 20px; } .pr-sub { color: var(--muted); font-size: 13px; }
.pr-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--brine-2); } .pr-ico-fb { display: grid; place-items: center; font-weight: 800; color: var(--pink); }
.pr-copy { border: 0; background: transparent; color: var(--tear); font: 600 12px var(--body); padding: 0; text-align: left; cursor: pointer; }
.pr-star { margin-left: auto; border: 0; background: var(--panel-2); color: var(--muted); border-radius: 10px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; } .pr-star.on { color: var(--warn); }
.pr-px { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pr-price { font: 800 32px var(--body); letter-spacing: -.01em; } .pr-change { font-weight: 700; font-size: 15px; }
.flash-up { animation: fu .7s; } .flash-down { animation: fd .7s; }
@keyframes fu { from { color: var(--up); text-shadow: 0 0 16px rgba(62, 207, 142, .8); } } @keyframes fd { from { color: var(--down); text-shadow: 0 0 16px rgba(255, 107, 129, .8); } }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.st { background: var(--panel); border: 1px solid var(--hair); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.st span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .st b { font-size: 15px; }
.pr-risk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--hair); }
.pr-risk.lvl-low { border-color: rgba(62, 207, 142, .35); } .pr-risk.lvl-medium { border-color: rgba(245, 192, 74, .45); } .pr-risk.lvl-high { border-color: rgba(255, 107, 129, .55); }
.flag { padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel-2); }
.flag.ok { color: var(--up); } .flag.warn { color: var(--warn); } .flag.bad { color: var(--down); }

.chart-bar { display: flex; justify-content: space-between; gap: 8px; }
.seg { display: flex; gap: 2px; background: var(--panel); padding: 3px; border-radius: 10px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 700 12px var(--body); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--salt); }
.chart { height: min(46svh, 420px); min-height: 260px; background: var(--panel); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; position: relative; }
.chart.loading::after { content: 'Loading chart'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.chart[data-err="1"]::after { content: 'Chart could not load, retrying on the next token.'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.ptabs { display: flex; gap: 4px; } .ptabs button { border: 0; background: var(--panel); color: var(--muted); font: 700 13px var(--body); padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.ptabs button[aria-selected="true"] { background: var(--panel-2); color: var(--salt); box-shadow: inset 0 -2px 0 var(--pink); }
.ppanel { background: var(--panel); border: 1px solid var(--hair); padding: 6px; max-height: 360px; overflow-y: auto; }
.tp-row { display: grid; grid-template-columns: 44px 48px 78px 1fr 1fr; gap: 8px; padding: 7px 8px; font-size: 13px; border-radius: 8px; color: var(--salt); text-decoration: none; }
a.tp-row:hover { background: var(--panel-2); } .tp-row.buy b { color: var(--up); } .tp-row.sell b { color: var(--down); }
.tp-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: #0d2b3d; }
.tp-row.hd { grid-template-columns: 30px 1fr 74px 74px 60px; }
.in-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 8px; border-bottom: 1px solid var(--hair); font-size: 14px; } .in-row span { color: var(--muted); }
.in-row a, .in-row b { color: var(--tear); text-align: right; overflow-wrap: anywhere; } .in-row b { color: var(--salt); }
.in-desc { margin: 6px 8px 10px; color: var(--muted); line-height: 1.5; }

.quote { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--hair); padding: 14px; display: grid; gap: 10px; }
.qt-side { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel); padding: 4px; border-radius: 12px; }
.qt-side button { border: 0; border-radius: 9px; padding: 10px; background: transparent; color: var(--muted); font: 800 15px var(--body); cursor: pointer; }
.qt-side button[aria-selected="true"][data-side="buy"] { background: var(--up); color: #06281a; } .qt-side button[aria-selected="true"][data-side="sell"] { background: var(--down); color: #330710; }
.qt-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.qt-field { display: flex; align-items: center; background: var(--brine-3); border: 1px solid var(--hair); border-radius: 14px; padding: 0 14px; } .qt-field:focus-within { outline: 2px solid var(--pink); }
.qt-input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--salt); font: 800 24px var(--body); outline: 0; }
.qt-unit { font-weight: 800; color: var(--pink); }
.qt-bal { border: 0; background: transparent; color: var(--tear); font: 600 13px var(--body); padding: 0; cursor: pointer; text-align: left; } .qt-bal:disabled { color: var(--muted); cursor: default; }
.qt-chips, .qt-slip { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .qt-slip span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.qt-chips button, .qt-slip button { border: 1px solid var(--hair); background: var(--panel); color: var(--salt); border-radius: 99px; padding: 6px 12px; font: 700 13px var(--body); cursor: pointer; }
.qt-chips button:disabled { opacity: .4; cursor: default; } .qt-slip button[aria-pressed="true"] { background: var(--pink); color: var(--brine); border-color: transparent; }
.qt-out { display: grid; gap: 6px; background: var(--panel); border-radius: 14px; padding: 12px; }
.qt-big { display: grid; gap: 2px; } .qt-big span { font-size: 12px; color: var(--muted); } .qt-big b { font-size: 24px; } .qt-big em { color: var(--muted); font-size: 14px; }
.qt-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .qt-line span { color: var(--muted); } .qt-line b.ok { color: var(--up); } .qt-line b.warn { color: var(--warn); } .qt-line b.bad { color: var(--down); }
.qt-age { font-size: 11px; color: var(--muted); text-align: right; } .qt-hint { font-size: 13px; color: var(--muted); } .qt-hint.bad { color: var(--warn); }
.qt-warn { padding: 10px 12px; border-radius: 12px; background: rgba(245, 192, 74, .12); color: var(--warn); font-size: 13px; font-weight: 600; }
.qt-go { height: 54px; border: 0; border-radius: 14px; font: 800 16px var(--body); background: var(--panel-2); color: var(--muted); cursor: default; }
.qt-go.ready, .qt-go:not(:disabled) { background: linear-gradient(180deg, var(--pink), var(--pink-deep)); color: #2a0b16; cursor: pointer; } .qt-go:disabled { background: var(--panel-2); color: var(--muted); cursor: default; }
.qt-note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.portfolio { background: var(--panel); border: 1px solid var(--hair); padding: 12px; }
.pf-title { margin: 0 0 8px; font: 800 14px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pf-total { display: flex; justify-content: space-between; padding: 6px 4px 10px; } .pf-total b { font-size: 18px; }
.pf-row { display: grid; grid-template-columns: 1fr 70px 70px 76px; gap: 6px; width: 100%; border: 0; background: transparent; color: var(--salt); padding: 8px 4px; border-radius: 8px; font: 600 13px var(--body); text-align: right; cursor: pointer; } .pf-row b { text-align: left; } .pf-row:hover { background: var(--panel-2); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--panes-h) + 24px); background: #0f2f42; border: 1px solid var(--hair); padding: 12px 16px; border-radius: 12px; z-index: 50; font-weight: 600; }

@media (max-width: 1099px) { .toptabs { display: none; } .pr-price { font-size: 28px; } }
@media (max-width: 520px) { .tp-row { grid-template-columns: 38px 40px 70px 1fr; } .tp-row > :last-child { display: none; } .conn { display: none; } }

/* phones */
body.terminal { max-width: 100vw; overflow-x: hidden; }
.term, .col { max-width: 100%; }
@media (max-width: 520px) {
  .term { padding: 8px; }
  .pair-head { padding: 12px; gap: 10px; }
  .pr-stats { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -2px; padding: 0 2px; }
  .pr-stats::-webkit-scrollbar { display: none; }
  .st { flex: 0 0 auto; min-width: 96px; }
  .chart-bar { flex-wrap: wrap; }
  .seg button { padding: 6px 9px; }
  .chart { min-height: 300px; }
  .qt-input { font-size: 22px; }
}

.chart { touch-action: pan-y; }
.chart.unlocked { touch-action: none; outline: 1px solid rgba(244, 163, 181, .45); }
#mv button[aria-pressed="true"] { background: var(--pink); color: var(--brine); }

/* ---- layout by width ---------------------------------------------------------------------- */
.markets { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.mk-list { flex: 1; min-height: 0; }
.portfolio { min-height: 120px; }

/* tablets: markets stay on the left, chart and trade switch on the right */
@media (min-width: 760px) and (max-width: 1099px) {
  .term { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); flex: 0 0 auto; height: calc(100svh - var(--bar-h) - var(--panes-h) - 16px); min-height: 0; overflow: hidden; padding: 10px; }
  .col-left { display: flex !important; height: 100%; min-height: 0; }
  .term[data-pane="markets"] .col-mid, .term[data-pane="chart"] .col-mid { display: flex; }
  .term[data-pane="markets"] .col-right, .term[data-pane="chart"] .col-right { display: none; }
  .term[data-pane="trade"] .col-mid { display: none; }
  .term[data-pane="trade"] .col-right { display: flex; }
  .col-mid, .col-right { height: 100%; min-height: 0; overflow-y: auto; }
  .panes button[data-pane="markets"] { display: none; }
  .mk-list { max-height: none; }
  .chart { height: min(44svh, 460px); }
}

/* laptops and up: three full height columns, each scrolls on its own */
@media (min-width: 1100px) {
  body.terminal { --tabs-h: 0px; height: 100svh; overflow: hidden; }
  .panes { display: none; }
  .term { grid-template-columns: 300px minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); padding: 12px var(--gutter); max-width: 1680px; margin: 0 auto; width: 100%; min-height: 0; overflow: hidden; }
  .col, .term[data-pane] .col { display: flex; height: 100%; min-height: 0; }
  .col-left { overflow: hidden; }
  .col-mid { overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
  .col-right { overflow-y: auto; scrollbar-width: thin; }
  .mk-list { max-height: none; }
  .chart { flex: 0 0 auto; height: clamp(280px, 36svh, 480px); }
  .ppanel { flex: 1 0 240px; max-height: none; }
  .portfolio { flex: 1 1 auto; overflow-y: auto; }
  .quote { flex: 0 0 auto; }
}
@media (min-width: 1700px) { .term { grid-template-columns: 340px minmax(0, 1fr) 400px; } }

/* compact stats and the collapsible risk read */
.st { padding: 6px 9px; } .st b { font-size: 14px; } .pr-stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.pr-risk { display: block; padding: 0; } .pr-risk summary { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.pr-risk summary::-webkit-details-marker { display: none; } .pr-risk summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.pr-risk:not([open]) summary::after { transform: rotate(-90deg); } .rk-count { color: var(--muted); font-size: 12px; }
.rk-flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }

/* sticky buy and sell on phones */
.actbar { display: none; }
@media (max-width: 759px) {
  .actbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(var(--panes-h) + 16px + env(safe-area-inset-bottom)); padding: 8px 12px; z-index: 29; background: linear-gradient(180deg, rgba(10, 33, 48, 0), rgba(10, 33, 48, .96) 38%); pointer-events: none; }
  .actbar button { pointer-events: auto; flex: 1; height: 50px; border-radius: 14px; font: 800 16px var(--body); cursor: pointer; border: 1px solid transparent; }
  .act-buy { background: var(--up); color: #06281a; }
  .act-sell { background: rgba(10, 33, 48, .92); color: var(--down); border-color: var(--down) !important; }
  body.pane-trade .actbar { display: none; }
  .term { padding-bottom: calc(var(--panes-h) + 84px); }
  body.pane-trade .term { padding-bottom: calc(var(--panes-h) + 16px); }
}

/* never let a panel push the page wider than the screen */
.col-right, .quote, .portfolio, .qt-field, .qt-out { min-width: 0; max-width: 100%; }
.quote { box-sizing: border-box; width: 100%; overflow-wrap: anywhere; }
.qt-note { padding: 0 2px; }

/* preview inside the home page: no site header or phone bars */
body.embed .bar, body.embed .panes, body.embed .actbar, body.embed .toast { display: none !important; }
body.embed.terminal { --bar-h: 0px; --tabs-h: 0px; height: 100svh; overflow: hidden; }

.qt-usd { min-height: 18px; margin: -4px 4px 0; font-size: 13px; color: var(--muted); }

/* the buy and sell ticket, in Salty's voice */
.qt-hero { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 2px 2px; }
.qt-mascot { width: 64px; height: 64px; flex: none; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); animation: bob 5s ease-in-out infinite; }
.qt-hero-txt { min-width: 0; }
.qt-title { margin: 0; font: 400 28px/1 var(--display); transform: rotate(-2deg); transform-origin: left bottom; text-shadow: 0 3px 0 var(--pink-deep); color: var(--salt); overflow-wrap: anywhere; }
.qt-tag { margin: 8px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.qt-close { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--salt); font: 400 24px/1 var(--body); cursor: pointer; }
.qt-hero.sell .qt-mascot { animation: bob 5s ease-in-out infinite, shake 2.4s ease-in-out infinite; }
.qt-hero.sell::after { content: ''; position: absolute; left: 38px; top: 38px; width: 6px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--tear); opacity: 0; animation: drip 2.2s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes shake { 0%, 90%, 100% { rotate: 0deg; } 93% { rotate: -3deg; } 96% { rotate: 3deg; } }
.quote { background: linear-gradient(180deg, rgba(244, 163, 181, .10), var(--panel) 42%); }
.qt-go.ready, .qt-go:not(:disabled) { box-shadow: 0 5px 0 var(--pink-deep); }
.qt-go.ready:active, .qt-go:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep); }
.sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(4, 16, 24, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* phones: the ticket is a bottom sheet, with Salty peeking over the top edge */
@media (max-width: 759px) {
  body.sheet-open { overflow: hidden; }
  body.sheet-open .col-right { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: linear-gradient(180deg, #17445b, var(--brine-2) 30%); border-top: 1px solid rgba(251, 253, 255, .16); box-shadow: 0 -24px 60px rgba(0, 0, 0, .5); animation: sheetup .3s cubic-bezier(.2, .8, .2, 1); }
  body.sheet-open .col-right::before { content: ''; display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 99px; background: rgba(251, 253, 255, .25); flex: none; }
  body.sheet-open .quote { border: 0; background: transparent; padding: 38px 0 4px; }
  body.sheet-open .qt-hero { padding-top: 0; }
  body.sheet-open .qt-mascot { position: absolute; right: 6px; top: -46px; width: 88px; height: 88px; }
  body.sheet-open .qt-hero.sell::after { left: auto; right: 62px; top: -8px; }
  body.sheet-open .qt-close { display: block; position: absolute; right: 0; top: -34px; background: rgba(10, 33, 48, .8); z-index: 2; }
  body.sheet-open .qt-mascot { right: 44px; }
  body.sheet-open .portfolio, body.sheet-open .actbar, body.sheet-open .panes { display: none; }
}
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .qt-mascot, .qt-hero.sell .qt-mascot { animation: none; } .qt-hero.sell::after { display: none; } body.sheet-open .col-right { animation: none; } }

/* salty tears */
.tears { background: var(--panel); border: 1px solid var(--hair); border-radius: 16px; padding: 12px; min-width: 0; }
.ts-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ts-row { display: flex; gap: 8px; }
.ts-input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--hair); background: var(--panel-2); color: var(--salt); padding: 0 12px; font: 600 14px var(--body); }
.ts-input:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.ts-go, .ts-share, .ts-x { height: 42px; border: 0; border-radius: 12px; padding: 0 16px; font: 800 14px var(--body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ts-go, .ts-share { background: var(--pink); color: var(--brine); box-shadow: 0 4px 0 var(--pink-deep); } .ts-x { background: var(--panel-2); color: var(--salt); }
.ts-out { margin-top: 10px; display: grid; gap: 10px; }
.ts-card { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(76, 195, 240, .12), var(--panel-2)); }
.ts-big { font: 800 34px/1 var(--body); } .ts-card > span { color: var(--muted); font-size: 13px; }
.ts-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .ts-line span { color: var(--muted); }
.ts-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1100px) { .tears { flex: 0 0 auto; } }
