.tower { overflow: hidden; height: 100dvh; }
.tbar { gap: 12px; padding: 14px 18px; }
.tbar .mark { margin-right: 6px; flex: none; }
.find { position: relative; flex: 0 1 430px; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 14px 0 38px; border-radius: 21px; background: rgba(8, 16, 34, .72); box-shadow: inset 0 0 0 1px rgba(190, 215, 250, .17); transition: box-shadow .2s, background .2s; }
.find:focus-within { background: rgba(8, 16, 34, .92); box-shadow: inset 0 0 0 1px rgba(190, 215, 250, .4), 0 0 26px rgba(120, 190, 255, .16); }
.find .glass { position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; fill: var(--muted); }
.find input { width: 100%; height: 100%; font-size: 14px; font-stretch: 105%; }
.find input::placeholder { color: var(--dim); }
.drop { position: absolute; left: 0; right: 0; top: 48px; max-height: 60vh; overflow: auto; border-radius: 14px; background: #0a1426f7; box-shadow: inset 0 0 0 1px var(--line), 0 24px 70px rgba(0, 0, 0, .55); padding: 6px; }
.drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; font-size: 13.5px; }
.drop button:hover, .drop button.sel { background: rgba(120, 170, 240, .13); }
.drop b { font-weight: 500; font-stretch: 110%; min-width: 50px; color: var(--text); }
.drop span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .n { margin-left: auto; color: var(--accent); font-size: 12px; white-space: nowrap; }
.tnav { display: flex; gap: 18px; margin-left: auto; margin-right: 6px; font-size: 13px; color: var(--muted); }
.tnav a:hover { color: var(--text); }
.tbar .pill { flex: none; }

/* left rail: what the satellites saw last */
.rail { position: fixed; z-index: 12; left: 0; top: 70px; bottom: 0; width: 318px; display: flex; flex-direction: column; padding: 0 0 0 18px; transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .4s; pointer-events: none; }
.rail > * { pointer-events: auto; }
.rail.away { transform: translateX(-340px); opacity: 0; }
.kinds { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 18px 12px 0; }
.kinds button { height: 25px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-stretch: 108%; color: #a6bcda; background: rgba(8, 16, 34, .6); box-shadow: inset 0 0 0 1px rgba(190, 215, 250, .12); transition: all .18s; }
.kinds button:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(190, 215, 250, .3); }
.kinds button.on { color: #07101f; background: var(--text); box-shadow: none; }
.sorts { display: flex; gap: 14px; padding: 2px 18px 8px 0; font-size: 12.5px; color: var(--dim); }
.sorts button { color: var(--muted); padding: 3px 0; border-bottom: 1px solid transparent; transition: color .2s; } .sorts button:hover { color: var(--text); } .sorts button.on { color: var(--text); border-bottom-color: var(--accent); }
.mine { padding: 0 18px 10px 0; font-size: 12.5px; color: var(--muted); }
.mine b { color: var(--text); font-weight: 400; }
.mine .tick { cursor: pointer; margin: 3px 3px 0 0; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 24px 0; scrollbar-width: none; mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); }
.feed::-webkit-scrollbar { display: none; }
.philinks { display: flex; gap: 16px; padding: 4px 0 10px; font-size: 12.5px; color: var(--muted); }
.fresh { padding: 2px 0 7px; font-size: 12.5px; color: var(--accent); }
.row-s { display: grid; grid-template-columns: 52px 1fr; gap: 11px; width: 100%; padding: 8px 8px 8px 0; align-items: center; text-align: left; border-radius: 9px; transition: background .18s, transform .18s; }
.row-s:hover { background: rgba(120, 170, 240, .1); transform: translateX(3px); }
.row-s img { width: 52px; height: 52px; object-fit: cover; display: block; border-radius: 3px; background: var(--ink3); }
.row-s .t { display: block; font-size: 13.5px; color: var(--text); line-height: 1.25; }
.row-s .s { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.row-s .s i { font-style: normal; color: var(--accent); }

/* right panel */
.panel { position: fixed; z-index: 13; right: 0; top: 64px; bottom: 0; width: 372px; padding: 12px 24px 24px; overflow-y: auto; scrollbar-width: none; animation: pin .55s cubic-bezier(.2, .7, .2, 1); pointer-events: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 30px), transparent 100%); }
.tower::after { content: ""; position: fixed; z-index: 11; right: 0; top: 0; bottom: 0; width: 470px; background: linear-gradient(270deg, rgba(5, 10, 22, .97) 72%, rgba(5, 10, 22, 0)); pointer-events: none; opacity: 0; transition: opacity .5s; }
.tower.panelon::after { opacity: 1; }
.panel::-webkit-scrollbar { display: none; }
@keyframes pin { from { transform: translateX(26px); opacity: 0; } }
.panel h2 { font-size: 27px; color: var(--text); margin-left: 34px; }
.panel .where { margin: 6px 0 0 34px; font-size: 13px; color: var(--muted); }
.panel .blurb { margin: 14px 0 0 34px; font-size: 14px; color: #b9cde9; }
.panel section { margin: 20px 0 0 34px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel h3 { font-size: 12.5px; font-stretch: 105%; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 9px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; font-size: 13.5px; }
.kv em { font-style: normal; color: var(--muted); } .kv b { font-weight: 400; color: var(--text); text-align: right; }
.bignum { font-size: 34px; font-weight: 300; font-stretch: 125%; color: var(--text); line-height: 1.1; }
.bignum small { font-size: 13px; font-stretch: 100%; color: var(--muted); font-weight: 400; display: block; margin-top: 5px; line-height: 1.4; }
.stock { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.stock .sym { font-stretch: 112%; font-size: 14px; color: var(--text); min-width: 52px; }
.stock .nm { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock .pr { font-size: 13px; color: var(--text); white-space: nowrap; } .stock .pr i { font-style: normal; font-size: 12px; margin-left: 5px; }
.earn { margin: -2px 0 6px; font-size: 12px; color: var(--muted); }
.up { color: var(--ok) !important; } .dn { color: #ff9a8f !important; }
.stock .pill { height: 30px; padding: 0 12px; font-size: 12px; }
.bands { display: flex; flex-wrap: wrap; gap: 6px; }
.bands .chip { height: 30px; padding: 0 12px; }
.bands .chip.on { color: #07101f; background: var(--text); box-shadow: none; }
.acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.acts .pill { height: 34px; font-size: 12.5px; padding: 0 13px; }
.pill.on { color: #07101f; background: var(--text); }
.note2 { margin-top: 9px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.letter { font-size: 15px; line-height: 1.55; color: #d6e5fb; min-height: 5em; }
.letter .dots { color: var(--muted); }
.letterbtn { height: 30px; margin-top: 8px; font-size: 12px; padding: 0 12px; }
.answer h3 { color: var(--blue); }
.reading { font-size: 14px; color: #c7d8f0; }
.reading .by { display: block; margin-top: 7px; font-size: 12px; color: var(--dim); }
.sitelist .row-s img { width: 44px; height: 44px; } .sitelist .row-s { grid-template-columns: 44px 1fr; }

/* timeline */
.timeline { position: fixed; z-index: 14; left: 32px; right: 404px; bottom: 30px; height: 58px; display: flex; align-items: center; gap: 14px; animation: tin .6s ease; }
@keyframes tin { from { opacity: 0; transform: translateY(14px); } }
.tplay { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(8, 16, 34, .8); box-shadow: inset 0 0 0 1px rgba(190, 215, 250, .25); display: grid; place-items: center; transition: background .2s; }
.tplay:hover { background: rgba(30, 52, 92, .9); }
.tplay.on { background: var(--text); color: #07101f; } .tplay { color: var(--text); }
.tplay svg { width: 17px; height: 17px; fill: currentColor; }
#tflat svg { fill: none; width: 19px; height: 19px; }
.ttrack { position: relative; flex: 1; height: 58px; touch-action: none; cursor: ew-resize; }
#tspark { position: absolute; left: 0; right: 0; bottom: 14px; width: 100%; height: 34px; opacity: .85; }
.tdots { position: absolute; left: 0; right: 0; bottom: 8px; height: 6px; }
.tdots i { position: absolute; bottom: 0; width: 2px; height: 5px; margin-left: -1px; background: rgba(190, 215, 250, .35); }
.tdots i.y { height: 9px; background: rgba(190, 215, 250, .75); }
.tdots s { position: absolute; top: 8px; font-size: 10.5px; text-decoration: none; color: #c3d5ee; transform: translateX(-50%); text-shadow: 0 1px 6px #000, 0 0 2px #000; }
.thead { position: absolute; top: 0; bottom: 4px; width: 1.5px; background: var(--accent); box-shadow: 0 0 10px rgba(255, 194, 122, .7); pointer-events: none; }
.thead span { position: absolute; bottom: 100%; left: 50%; margin-bottom: 3px; white-space: nowrap; font-size: 12.5px; font-stretch: 105%; color: var(--text); padding: 2px 8px; border-radius: 10px; background: rgba(5, 10, 22, .72); }

.status { position: fixed; z-index: 15; left: 50%; bottom: 112px; transform: translateX(-50%); padding: 8px 16px; border-radius: 18px; font-size: 13px; color: #c7d8f0; background: rgba(8, 16, 34, .84); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.hovertip { position: fixed; z-index: 16; pointer-events: none; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; color: var(--text); background: rgba(8, 16, 34, .92); box-shadow: inset 0 0 0 1px var(--line); transform: translate(12px, -50%); white-space: nowrap; }
.hovertip i { font-style: normal; color: var(--accent); margin-left: 7px; }
.hint { position: fixed; z-index: 10; left: 50%; bottom: 96px; transform: translateX(-50%); font-size: 12.5px; color: #c3d5ee; text-shadow: 0 1px 8px #000, 0 0 2px #000; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.probe { position: fixed; z-index: 16; width: 284px; padding: 12px 14px; border-radius: 12px; background: rgba(8, 16, 34, .95); box-shadow: inset 0 0 0 1px var(--line), 0 18px 60px rgba(0, 0, 0, .5); animation: tin .25s ease; }
.ptitle { font-size: 12px; color: var(--muted); } .probe svg { display: block; margin-top: 8px; }
.paxis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.pwhat { margin-top: 8px; font-size: 13px; color: #d6e5fb; line-height: 1.4; }
.back { position: fixed; z-index: 14; left: 18px; top: 72px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 11px 18px; border-radius: 22px; font-size: 13.5px; color: #07101f; background: var(--text); box-shadow: 0 12px 44px rgba(0, 0, 0, .5); max-width: 90vw; }
.dlg-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(3, 7, 16, .66); }
.dlg { width: min(430px, 100%); padding: 26px; border-radius: 16px; background: var(--ink2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 110px rgba(0, 0, 0, .65); outline: 0; max-height: 90dvh; overflow: auto; }
.dlg h3 { font-size: 24px; color: var(--text); } .dlg p { margin-top: 8px; font-size: 13.5px; color: #b3c7e4; }
.dlg .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); } .dlg .row em { font-style: normal; color: var(--muted); } .dlg .row b { font-weight: 400; }
.dlg .note { font-size: 12px; color: var(--muted); }
.dlg-acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.amounts { display: flex; gap: 6px; margin: 14px 0 8px; }
.amounts .chip.on { color: #07101f; background: var(--text); }
.wlist { display: grid; gap: 7px; margin-top: 14px; } .wlist button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: rgba(120, 170, 240, .08); } .wlist button:hover { background: rgba(120, 170, 240, .18); } .wlist img { width: 24px; height: 24px; border-radius: 6px; }
.lnk { color: var(--blue); text-decoration: underline; }

.mine .tick { margin-right: 4px; }
@media (max-width: 860px) {
  .hint { display: none; }
  .tnav { display: none; }
  .tbar { padding: 10px 12px; gap: 8px; } .tbar .mark { width: 32px; height: 32px; margin-right: 0; }
  .find { height: 38px; flex: 1; } .find .glass { top: 11px; }
  .tbar .pill { height: 38px; font-size: 12px; padding: 0 12px; }
  .rail { top: auto; left: 0; right: 0; width: auto; height: 34dvh; padding: 0 0 0 12px; background: linear-gradient(0deg, rgba(5, 10, 22, .95) 70%, rgba(5, 10, 22, 0)); padding-top: 22px; }
  .rail.away { transform: translateY(40dvh); }
  .kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 12px; }
  .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 50dvh; padding: 18px 16px 20px; background: linear-gradient(0deg, rgba(5, 10, 22, .98) 88%, rgba(5, 10, 22, 0)); animation: pinS .5s ease; -webkit-mask-image: none; mask-image: none; }
  .tower::after { display: none; }
  @keyframes pinS { from { transform: translateY(30px); opacity: 0; } }
  .panel h2 { font-size: 23px; margin-left: 0; } .panel .where, .panel .blurb, .panel section { margin-left: 0; }
  .timeline { left: 12px; right: 12px; bottom: calc(50dvh + 4px); height: 50px; }
  .tplay { width: 36px; height: 36px; }
  .status { bottom: auto; top: 62px; }
  .find input { font-size: 16px; }
  .drop { position: fixed; left: 12px; right: 12px; top: 56px; }
  .back { top: 60px; left: 12px; height: 32px; font-size: 12px; }
}

#gl { touch-action: none; }
html, body { overscroll-behavior: none; }
.status { pointer-events: none; }

.panel .where + section:empty { display: none; }
img { color: transparent; }
.row-s img[src=""] { visibility: hidden; }
.uph { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }
#upnext { margin-bottom: 12px; }
.row-s.up .s { color: #b9cde9; }
.row-s.up.now img { box-shadow: 0 0 0 1.5px var(--blue), 0 0 16px rgba(130, 190, 255, .7); }
.hint { padding: 5px 12px; border-radius: 14px; background: rgba(5, 10, 22, .68); }

/* the agents */
.row-s.ag .t { font-size: 13.5px; }
.astatus { display: flex; gap: 9px; align-items: flex-start; margin: 13px 0 0 34px; font-size: 13.5px; line-height: 1.38; color: #c7d8f0; }
.astatus i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #3ad8ff; animation: apulse 2.6s ease-out infinite; }
@keyframes apulse { 0% { box-shadow: 0 0 0 0 rgba(58, 216, 255, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(58, 216, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .astatus i { animation: none; } }
.astats { margin: 6px 0 0 34px; font-size: 12.5px; color: var(--muted); }
.aacts { margin-left: 34px; }
.aask { display: flex; gap: 7px; margin: 10px 0 0 34px; }
.aask input { flex: 1; min-width: 0; height: 34px; padding: 0 13px; border-radius: 17px; font-size: 13px; color: var(--text); background: rgba(8, 16, 34, .72); box-shadow: inset 0 0 0 1px var(--line); }
.aask input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(190, 215, 250, .4); }
.aask .pill { height: 34px; font-size: 12.5px; padding: 0 14px; }
.reps .rep { display: grid; grid-template-columns: 44px 1fr; gap: 10px; width: 100%; padding: 9px 6px 9px 0; text-align: left; align-items: start; border-radius: 8px; transition: background .18s; }
.reps button.rep:hover { background: rgba(120, 170, 240, .1); }
.reps .rep img { width: 44px; height: 44px; object-fit: cover; display: block; border-radius: 3px; background: var(--ink3); }
.reps .rt { display: block; font-size: 12px; color: var(--muted); }
.reps .rx { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.38; color: #c7d8f0; }
.reps .rep.cloud { grid-template-columns: 1fr; padding: 6px 0; }
.reps .rep.cloud .rx { font-size: 12.5px; color: var(--dim); }
.repmore { margin-top: 8px; font-size: 12.5px; color: var(--muted); } .repmore:hover { color: var(--text); }
.onwatch { margin: 6px 0 0 34px; font-size: 12.5px; color: var(--muted); }
.onwatch .agl { margin-left: 6px; color: var(--accent); } .onwatch .agl:hover { color: var(--text); }
.heldt { display: flex; flex-wrap: wrap; gap: 8px; } .heldt .tick { color: var(--accent); font-size: 13px; }
.foll { margin-top: 8px; } .foll .tick { margin-right: 8px; }
@media (max-width: 860px) { .astatus, .astats, .aacts, .aask, .onwatch { margin-left: 0; } .aask input { font-size: 16px; } }
.owntip { margin: 8px 0 0 34px; font-size: 12.5px; color: var(--muted); line-height: 1.38; }
.lnk2 { color: var(--accent); font-size: 12.5px; } .lnk2:hover { color: var(--text); }
.reps div.rep { cursor: default; }
.dlg .row s { color: var(--dim); }
@media (max-width: 860px) { .owntip { margin-left: 0; } }

/* phone: the search keeps the header, the CA and X buttons sit right under it */
@media (max-width: 860px) {
  .tbar #ca, .tbar #xlink { position: absolute; top: 56px; height: 34px; z-index: 1; }
  .tbar #xlink { right: 12px; width: 34px; }
  .tbar #ca { right: 54px; }
  .tbar .find { z-index: 2; }
}
