:root {
  --page: #9db1c5; --site: #e5eaef; --blue: #3262cc; --bar: #222; --panel: #ced9de; --panel2: #dfe6ea;
  --ink: #1b1b1b; --muted: #4b5560; --link: #1f4fc4; --up: #2f8a2f; --down: #d0485a; --red-line: #ae0c0c;
  --story: #c9d8ea; --sep: #324586;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 15px/1.35 Arial, Arimo, Helvetica, sans-serif; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.site { max-width: 1009px; margin: 0 auto; background: var(--site); min-height: 100vh; display: flex; flex-direction: column; }

/* header */
.top { background: var(--blue); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 106px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.logo svg { height: 46px; width: auto; display: block; }
.cash { min-width: 188px; height: 56px; border: 0; color: #fff; background: linear-gradient(#0f1326, #2f50cf); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; font-size: 15px; padding: 0 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cash b { font-weight: 400; font-size: 19px; }

/* nav */
.nav { background: var(--bar); display: flex; height: 46px; align-items: stretch; }
.nav .tab { width: 130px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; border-right: 1px solid var(--sep); text-decoration: none; }
.nav .tab.on { background: linear-gradient(#878787, #2b2b2d); }
.nav .tab:hover { background: linear-gradient(#5c5c5c, #2b2b2d); text-decoration: none; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-right: 14px; }
.nav .right a { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; display: flex; align-items: center; }
.nav .sep { width: 1px; height: 16px; background: var(--sep); }

/* ticker tape */
.tape { background: #f5f7f9; border-bottom: 3px solid var(--red-line); height: 50px; overflow: hidden; position: relative; }
.tape .run { display: flex; white-space: nowrap; position: absolute; top: 0; left: 0; height: 47px; align-items: center; animation: tape 60s linear infinite; }
.tape:hover .run { animation-play-state: paused; }
.tape a { color: var(--ink); padding: 0 16px; font-size: 16px; }
.tape a:hover { text-decoration: none; background: #e9eef3; }
.up { color: var(--up); } .down { color: var(--down); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape .run { animation: none; } }

main { flex: 1; padding: 12px 12px 18px; }
.cols { display: grid; grid-template-columns: 386px 1fr; gap: 9px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
.col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.bar { background: var(--bar); color: #fff; padding: 6px 10px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.bar a { color: #fff; font-size: 12px; text-decoration: underline; }
.panel { background: var(--panel); padding: 10px 12px; }
.panel.muted { color: var(--muted); font-size: 13px; }
.box { display: flex; flex-direction: column; }

/* chart */
.chart-box { background: linear-gradient(#9cb3c6, #ced9de); padding: 14px 14px 10px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-box .cap { font-size: 11px; color: #22303c; letter-spacing: .3px; margin-top: 4px; text-transform: uppercase; }

/* tables */
table.t { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.t th { text-align: left; font-weight: 400; padding: 8px 10px; background: #fff; border-right: 1px solid #c9d2d9; }
table.t th:last-child { border-right: 0; }
table.t td { padding: 8px 10px; border-right: 1px solid #fff; }
table.t td:last-child { border-right: 0; }
table.t tr:nth-child(even) td { background: #d5dee4; }
table.t tr:nth-child(odd) td { background: #e8edf1; }
table.t .r { text-align: right; }
table.t tbody tr { cursor: pointer; }
table.t tbody tr:hover td { background: #c4d3e0; }
.sym { display: flex; align-items: center; gap: 8px; }
.sym img, .sym .ph { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; background: #9cb3c6; flex: 0 0 auto; }

/* stories */
.stories { display: flex; flex-direction: column; gap: 2px; }
.story { background: var(--story); padding: 8px 10px; }
.story .h { color: var(--link); font-size: 15.5px; }
.story .m { font-size: 11.5px; color: #333; margin-top: 4px; }
.story .m a { color: #333; }
.empty { padding: 10px; color: var(--muted); font-size: 13px; background: var(--story); }

/* side boxes */
.big { font-size: 26px; margin: 2px 0 6px; }
.note { font-size: 11.5px; color: #333; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; color: #fff; height: 40px; padding: 0 18px; background: linear-gradient(#3d6ee0, #2448b5); text-decoration: none !important; font-size: 15px; }
.btn.dark { background: linear-gradient(#4a4a4c, #1e1e20); }
.gbtn { display: inline-flex; align-items: center; justify-content: center; border: 0; color: #fff; height: 48px; width: 96px; font-size: 16px; }
.gbtn.buy { background: linear-gradient(#75964f, #587f2e); }
.gbtn.sell { background: linear-gradient(#e16071, #d9505f); }
.gbtn:disabled, .btn:disabled { opacity: .55; cursor: default; }

/* coin page */
.sv-title { background: var(--panel); padding: 14px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sv-title img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.sv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 2px; }
.sv-head .desc { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sv-head .acts { display: flex; gap: 2px; }
.info { background: var(--panel); padding: 9px; display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.info .who { font-size: 14px; }
.owned { background: #96aec1; color: #fff; text-align: center; padding: 8px; font-size: 13px; margin-top: 8px; }
.owned b { display: block; font-size: 18px; font-weight: 400; margin-top: 4px; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 6px 8px; }
.kv tr:nth-child(odd) td { background: #9cb3c6; }
.kv td.r { text-align: right; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { background: #fff; padding: 6px 10px; font-size: 13px; }
.ca { background: #fff; padding: 10px; font-family: Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.prog { height: 8px; background: #fff; margin-top: 6px; } .prog i { display: block; height: 100%; background: linear-gradient(90deg, #3262cc, #75964f); }

/* forms */
.form { background: var(--panel); padding: 14px; display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: #22303c; }
.form input, .form textarea, .form select, .modal input { font: inherit; padding: 9px 10px; border: 1px solid #9cb3c6; background: #fff; border-radius: 0; width: 100%; color: var(--ink); }
.form textarea { min-height: 70px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-pick { display: flex; align-items: center; gap: 12px; }
.logo-pick .pv { width: 64px; height: 64px; background: #fff center/cover; border: 1px solid #9cb3c6; flex: 0 0 auto; }
.msg { font-size: 13px; padding: 8px 10px; background: #fff; }
.msg.err { color: #9b1c2c; } .msg.ok { color: #24611f; }
.prose { background: var(--panel); padding: 14px 16px; }
.prose h3 { margin: 14px 0 6px; font-size: 17px; } .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { margin: 4px 0; }
.search { display: flex; gap: 8px; padding: 8px; background: var(--panel); }
.search input { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid #9cb3c6; }

/* trade modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 18, 30, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.modal { background: var(--site); width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.modal .in { padding: 14px; display: grid; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.seg button { border: 0; padding: 10px; background: #c3cfd7; color: var(--ink); }
.seg button.on { background: var(--bar); color: #fff; }
.quick { display: flex; gap: 4px; flex-wrap: wrap; }
.quick button { border: 0; background: #fff; padding: 6px 10px; font-size: 13px; }
.x-close { background: none; border: 0; color: #fff; font-size: 18px; line-height: 1; }

footer { background: var(--bar); color: #bfc6cf; font-size: 12px; padding: 14px; text-align: center; }
footer a { color: #fff; }

@media (max-width: 760px) {
  .top { padding: 14px 16px; min-height: 0; }
  .logo svg { height: 34px; }
  .cash { min-width: 0; height: 46px; padding: 0 12px; font-size: 12px; } .cash b { font-size: 15px; }
  .nav { overflow-x: auto; } .nav .tab { width: auto; padding: 0 14px; font-size: 15px; }
  .nav .right { padding-left: 12px; }
  main { padding: 10px 8px 16px; }
  .cols, .cols.even { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .sv-head { flex-direction: column; align-items: stretch; }
  .sv-head .acts .gbtn { flex: 1; }
  table.t th, table.t td { padding: 7px 6px; }
  .hide-sm { display: none; }
}

/* LCN launchpad additions */
.ipo { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #fff; background: #8a96a3; padding: 2px 6px; }
.ipo.big { font-size: 14px; padding: 12px 16px; }
.tape .ipo { font-size: 10px; vertical-align: 2px; }
button.tok { border: 0; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 6px 10px; background: linear-gradient(#e2a72e, #b97c0e); }
button.tok.sm { padding: 4px 8px; font-size: 11px; }
button.tok:disabled, .gbtn.tokbig:disabled { opacity: .6; cursor: default; }
.gbtn.tokbig { width: 194px; font-weight: 700; letter-spacing: .5px; background: linear-gradient(#e2a72e, #b97c0e); }
.search select { font: inherit; padding: 8px; border: 1px solid #9cb3c6; background: #fff; }
.sym img { width: 22px; height: 22px; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 16px; font-size: 14px; max-width: calc(100% - 32px); z-index: 30; border-left: 4px solid #e2a72e; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.toast.ok { border-left-color: #75964f; } .toast.err { border-left-color: #d9505f; }
@media (max-width: 760px) { .gbtn.tokbig { width: 100%; } }
