/* Memecoin OS: Terminal-Look nach dem Claude-Design "Memecoin OS.dc.html" */
:root {
  --bg: #0b0d10; --pane: #0e1115; --line: #1f242c; --sub: #161a20; --row: #12151a; --hover: #141920; --selbg: #131a1f;
  --text: #e6e8eb; --soft: #c4c9d2; --mut: #8a919e; --dim: #5a616c; --off: #2a3038;
  --g: #4fe39a; --r: #ff6b5e; --a: #f2b84b; --gs: #13261c; --rs: #2a1513; --as: #2a2310;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --cond: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { font: 12px/1.4 var(--mono); }
a { color: var(--g); } a:hover { color: #9af0c4; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.g { color: var(--g); } .red { color: var(--r); } .amb { color: var(--a); } .dim { color: var(--dim); } .mut { color: var(--mut); } .soft { color: var(--soft); }
.r { text-align: right; }
.os { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Topbar ---------- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--pane); font-size: 11px; letter-spacing: .04em; }
.bar > * { padding: 10px 14px; display: flex; align-items: center; gap: 6px; color: var(--mut); border-right: 1px solid var(--line); white-space: nowrap; }
.bar b { color: var(--text); font-weight: 400; }
.bar b.g { color: var(--g); }
.bar .logo { padding: 10px 16px; background: var(--g); color: var(--bg); font-weight: 600; gap: 8px; border-right: 0; }
.bar .logo span { font-weight: 400; opacity: .7; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px var(--g); }
.live.busy i { background: var(--a); box-shadow: 0 0 8px var(--a); animation: blink .8s steps(2) infinite; }
.live.err i { background: var(--r); box-shadow: 0 0 8px var(--r); }
@keyframes blink { 50% { opacity: .3; } }
.bar .cd { flex-direction: column; justify-content: center; align-items: stretch; gap: 4px; min-width: 170px; }
.cd-top { display: flex; justify-content: space-between; gap: 10px; }
.cd-bar { height: 2px; background: var(--line); }
.cd-bar i { display: block; height: 100%; width: 0; background: var(--g); transition: width 1s linear; }
.bar form { padding: 0; }
.bar input { background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; letter-spacing: .04em; padding: 10px 14px; width: 210px; }
.bar input::placeholder { color: var(--dim); }
.bar form:focus-within { background: var(--selbg); box-shadow: inset 0 -2px 0 var(--g); }
.bar .sp { flex: 1; padding: 0; border: 0; }
.bar .right { border-right: 0; border-left: 1px solid var(--line); }
.bar .play { background: var(--a); color: var(--bg); font-weight: 600; }

/* ---------- Spalten ---------- */
.grid { flex: 1; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); }
.col { background: var(--bg); display: flex; flex-direction: column; gap: 1px; max-width: 100%; min-width: 0; }
.c-left { flex: 1 1 280px; }
.c-center { flex: 3 1 560px; }
.c-right { flex: 1.4 1 320px; }
.pane { background: var(--pane); display: flex; flex-direction: column; min-width: 0; }
.grow { flex: 1; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .1em; color: var(--mut); }
.ph-l, .ph-r { display: flex; gap: 10px; align-items: center; }
.lnk { color: var(--mut); font-size: 10px; letter-spacing: .1em; padding: 3px 8px; }
.lnk:hover { color: var(--text); }
.lnk.on { background: var(--text); color: var(--bg); }
.empty-row { padding: 14px; color: var(--dim); font-size: 11px; letter-spacing: .04em; }
.empty-pane { padding: 40px 18px; color: var(--dim); font-size: 11px; letter-spacing: .08em; text-align: center; }
.skel { display: block; height: 12px; background: var(--sub); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Pipeline + Feed ---------- */
.pipe { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.fn-top { display: flex; justify-content: space-between; gap: 8px; }
.fn-bar { height: 4px; background: var(--sub); margin-top: 5px; }
.fn-bar i { display: block; height: 100%; min-width: 2px; }
.fn.base .fn-top span { color: var(--text); } .fn.base i { background: var(--mut); }
.fn.neg .fn-top span:first-child { color: var(--mut); } .fn.neg .fn-top span:last-child { color: var(--r); } .fn.neg i { background: var(--r); }
.fn.warn .fn-top span:first-child { color: var(--mut); } .fn.warn .fn-top span:last-child { color: var(--a); } .fn.warn i { background: var(--a); }
.fn.go .fn-top span { color: var(--g); } .fn.go i { background: var(--g); }
.feedpane { min-height: 280px; }
.fd { display: grid; grid-template-columns: 58px minmax(0, 1fr) 34px 76px; gap: 8px; padding: 5px 14px; font-size: 11px; border-bottom: 1px solid var(--row); }
.fd-h { padding: 6px 14px; font-size: 10px; color: var(--dim); letter-spacing: .06em; border-bottom: 1px solid var(--sub); }
#feed { overflow: hidden; }
#feed .fd { cursor: pointer; animation: fdin .6s ease-out; }
#feed .fd:hover { background: var(--hover); }
#feed .tk { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes fdin { from { background: #15211b; } }

/* ---------- Radar ---------- */
.scroll-x { overflow-x: auto; }
.rt-wrap { min-width: 640px; }
.rt { display: grid; grid-template-columns: 28px minmax(140px, 1.6fr) 60px 80px 80px 80px 84px 70px; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--sub); }
.rt-h { padding: 8px 14px; font-size: 10px; letter-spacing: .06em; color: var(--dim); }
.rt-row { cursor: pointer; }
.rt-row:hover { background: var(--hover); }
.rt-row.on { background: var(--selbg); box-shadow: inset 2px 0 0 var(--g); }
.coin { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coin .tk { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .nm { font-size: 10px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new { font-style: normal; font-size: 9px; font-weight: 500; letter-spacing: .08em; color: var(--a); margin-left: 4px; }
.kol { font-style: normal; font-size: 9px; font-weight: 500; letter-spacing: .08em; color: var(--a); background: var(--as); padding: 1px 4px; margin-left: 6px; vertical-align: 1px; }
.sc { display: inline-block; min-width: 44px; text-align: center; padding: 4px 6px; font-weight: 600; }
.sc-krass { background: var(--g); color: var(--bg); }
.sc-stark { background: var(--gs); color: var(--g); }
.sc-watch { background: var(--as); color: var(--a); }
.sc-nein, .sc-fail { background: var(--rs); color: var(--r); }
.sub-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; font-size: 10px; letter-spacing: .1em; color: var(--dim); background: #0c0f12; border-bottom: 1px solid var(--sub); }

/* ---------- Detail ---------- */
.dh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.cap { font-size: 10px; letter-spacing: .1em; color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cap .lnk { padding: 1px 6px; border: 1px solid var(--line); }
.ttl { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; min-width: 0; }
.big { font-family: var(--cond); font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.05; overflow-wrap: anywhere; }
.ttl .sub { font-family: var(--cond); font-size: 18px; color: var(--mut); }
.dh-r { display: flex; gap: 28px; align-items: flex-end; }
.kv { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.kv > span { font-size: 10px; color: var(--dim); letter-spacing: .08em; white-space: nowrap; }
.kv b { font-size: 18px; font-weight: 400; white-space: nowrap; }
.kv b.score { font-size: 34px; line-height: 1; font-weight: 500; }
.kv b.score small { font-size: 13px; color: var(--dim); font-weight: 400; }
.acts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.acts a { flex: 1 0 auto; background: var(--pane); color: var(--mut); text-decoration: none; padding: 8px 12px; font-size: 10px; letter-spacing: .1em; text-align: center; }
.acts a:hover { color: var(--text); background: var(--hover); }
.acts a.pri { background: var(--g); color: var(--bg); font-weight: 600; }
.raus { padding: 9px 18px; background: var(--rs); color: var(--r); font-size: 11px; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.chart { padding: 14px 18px 6px; display: flex; flex-direction: column; gap: 6px; }
.chart-cap { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--dim); letter-spacing: .08em; }
.plot { position: relative; height: 150px; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--sub) 1px, transparent 1px); background-size: 100% 37.5px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .lab { position: absolute; font-size: 10px; color: var(--mut); background: rgba(14, 17, 21, .85); padding: 0 4px; letter-spacing: .04em; white-space: nowrap; }
.plot .lab.mark { color: var(--a); }
.vols { display: flex; gap: 2px; height: 28px; align-items: flex-end; }
.vols span { flex: 1; }
.chart-empty { height: 184px; display: grid; place-items: center; color: var(--dim); font-size: 11px; letter-spacing: .06em; border-bottom: 1px solid var(--line); text-align: center; padding: 0 20px; }
.duo { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-top: 1px solid var(--line); margin-top: 10px; }
.duo > div { background: var(--pane); padding: 16px 18px; display: flex; flex-direction: column; }
.duo .sb { flex: 1 1 300px; gap: 14px; }
.duo .fc { flex: 1 1 260px; }
.k2 { font-size: 10px; letter-spacing: .1em; color: var(--mut); }
.duo .fc .k2 { margin-bottom: 4px; }
.pt { display: flex; flex-direction: column; gap: 6px; }
.pt-top { display: flex; justify-content: space-between; gap: 8px; }
.pt-bar { height: 6px; background: var(--sub); }
.pt-bar i { display: block; height: 100%; }
.pt-note { font-size: 10px; color: var(--dim); }
.ck { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--sub); }
.ck > span:first-child { color: var(--soft); }
.bd { text-align: center; font-size: 10px; padding: 2px 0; }
.bd.ok { background: var(--gs); color: var(--g); }
.bd.warn { background: var(--as); color: var(--a); }
.bd.fail { background: var(--rs); color: var(--r); }
.bd.na { color: var(--dim); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 10px; }
.tiles > div { background: var(--pane); padding: 8px 0; display: flex; flex-direction: column; gap: 3px; }
.tiles > div + div { padding-left: 12px; }
.tiles span { font-size: 10px; color: var(--dim); }
.blockh { padding: 10px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--sub); font-size: 10px; letter-spacing: .1em; color: var(--mut); display: flex; justify-content: space-between; gap: 10px; }
.ft-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(4, minmax(60px, 1fr)); gap: 10px; padding: 6px 18px; border-bottom: 1px solid var(--row); font-size: 11px; }
.ft-row > span:first-child { color: var(--soft); }
.ft-row > span:not(:first-child) { text-align: right; }
.ft-h { font-size: 10px; letter-spacing: .06em; }
.ft-h > span, .ft-h > span:first-child { color: var(--dim); }
.cl { display: grid; grid-template-columns: minmax(0, 1fr) 80px 70px; gap: 10px; padding: 6px 18px; border-bottom: 1px solid var(--row); font-size: 11px; cursor: pointer; }
.cl:hover { background: var(--hover); }
.cl.me { box-shadow: inset 2px 0 0 var(--g); }
.cl > span:not(:first-child) { text-align: right; }
.kl { display: grid; grid-template-columns: minmax(0, 1fr) 70px 58px 46px; gap: 10px; align-items: center; padding: 6px 18px; border-bottom: 1px solid var(--row); font-size: 11px; }
.kl > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl > span:not(:first-child) { text-align: right; }
.kl a { color: inherit; text-decoration: none; }
.kl a:hover { text-decoration: underline; }
.xa { padding: 7px 18px; border-bottom: 1px solid var(--row); font-size: 11px; line-height: 1.7; color: var(--soft); }
.xa a { color: var(--soft); text-decoration: none; margin-right: 8px; }
.xa a:hover { color: var(--text); text-decoration: underline; }
.kt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.kt > div { background: var(--pane); padding: 8px 18px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.kt span { font-size: 10px; color: var(--dim); letter-spacing: .06em; }

/* ---------- KI-Briefing ---------- */
.brief { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.blk { display: flex; flex-direction: column; gap: 6px; }
.blk > .k { font-size: 10px; letter-spacing: .1em; color: var(--dim); }
.what { margin: 0; font-family: var(--cond); font-size: 16px; line-height: 1.45; color: var(--text); text-wrap: pretty; }
.li { display: flex; gap: 8px; font-family: var(--cond); font-size: 14px; line-height: 1.4; color: var(--soft); }
.li b { font-family: var(--mono); font-weight: 400; }
.fazit { font-family: var(--cond); font-size: 14px; line-height: 1.4; color: var(--text); border-left: 2px solid var(--a); padding-left: 10px; }
.trag { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.segs { display: flex; gap: 3px; }
.segs i { width: 16px; height: 8px; background: var(--off); }
.segs i.on { background: var(--a); }
.crit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 10px; color: var(--dim); letter-spacing: .04em; }
.crit b { display: block; color: var(--text); font-size: 13px; font-weight: 400; }
.quote { font-family: var(--cond); font-size: 13px; color: var(--mut); line-height: 1.4; border-left: 2px solid var(--line); padding-left: 10px; max-height: 5.8em; overflow: hidden; white-space: pre-line; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; color: var(--dim); letter-spacing: .06em; flex-wrap: wrap; }
.vg { display: flex; flex-direction: column; margin-top: 4px; font-size: 11px; }
.vg > span { font-size: 10px; letter-spacing: .1em; padding-bottom: 4px; }
.vg a { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 10px; padding: 5px 0; border-top: 1px solid var(--row); color: inherit; text-decoration: none; }
.vg a:hover { background: var(--hover); }
.vg a > span:last-child { text-align: right; }

/* ---------- Track Record ---------- */
.tabs-s { display: flex; gap: 2px; }
.tabs-s button { padding: 3px 8px; color: var(--mut); font-size: 10px; letter-spacing: .1em; }
.tabs-s button.on { background: var(--text); color: var(--bg); }
.tr-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tr-stats > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.tr-stats > div + div { border-left: 1px solid var(--line); }
.tr-stats span { font-size: 10px; color: var(--dim); }
.tr-stats b { font-size: 18px; font-weight: 400; }
.outs { padding: 12px 14px 4px; display: flex; gap: 3px; height: 84px; }
.outs > div { flex: 1; display: flex; flex-direction: column; }
.outs .u { flex: 1; display: flex; align-items: flex-end; }
.outs .d { flex: 1; display: flex; align-items: flex-start; }
.outs .z { height: 1px; background: var(--off); }
.outs .u i { width: 100%; background: var(--g); }
.outs .d i { width: 100%; background: var(--r); }
.tr-cap { padding: 0 14px 8px; font-size: 10px; color: var(--dim); }
.hr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px 70px; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--row); font-size: 11px; }
.hr > span:nth-child(2) { color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr > span:nth-child(n+3) { text-align: right; }
.hr-h { padding: 6px 14px; font-size: 10px; color: var(--dim); letter-spacing: .06em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--sub); }
.hr-h > span:nth-child(2) { color: var(--dim); }
.hr[data-open] { cursor: pointer; }
.hr[data-open]:hover { background: var(--hover); }

/* ---------- Footer, Regeln, Toast ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--pane); font-size: 10px; letter-spacing: .06em; color: var(--dim); }
.foot .lnk { border: 1px solid var(--line); }
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(5, 6, 8, .78); display: grid; place-items: center; padding: 16px; }
.modal .pane { width: 100%; max-width: 660px; max-height: 86vh; overflow: auto; border: 1px solid var(--line); }
.rules { padding: 4px 18px 18px; font-family: var(--cond); font-size: 14px; line-height: 1.45; color: var(--soft); }
.rules h4 { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--g); margin: 16px 0 8px; }
.rules ul { margin: 0; padding-left: 16px; display: grid; gap: 3px; }
.rules p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); background: var(--g); color: var(--bg); padding: 8px 14px; font-size: 11px; font-weight: 600; letter-spacing: .06em; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .c-center { order: 1; } .c-right { order: 2; } .c-left { order: 3; }
  .bar form { order: 20; flex: 1 1 100%; border-right: 0; border-top: 1px solid var(--line); }
  .bar input { width: 100%; }
  .bar .sp { display: none; }
}
@media (max-width: 600px) {
  .bar { position: static; }
  .bar .hide-s, .bar .logo span { display: none; }
  .bar > * { padding: 9px 11px; }
  .bar .cd { order: 19; flex: 1 1 100%; min-width: 0; border-right: 0; border-top: 1px solid var(--line); }
  .bar .play { margin-left: auto; border-left: 1px solid var(--line); }
  .rt-wrap { min-width: 0; }
  .rt { grid-template-columns: 22px minmax(0, 1fr) 62px 62px 50px; gap: 8px; padding: 10px 12px; }
  .rt > :nth-child(3), .rt > :nth-child(5), .rt > :nth-child(6) { display: none; }
  .sc { min-width: 40px; }
  .dh { padding: 14px 14px 12px; }
  .dh-r { gap: 18px; width: 100%; justify-content: space-between; }
  .kv { text-align: left; }
  .big { font-size: 28px; }
  .chart, .duo > div { padding-left: 14px; padding-right: 14px; }
  .ft-row { grid-template-columns: minmax(92px, 1.2fr) repeat(4, minmax(48px, 1fr)); gap: 6px; padding: 6px 14px; }
  .blockh, .cl, .kl { padding-left: 14px; padding-right: 14px; }
  .kl { grid-template-columns: minmax(0, 1fr) 62px 46px; }
  .kl > :nth-child(3) { display: none; }
  .kt { grid-template-columns: 1fr 1fr; }
  .kt > div, .xa { padding-left: 14px; padding-right: 14px; }
  .crit { grid-template-columns: repeat(2, 1fr); }
}
