[hidden] { display: none !important; }
:root {
  --bg: #16181d;
  --bg2: #1b1e24;
  --bg3: #22252c;
  --bg4: #2a2e36;
  --line: #2b2f37;
  --line2: #363b45;
  --tx: #e8eaee;
  --tx2: #a7adb8;
  --mut: #737a87;
  --link: #3d9df5;
  --acc: #38d27a;
  --acc-dim: #1f3a2b;
  --acc-line: #2f6b47;
  --gold: #e8b931;
  --red: #f05d5d;
  --hl: #2b2f38;
  --r: 6px;
  --panel-w: 600px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--tx);
  font: 500 14px/1.4 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
::selection { background: var(--acc); color: #06110b; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #30343d; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
input { caret-color: var(--acc); accent-color: var(--acc); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
.grow { flex: 1; }

#app { display: grid; grid-template-rows: 52px 1fr 34px; height: 100vh; }

/* top bar */
.topbar { display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); gap: 8px; }
.brand { display: flex; align-items: baseline; gap: 1px; text-decoration: none; color: var(--tx); width: 180px; }
.brand-67 { font: 400 24px/1 Anton, Impact, sans-serif; color: var(--acc); letter-spacing: .5px; transform: skewX(-8deg); display: inline-block; }
.brand-word { font-weight: 800; font-size: 15px; letter-spacing: -.2px; }
.top-center { flex: 1; display: flex; justify-content: center; gap: 8px; align-items: center; }
.top-right { width: 180px; display: flex; justify-content: flex-end; }
.paper-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--gold); border: 1px solid #5a4a1a; background: #2a2411; padding: 3px 7px; border-radius: 4px; cursor: help; }
.tb { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--tx); white-space: nowrap; }
.tb:hover { background: var(--bg3); }
.tb.icon { padding: 0 10px; }
.tb.on { border-color: var(--acc-line); color: var(--acc); background: var(--acc-dim); }
.sitechat { display: inline-flex; align-items: center; gap: 8px; height: 32px; width: 164px; padding: 0 10px; border: 1.5px solid #5865f2; border-radius: var(--r); background: #191b26; color: var(--mut); cursor: text; }
.sitechat input { border: 0; background: none; outline: 0; width: 100%; color: var(--tx); font-size: 14px; }
.sitechat input::placeholder { color: var(--tx2); text-align: center; }

/* layout */
.main { display: grid; grid-template-columns: var(--panel-w) 1fr; min-height: 0; }
.main.flip { grid-template-columns: 1fr var(--panel-w); }
.main.flip .panel { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.main.nopanel { grid-template-columns: 1fr; }
.main.nopanel .panel { display: none; }

/* deploy panel */
.panel { border-right: 1px solid var(--line); overflow-y: auto; padding: 0 6px 16px; background: var(--bg); }
.ph { display: flex; align-items: center; gap: 4px; height: 38px; border-bottom: 1px solid var(--line); margin: 0 -6px 6px; padding: 0 6px; }
.ph-title { font-weight: 700; font-size: 14px; margin-right: 4px; }
.ib { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; color: var(--tx2); border: 1px solid transparent; }
.ib:hover { background: var(--bg3); color: var(--tx); }
.ib.sm { width: 22px; height: 22px; }
.ib.sm svg { width: 13px; height: 13px; }
.ph .ib { border-color: var(--line); background: var(--bg2); }
.ph .ib.on { color: var(--gold); border-color: #5a4a1a; }
.wallet { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border: 1px solid var(--line); background: var(--bg2); border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--tx2); }
.wallet svg { width: 13px; height: 13px; }
.eq { color: #8a7cf6; font-weight: 800; }
.wallet #walletBal { color: var(--tx); }

.field-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 6px; font-size: 12px; font-weight: 600; color: var(--tx2); letter-spacing: .02em; min-height: 18px; }
.field-head label { color: var(--tx2); }
.count { color: var(--mut); font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--bg3); border: 1px solid var(--line2); color: var(--tx2); }
.chip svg { width: 11px; height: 11px; }
.ck { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--tx2); cursor: pointer; }
.ck input { width: 12px; height: 12px; margin: 0; accent-color: #4f8ff7; }
.presets { position: relative; }
.menu { position: absolute; top: 22px; left: 0; z-index: 20; min-width: 200px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 6px; padding: 4px; display: none; box-shadow: 0 10px 30px #0008; }
.menu.open { display: block; }
.menu button { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 4px; font-size: 12px; text-align: left; color: var(--tx); }
.menu button:hover { background: var(--bg3); }
.menu button span { color: var(--mut); }
.menu .none { padding: 6px 8px; color: var(--mut); font-size: 12px; }

.inp-wrap { position: relative; }
.inp { width: 100%; height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); padding: 0 12px; font-size: 15px; color: var(--tx); outline: 0; font-weight: 500; }
.inp:focus { border-color: #4b5262; }
.inp::placeholder { color: var(--mut); }
.inp-wrap .inp { padding-right: 52px; }
.lang { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--mut); display: flex; gap: 4px; align-items: center; }
.lang svg { width: 11px; height: 11px; }
.inp.flash { animation: flash .5s; }
@keyframes flash { from { border-color: var(--acc); box-shadow: 0 0 0 2px #38d27a33; } }
.row2 { display: grid; grid-template-columns: 210px 1fr; gap: 8px; }
.tw-row { display: flex; gap: 4px; }
.xpost { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 9px; border-radius: var(--r); background: var(--bg3); border: 1px solid var(--line2); font-size: 11px; font-weight: 700; }
.xpost svg { width: 12px; height: 12px; }
.selimg-label { text-align: center; font-weight: 600; font-size: 13px; margin: 10px 0 8px; color: var(--tx); }
.imgsel { display: flex; align-items: center; gap: 12px; }
.imgbox { position: relative; width: 74px; height: 74px; border-radius: 6px; background: #101216; border: 1px dashed var(--line2); display: grid; place-items: center; overflow: hidden; }
.imgbox .plus { font-size: 26px; font-weight: 300; color: var(--tx2); }
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.imgbox.has img { display: block; }
.imgbox.has { border-style: solid; border-color: var(--acc-line); }
.imgbox.drag { border-color: var(--acc); background: var(--acc-dim); }
.imgmeta { font-size: 11px; color: var(--tx2); }
.tools { display: flex; gap: 6px; margin: 14px 0 12px; align-items: center; }
.ib.lg { width: 32px; height: 32px; border: 1px solid var(--line2); background: var(--bg2); color: var(--tx); }
.ib.lg b { font-size: 9px; margin-left: 1px; }
#btnAI { width: 38px; display: inline-flex; gap: 2px; }
#btnAI svg { width: 14px; height: 14px; }
.panelbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--acc-line); background: var(--acc-dim); color: var(--tx); font-weight: 600; }
.panelbtn .ext { width: 13px; height: 13px; color: var(--acc); margin-left: 4px; }

.pads { display: grid; grid-template-columns: 1fr 1fr 30px; grid-template-rows: 29px 29px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pad { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tx2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.pad:nth-child(3), .pad:nth-child(4) { border-bottom: 0; }
.pad.on { background: #24543a; color: #9cf2bf; box-shadow: inset 0 0 0 1px var(--acc-line); }
.pad svg { width: 13px; height: 13px; }
.pad .g { color: var(--acc); } .pad .y { color: var(--gold); }
.dot.stonk { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5ad1ff, #1a6aa8); }
.pad-gear { grid-column: 3; grid-row: 1 / 3; width: 100%; height: 100%; border-radius: 0; background: var(--bg2); }

.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.opt { display: flex; height: 38px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg2); overflow: hidden; }
.optb { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.optb svg { width: 14px; height: 14px; color: var(--tx2); }
.optb .eq + * { margin-left: -2px; }
.opt .box { width: 30px; display: grid; place-items: center; }
.opt .box::after { content: ""; width: 12px; height: 12px; border: 1.5px dashed #59606d; border-radius: 2px; }
.opt.on { border-color: var(--acc-line); }
.opt.on .box::after { border: 0; background: var(--acc); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; width: 14px; height: 14px; }
.opt.on .optb { color: var(--acc); }

.amts { display: grid; grid-template-columns: repeat(5, 1fr) 36px; gap: 6px; margin-bottom: 10px; }
.amt { height: 34px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg2); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.amt.on { border-color: #6656d6; background: #241f43; }
.amt-edit { width: 36px; height: 34px; border: 1px solid var(--line); background: var(--bg2); }
.amt-edit svg { width: 13px; height: 13px; }
.deployrow { display: grid; grid-template-columns: 34px 34px 34px 1fr 42px; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ib.dl { width: 100%; height: 34px; border: 1px solid var(--line); background: var(--bg2); }
.ib.dl.on { color: var(--acc); border-color: var(--acc-line); }
.count-b { font-size: 12px; font-weight: 700; color: var(--tx2); }
.deploy { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 5px; border: 1px solid var(--line); background: var(--bg2); color: var(--mut); font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.deploy svg { width: 14px; height: 14px; }
.deploy .k { font-size: 11px; color: var(--mut); font-weight: 500; }
.deploy.ready { background: var(--acc); color: #04140b; border-color: var(--acc); }
.deploy.ready .eq, .deploy.ready .k { color: #0d3a22; }
.deploy.ready:hover { filter: brightness(1.08); }
.deploy.sm { padding: 0 16px; }
.imgsearch { display: flex; align-items: center; gap: 8px; margin-top: 12px; height: 32px; border: 1px solid var(--line); border-radius: 5px; padding: 0 4px 0 10px; color: var(--tx2); background: var(--bg2); }
.imgsearch svg { width: 13px; height: 13px; }
.imgsearch input { flex: 1; border: 0; background: none; outline: 0; font-size: 13px; color: var(--tx); }
.imgresults { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
.imgresults button { aspect-ratio: 1; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.imgresults button:hover { border-color: var(--acc); }
.imgresults img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* feed */
.feedwrap { position: relative; overflow-y: auto; min-width: 0; }
.feed { padding: 6px 8px 40px; display: flex; flex-direction: column; gap: 6px; }
.newpill { position: sticky; top: 8px; z-index: 5; margin: 8px auto -36px; width: max-content; padding: 6px 14px; border-radius: 99px; background: var(--link); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: 0 6px 20px #0009; }
.card { display: grid; grid-template-columns: 1fr 210px; border: 1px solid var(--line); background: var(--bg2); border-radius: 6px; position: relative; }
.card.fresh { animation: drop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; background: #23302a; } }
.card.sel { border-color: var(--acc-line); box-shadow: inset 3px 0 0 var(--acc); }
.card.nosugg { grid-template-columns: 1fr 210px; }
.cbody { padding: 12px 14px 12px 18px; min-width: 0; cursor: pointer; }
.cside { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.cside-top { display: grid; grid-template-columns: 56px 1fr; height: 52px; border-bottom: 1px solid var(--line); }
.cside-top button { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--tx); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.cside-top button:first-child { border-right: 1px solid var(--line); color: var(--tx2); }
.cside-top button:hover { background: var(--bg3); }
.cside-top .dep:hover { color: var(--acc); }
.cside .side-sugg { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.uhead { display: flex; gap: 10px; align-items: center; }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bg4); flex: none; }
.av.sm { width: 18px; height: 18px; }
.av.xs { width: 16px; height: 16px; }
.uname { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px; }
.uname .t { color: var(--mut); font-weight: 400; font-size: 12px; margin-left: 6px; }
.umeta { color: var(--mut); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.umeta .fol { color: var(--tx2); display: inline-flex; gap: 3px; align-items: center; }
.umeta .fol svg { width: 12px; height: 12px; }
.badge-v { width: 17px; height: 17px; flex: none; }
.badge-v.blue { color: #1d9bf0; } .badge-v.gold { color: var(--gold); } .badge-v.grey { color: #8b98a5; }
.rel { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13.5px; margin: 14px 0 10px; }
.rel svg { width: 14px; height: 14px; }
.rel .acts { display: inline-flex; gap: 14px; margin-left: 10px; color: var(--mut); }
.rel .acts button:hover { color: var(--tx); }
.og { color: var(--acc); font-weight: 800; font-size: 12px; letter-spacing: .03em; }
.og.rt { color: var(--link); }
.txt { font-size: 16px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.txt .m { color: var(--link); }
.txt .h { background: var(--hl); border: 1px solid #3d424d; border-radius: 4px; padding: 0 5px; cursor: pointer; font-weight: 600; }
.txt .h:hover { border-color: var(--acc); color: var(--acc); }
.nest { margin-top: 12px; border-left: 2px solid #3b404b; padding-left: 12px; }
.nest .nest { border: 1px solid #343944; border-radius: 4px; padding: 8px 10px; margin-top: 10px; background: #1d2026; }
.nest .uline { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; }
.nest .nest .uline { font-size: 13px; }
.nest .uline .hd { color: var(--mut); font-weight: 400; font-size: 13px; }
.nest .uline svg.scan { width: 13px; height: 13px; color: var(--mut); }
.nest .txt { font-size: 16px; margin-top: 4px; }
.nest .nest .txt { font-size: 15px; }
.showthread { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--link); font-weight: 600; font-size: 12px; border: 1px solid #343944; border-radius: 4px; padding: 3px 8px; }
.showthread svg { width: 12px; height: 12px; }
.media { margin-top: 10px; max-width: 540px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #0e0f12; position: relative; }
.media img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.media.meme .cap { position: absolute; left: 4%; right: 4%; text-align: center; font: 400 clamp(18px, 3.2vw, 34px)/1.05 Anton, Impact, sans-serif; color: #fff; text-transform: uppercase; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; letter-spacing: .02em; }
.media.meme .cap.t { top: 3%; } .media.meme .cap.b { bottom: 4%; }
.media .aitag { position: absolute; right: 8px; bottom: 8px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #000a; color: #ddd; }

/* suggestions */
.sugg { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.sugg-h { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--tx2); letter-spacing: .06em; padding: 4px 0; border-bottom: 1px solid var(--line); }
.sugg-h button:hover { color: var(--tx); }
.sugg-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sc { display: grid; grid-template-columns: 56px 1fr 28px; height: 62px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sc:nth-child(3n) { border-right: 0; }
.sc img { width: 56px; height: 61px; object-fit: cover; }
.sc .nm { padding: 0 10px; display: flex; flex-direction: column; justify-content: center; min-width: 0; cursor: pointer; }
.sc .nm:hover { background: var(--bg3); }
.sc .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .nm span { font-size: 13px; color: var(--tx2); }
.sc .nt { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--line); }
.sc .nt button { font-size: 10px; font-weight: 700; color: var(--mut); }
.sc .nt button:hover { color: var(--acc); background: var(--bg3); }
.sc .nt button:first-child { border-bottom: 1px solid var(--line); }
.side-sugg .sc { grid-template-columns: 52px 1fr 14px 22px; height: 58px; border: 1px solid var(--line); border-radius: 3px; }
.side-sugg .sc img { width: 52px; height: 56px; }
.side-sugg .sc .nm { padding: 0 8px; }
.side-sugg .sc .nm b { font-size: 13px; } .side-sugg .sc .nm span { font-size: 12px; }
.side-sugg .spcx { writing-mode: vertical-rl; font-size: 7.5px; font-weight: 800; color: var(--mut); text-align: center; letter-spacing: 1px; border-left: 1px solid var(--line); }
.cside .sugg-h { border-top: 0; margin: 6px 6px 0; border: 1px solid var(--line); border-radius: 3px; }

/* status bar */
.statusbar { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12.5px; color: var(--tx2); }
.conn { display: inline-flex; align-items: center; gap: 6px; padding-right: 12px; border-right: 1px solid var(--line); margin-right: 4px; font-weight: 600; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.conn.paused .cdot { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.sb { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 4px; color: var(--tx2); font-weight: 600; border-right: 1px solid var(--line); border-radius: 0; }
.sb:hover { color: var(--tx); }
.sb svg { width: 13px; height: 13px; }
.sb.icon { border: 0; }
.pfee { font-size: 10px; background: #26306a; color: #9db0ff; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.region b { color: var(--tx); font-weight: 800; }
.region .ms { color: var(--acc); font-size: 10.5px; }
.badge { font-size: 10px; background: var(--acc); color: #04140b; border-radius: 9px; padding: 0 5px; font-weight: 800; }
.feedstat { color: var(--mut); font-size: 11px; margin-right: 10px; font-variant-numeric: tabular-nums; }

/* overlays */
.scrim { position: fixed; inset: 0; background: #0009; z-index: 40; }
.modal { position: fixed; z-index: 50; left: 50%; top: 14vh; transform: translateX(-50%); width: min(460px, 94vw); background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 20px 60px #000a; }
.drawer { position: fixed; z-index: 50; right: 0; top: 52px; bottom: 34px; width: min(400px, 96vw); background: var(--bg2); border-left: 1px solid var(--line2); display: flex; flex-direction: column; box-shadow: -20px 0 50px #0008; }
.mh { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mb { padding: 12px; overflow-y: auto; }
.drawer .mb { flex: 1; }
.mf { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.srow { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--tx); }
.srow.col { flex-direction: column; align-items: flex-start; }
.srow input[type=range] { flex: 1; }
.srow select, .srow input:not([type]) { margin-left: auto; background: var(--bg); border: 1px solid var(--line2); border-radius: 5px; padding: 5px 8px; color: var(--tx); }
.note { font-size: 12px; color: var(--tx2); background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; }
.mutes { display: flex; flex-wrap: wrap; gap: 6px; }
.mutes button { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: var(--bg3); border: 1px solid var(--line2); }
.muted-none, .empty { color: var(--mut); font-size: 12px; }
.hist { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hist img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.hist b { display: block; } .hist small { color: var(--mut); font-size: 11px; font-family: ui-monospace, Consolas, monospace; }
.hist .st { font-size: 10px; font-weight: 800; color: var(--gold); }
.cf { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.cf img { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; background: var(--bg); }
.cf dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13px; }
.cf dt { color: var(--mut); } .cf dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatlog { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.chatlog .cm b { color: var(--link); margin-right: 6px; }
.chatlog .cm.me b { color: var(--acc); }
.chatform { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chatform input { flex: 1; background: var(--bg); border: 1px solid var(--line2); border-radius: 5px; padding: 0 10px; color: var(--tx); outline: 0; }
.termlog { margin: 0; font: 12px/1.5 ui-monospace, Consolas, monospace; color: #9cf2bf; background: #0c0d10; white-space: pre-wrap; }
.toasts { position: fixed; z-index: 60; bottom: 46px; right: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--bg3); border: 1px solid var(--line2); border-left: 3px solid var(--acc); border-radius: 6px; padding: 9px 12px; font-size: 13px; box-shadow: 0 10px 30px #0009; animation: tin .25s ease-out; max-width: 380px; }
.toast img { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; }
.toast small { display: block; color: var(--mut); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.toast.warn { border-left-color: var(--gold); }
@keyframes tin { from { transform: translateX(30px); opacity: 0; } }

body.focus .card:not(.has-hl) { display: none; }
body.noimg .media { display: none; }
body.nosugg .sugg, body.nosugg .side-sugg, body.nosugg .cside .sugg-h { display: none; }

@media (max-width: 1100px) {
  :root { --panel-w: 420px; }
  .row2 { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr 120px; }
  .sugg-grid { grid-template-columns: repeat(2, 1fr); }
  .sc:nth-child(3n) { border-right: 1px solid var(--line); } .sc:nth-child(2n) { border-right: 0; }
  .cside-top { grid-template-columns: 40px 1fr; }
  .top-center .tb span.lbl { display: none; }
  .brand, .top-right { width: auto; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  #app { height: auto; min-height: 100vh; grid-template-rows: auto 1fr 34px; }
  .topbar { flex-wrap: wrap; padding: 8px; }
  .top-center { flex-wrap: wrap; justify-content: flex-start; }
  .main, .main.flip { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .feedwrap { overflow: visible; }
  .card { grid-template-columns: 1fr; }
  .cside { border-left: 0; border-top: 1px solid var(--line); }
  .side-sugg { display: none !important; }
  .sugg-grid { grid-template-columns: 1fr; }
  .sc { border-right: 0 !important; }
  .statusbar { overflow-x: auto; }
  .feedstat, .region { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.media.memeimg img { object-fit: contain; max-height: 620px; background: #000; }

/* live deploys */
.paper-tag.live { color: #0b1a10; background: var(--acc); border-color: var(--acc); }
.livec { color: var(--acc); }
.splitrow { display: grid; grid-template-columns: 1fr 64px 28px; gap: 6px; margin: 4px 0; }
.splitrow .inp { padding: 6px 8px; font-size: 12px; }
#splitRows .dim, .srow .dim { color: var(--mut); font-size: 11px; font-weight: 400; }
.hist .hl { display: flex; gap: 8px; margin-top: 3px; }
.hist .hl a, .hist .hl button { font-size: 10px; font-weight: 700; color: var(--acc); text-decoration: none; background: none; border: 1px solid var(--acc-line); border-radius: 4px; padding: 1px 6px; cursor: pointer; }
.hist .st.s-landed { color: var(--acc); } .hist .st.s-failed { color: #f0616d; } .hist .st.s-sent, .hist .st.s-sending, .hist .st.s-signing, .hist .st.s-preparing { color: #6cb6ff; }

/* main accounts (J7's big-account treatment) */
.card.main { border: 2px solid var(--mc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc) 35%, transparent), 0 0 22px -6px var(--mc) inset; background: color-mix(in srgb, var(--mc) 7%, var(--card, #111318)); }
.card.main.fresh { animation: mainflash 1.2s ease-out; }
@keyframes mainflash { 0% { box-shadow: 0 0 0 4px var(--mc), 0 0 40px 0 var(--mc); } 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc) 35%, transparent), 0 0 22px -6px var(--mc) inset; } }
.mainchip { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #0b0c0f; background: var(--mc); vertical-align: 2px; }
.nest.mainnest { border-left: 3px solid var(--mc); background: color-mix(in srgb, var(--mc) 6%, transparent); }
.mainrow { display: grid; grid-template-columns: 22px 1fr 34px 92px 28px 28px; gap: 6px; align-items: center; padding: 4px 6px; margin: 3px 0; border-left: 3px solid var(--mc); border-radius: 4px; background: color-mix(in srgb, var(--mc) 6%, transparent); }
.mainrow input[type=color] { width: 30px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.mainrow select { background: #0e0f12; color: inherit; border: 1px solid var(--line2); border-radius: 4px; padding: 2px 4px; }
.mainadd { display: flex; gap: 6px; margin-top: 6px; } .mainadd .inp { flex: 1; padding: 6px 8px; font-size: 12px; }

/* tracked accounts drawer */
.accsearch { padding: 8px 14px 0; } .accsearch .inp { width: 100%; padding: 8px 10px; font-size: 13px; }
.acc { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.acc img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.acc b { display: block; font-size: 13px; } .acc small { color: var(--mut); font-size: 11px; }
.acc.main { border-left: 3px solid var(--mc); padding-left: 8px; }
.acc.off { opacity: .45; }
.acc-b { display: flex; gap: 4px; } .acc-b button { background: #16181d; border: 1px solid var(--line2); color: var(--tx2); border-radius: 5px; padding: 3px 7px; font-size: 11px; cursor: pointer; }
.acc-b button:hover { color: #fff; border-color: #555; } .acc-b .i { width: 12px; height: 12px; }
.acc.main .acc-b [data-acc="main"] { color: var(--mc); border-color: var(--mc); }

/* connect wallet */
.top-right { width: auto; gap: 8px; align-items: center; }
.tb.wbtn { border-color: var(--acc-line); color: var(--acc); }
.tb.wbtn.on { color: var(--tx); border-color: var(--line2); }
.wnote { color: var(--tx2); font-size: 13px; margin: 0 0 12px; }
.wlist { display: grid; gap: 8px; }
.wopt { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line2); background: #14161b; color: var(--tx); font: inherit; cursor: pointer; text-decoration: none; }
.wopt:hover { border-color: var(--acc); } .wopt span { font-size: 12px; color: var(--acc); }
.wopt.off { opacity: .7; } .wopt.off span { color: var(--mut); }
.wpaper { width: 100%; margin-top: 12px; justify-content: center; color: var(--tx2); }

/* platform posts (Instagram / TikTok / Truth Social) */
.pfi { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 5px; vertical-align: -3px; }
.pfi .i { width: 13px; height: 13px; }
.pf-instagram .pfi { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.pf-tiktok .pfi { background: #000; color: #fff; box-shadow: -1px -1px 0 #25f4ee, 1px 1px 0 #fe2c55; }
.pf-truth .pfi { background: #5448ee; color: #fff; }
.card.pf-instagram:not(.main) { border-left: 3px solid #d6249f; }
.card.pf-tiktok:not(.main) { border-left: 3px solid #25f4ee; }
.card.pf-truth:not(.main) { border-left: 3px solid #5448ee; }

/* logo */
.brand { align-items: center; gap: 3px; }
.brand-mark { width: 26px; height: 26px; display: block; }
.brand-word { font-size: 18px; letter-spacing: -.4px; }
.brand-logo { height: 26px; width: auto; display: block; }

/* ---- resizable everything (sizes come from Settings → Layout & sizes and the drag handles) ---- */
.card, .card.nosugg { grid-template-columns: 1fr var(--side-w, 210px); }
.feed { gap: var(--card-gap, 6px); }
.txt, .nest .txt { font-size: var(--txt, 16px); }
.nest .nest .txt { font-size: calc(var(--txt, 16px) - 1px); }
.media img { max-height: var(--media-h, 520px); }
.media { max-width: min(100%, calc(var(--media-h, 520px) * 1.05)); }
.uhead .av { width: var(--av, 34px); height: var(--av, 34px); }
.imgresults { grid-template-columns: repeat(var(--img-cols, 6), 1fr); }
.drawer { width: min(var(--drawer-w, 400px), 96vw); }
.side-sugg .sc { height: var(--tile-h, 58px); grid-template-columns: calc(var(--tile-h, 58px) - 6px) 1fr 14px 22px; }
.side-sugg .sc img { width: calc(var(--tile-h, 58px) - 6px); height: calc(var(--tile-h, 58px) - 2px); }
.sugg-grid .sc { height: calc(var(--tile-h, 58px) + 4px); grid-template-columns: var(--tile-h, 58px) 1fr 28px; }
.sugg-grid .sc img { width: var(--tile-h, 58px); height: calc(var(--tile-h, 58px) + 3px); }
.sc { cursor: pointer; }

/* drag handles */
.rs { position: absolute; z-index: 5; touch-action: none; }
.rs::after { content: ''; position: absolute; background: var(--acc); opacity: 0; transition: opacity .12s; border-radius: 2px; }
.rs:hover::after, body.resizing .rs::after { opacity: .7; }
.panel { position: relative; }
.main { position: relative; }
.rs-panel { top: 0; bottom: 0; left: calc(var(--panel-w, 600px) - 4px); width: 8px; cursor: col-resize; }
.main.flip .rs-panel { left: auto; right: calc(var(--panel-w, 600px) - 4px); }
.main.nopanel .rs-panel { display: none; }
.rs-panel::after, .rs-side::after, .rs-drawer::after { top: 0; bottom: 0; left: 3px; width: 2px; }
.cside { position: relative; }
.rs-side { top: 0; bottom: 0; left: -4px; width: 8px; cursor: col-resize; }
.rs-drawer { top: 0; bottom: 0; left: -4px; width: 8px; cursor: col-resize; }
.media .rs-media { left: 0; right: 0; bottom: 0; height: 10px; cursor: row-resize; }
.rs-media::after { left: 30%; right: 30%; bottom: 3px; height: 3px; }
body.resizing { user-select: none; } body.resizing-x { cursor: col-resize; } body.resizing-y { cursor: row-resize; }
body.resizing iframe, body.resizing img { pointer-events: none; }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 6px 0 8px; }
.sizes label { display: grid; grid-template-columns: 1fr 90px 34px; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); }
.sizes output { font-size: 11px; color: var(--mut); text-align: right; font-variant-numeric: tabular-nums; }

/* long modals (Settings) scroll inside instead of running off the screen */
.modal { max-height: 82vh; display: flex; flex-direction: column; top: 8vh; }
.modal .mb { overflow-y: auto; min-height: 0; }
#m-settings { width: min(560px, 94vw); }

/* our coin's CA in the status bar, launch toasts */
.sb.ca b { font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: .02em; }
.ca-dot { width: 7px; height: 7px; border-radius: 50%; background: #555; display: inline-block; margin-right: 6px; }
.ca-dot.live { background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.ca-mc { color: var(--acc); margin-left: 2px; }
.toast.launch { pointer-events: auto; border-color: var(--acc-line); }
.toast.launch .tl { display: flex; gap: 6px; margin-top: 6px; }
.toast.launch .tl a, .toast.launch .tl button { font-size: 11px; font-weight: 700; color: var(--acc); text-decoration: none; border: 1px solid var(--acc-line); border-radius: 4px; padding: 1px 7px; background: none; cursor: pointer; }

/* names, avatars and @handles link to the X parody profile */
a.pl { color: inherit; text-decoration: none; }
a.pl:hover { text-decoration: underline; }
a.pav:hover, a.pnest:hover { text-decoration: none; }
a.pav:hover .av { filter: brightness(1.15); }
a.pnest { display: inline-flex; align-items: center; gap: 6px; }
a.pnest:hover { text-decoration: underline; }
