:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #e8e8e8;
  background: #080b09;
}
* { box-sizing: border-box; }
body { margin: 0; background: #080b09; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #8495c4; outline-offset: 2px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; height: 100vh; position: sticky; top: 0; padding: 24px 13px 18px; background: #0c0f0d; border-right: 1px solid #222a25; }
.brand { padding: 4px 11px 30px; border-bottom: 1px solid #222a25; margin-bottom: 23px; }
.brand strong { font-size: 13px; font-weight: 750; letter-spacing: -.25px; white-space: nowrap; }
.brand strong span { color: #a5a5a5; font-weight: 500; }
.brand small { display: block; margin-top: 5px; color: #717171; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.side-section { margin-bottom: 23px; }
.side-section > span { display: block; margin: 0 11px 8px; color: #777; font-size: 10px; font-weight: 650; letter-spacing: .7px; }
.side-section > span b { font-weight: 500; color: #9a9a9a; }
.side-link { display: flex; align-items: center; width: 100%; height: 34px; padding: 0 11px; margin: 2px 0; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; color: #a9a9a9; font-size: 12px; font-weight: 500; }
.side-link:hover, .profile-item:hover { background: #171d19; color: #f2f2f2; }
.side-link.active { background: #19201b; border-color: #27322a; color: #f5f5f5; }
.side-link b { margin-left: auto; color: #a2a2a2; font-size: 11px; font-weight: 500; }
.profiles-header { margin: 5px 0 3px; }
.profile-list { display: grid; gap: 2px; min-height: 0; overflow-y: auto; align-content: start; }
.profile-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; color: #b8b8b8; }
.profile-item.selected { background: #19201b; color: #fff; border-color: #2b392f; }
.profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.avatar { flex: none; width: 23px; height: 23px; border-radius: 6px; object-fit: cover; background: #333; }
.avatar.fallback { display: grid; place-items: center; color: #c6c6c6; font-size: 11px; font-weight: 700; }
.indicator { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #666; flex: none; }
.sidebar-bottom { margin-top: auto; display: flex; gap: 9px; padding: 17px 10px 0; border-top: 1px solid #222a25; }
.sidebar-bottom strong { display: block; font-size: 11px; font-weight: 600; }
.sidebar-bottom small { display: block; margin-top: 4px; color: #828282; font-size: 10px; line-height: 1.35; }
.live-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #58b981; }
.sidebar-bottom .live-dot { margin-top: 4px; }

main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 32px; border-bottom: 1px solid #222a25; background: #0d110e; }
.breadcrumb { color: #858585; font-size: 11px; }
.breadcrumb span { margin: 0 8px; color: #575757; }
.breadcrumb strong { color: #dedede; font-weight: 550; }
.mobile-brand { display: none; }
.top-actions { display: flex; gap: 7px; align-items: center; }
.secondary-button, .primary-button, .small-button, .copy, .open-link { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 10px; border: 1px solid #2b332e; border-radius: 6px; background: #161c18; color: #d2d2d2; text-decoration: none; font-size: 11px; font-weight: 550; white-space: nowrap; }
.primary-button { border-color: #d5d5d5; background: #e7e7e7; color: #181818; }
.secondary-button:hover, .small-button:hover, .copy:hover, .open-link:hover { background: #202922; border-color: #3a493e; color: #fff; }
.primary-button:hover { background: #fff; }
.content { max-width: 1490px; margin: 0 auto; padding: 27px 32px 32px; }
.content > .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #919191; font-size: 10px; font-weight: 600; letter-spacing: .8px; }
.eyebrow-separator { color: #505050; }
.page-heading, .view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
h1 { margin: 0; color: #f2f2f2; font-size: clamp(24px, 2.3vw, 30px); font-weight: 650; letter-spacing: -.8px; }
.page-heading p, .view-heading p { margin: 7px 0 0; color: #8c8c8c; font-size: 12px; line-height: 1.45; }
.overline { display: block; margin-bottom: 8px; color: #898989; font-size: 10px; font-weight: 650; letter-spacing: .7px; }
.heading-stats { display: flex; gap: 18px; align-items: flex-end; }
.heading-stat { min-width: 82px; padding-left: 18px; border-left: 1px solid #353535; }
.heading-stat strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 500; white-space: nowrap; }
.heading-stat span { display: block; margin-top: 4px; color: #858585; font-size: 9px; font-weight: 650; letter-spacing: .6px; white-space: nowrap; }
.insight-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 23px; }
.insight-strip > div { min-height: 103px; padding: 17px 18px; border: 1px solid #222c25; border-radius: 10px; background: #111713; }
.insight-strip span, .metric-cell span { display: block; color: #9a9a9a; font-size: 10px; font-weight: 600; letter-spacing: .35px; }
.insight-strip strong { display: block; margin: 11px 0 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #ececec; font-size: 21px; font-weight: 500; line-height: 1; }
.insight-strip small { color: #797979; font-size: 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; border-bottom: 1px solid #222c25; }
.tabs { display: flex; gap: 19px; height: 43px; }
.tab { padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #868686; font-size: 11px; font-weight: 550; }
.tab.active { border-bottom-color: #e0e0e0; color: #e9e9e9; }
.tab b { margin-left: 4px; font-size: 10px; font-weight: 500; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-right > span { max-width: 520px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #7e7e7e; font-size: 10px; }
.feed { display: grid; gap: 9px; margin-top: 12px; }
#notice { margin: 0 0 17px; padding: 12px 14px; border: 1px solid #514235; border-radius: 7px; background: #28221b; color: #d4b58e; font-size: 11px; line-height: 1.45; }

.card { padding: 17px 18px 14px; border: 1px solid #252d28; border-radius: 10px; background: linear-gradient(105deg, #181716 0%, #131a16 54%, #10241a 100%); box-shadow: none; }
.card.new { border-color: #303a32; }
.card.negative { background: linear-gradient(105deg, #181716 0%, #1b1718 54%, #27171c 100%); }
.card-top { display: flex; justify-content: space-between; gap: 20px; }
.coin-info { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.coin-image { flex: none; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #242b25; }
.coin-image.fallback { display: grid; place-items: center; color: #bcbcbc; font-size: 14px; font-weight: 700; }
.coin-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.coin-info h3 { margin: 0 4px 0 0; color: #efefef; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.symbol { margin-left: 7px; color: #a5a5a5; font-size: 11px; font-weight: 500; }
.live-label { padding: 2px 6px; border: 1px solid #355144; border-radius: 4px; background: #203429; color: #9acbad; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #8d8d8d; font-size: 10px; }
.handle { color: #c4c4c4; }
.dot { color: #656565; }
.latency { color: #b4c4e1; }
.card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; min-width: 128px; }
.card-cap { text-align: right; }
.cap-label { display: block; color: #878787; font-size: 9px; font-weight: 600; letter-spacing: .4px; }
.card-cap strong { display: block; margin-top: 3px; color: #ececec; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 650; }
.card.positive .card-cap strong { color: #77bf97; }
.card.negative .card-cap strong { color: #e18f87; }
.card-performance { text-align: right; }
.card-performance span { display: block; color: #858585; font-size: 9px; font-weight: 600; letter-spacing: .4px; }
.card-performance strong { display: block; margin-top: 2px; color: #9a9a9a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 600; }
.card-performance.positive strong { color: #77bf97; }
.card-performance.negative strong { color: #e18f87; }
.new-label { padding: 2px 6px; border: 1px solid #58343d; border-radius: 4px; background: #382329; color: #e9a4b3; font-size: 9px; font-weight: 700; }
.time { color: #888; font-size: 10px; }
.note { margin: 12px 0 0 47px; color: #acacac; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.card-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 15px 0 0; }
.metric-cell { min-width: 0; padding: 12px 13px; border: 1px solid #29352d; border-radius: 7px; background: #101713a8; }
.metric-cell strong { display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4e4e4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 500; }
.metric-cell.positive strong, td.positive { color: #77bf97; }
.metric-cell.negative strong, td.negative { color: #e18f87; }
.metric-cell.muted strong { color: #999; }
.quality-line { margin: 9px 0 0; color: #7f7f7f; font-size: 10px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #29352d; }
.address { display: flex; align-items: center; gap: 8px; min-width: 0; }
.address span { color: #858585; font-size: 10px; font-weight: 600; }
.address code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c8c8c8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.card-actions { display: flex; gap: 6px; flex: none; }
.empty { padding: 56px 18px; border: 1px dashed #28332b; border-radius: 9px; background: #101511; color: #999; text-align: center; }
.empty h3 { margin: 0 0 7px; color: #ddd; font-size: 15px; font-weight: 600; }
.empty p { margin: 0; font-size: 11px; }
footer { margin: 25px 0 0; padding: 17px 0; border-top: 1px solid #2b2b2b; color: #777; font-size: 10px; }

.view-heading { margin-top: 5px; margin-bottom: 24px; }
.profile-picker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.picker-item { min-height: 29px; padding: 5px 11px; border: 1px solid #2b332e; border-radius: 6px; background: #151b17; color: #aaa; font-size: 11px; }
.picker-item.selected { background: #202922; border-color: #3a493e; color: #eee; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.profile-summary { padding: 20px; border: 1px solid #252e27; border-radius: 10px; background: #111713; color: #e8e8e8; text-align: left; }
.profile-summary:hover, .card:hover { border-color: #3d4b40; }
.profile-summary strong { display: block; margin: 8px 0; font-size: 17px; font-weight: 600; }
.summary-line { display: block; margin-top: 6px; color: #929292; font-size: 11px; }
.summary-return { display: block; margin-top: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 21px; border: 1px solid #252e27; border-radius: 10px; background: #111713; }
.profile-hero h2 { margin: 5px 0 6px; font-size: 20px; font-weight: 600; }
.profile-hero p { margin: 0; color: #888; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 13px; }
.coverage-note { color: #929292; font-size: 11px; line-height: 1.6; }
.profile-calls { display: grid; gap: 9px; margin-top: 28px; }
.profile-calls h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.disclosure { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 17px; padding: 13px 16px; border: 1px solid #252e27; border-radius: 8px; background: #111713; color: #a2a2a2; font-size: 11px; line-height: 1.55; }
.disclosure strong { flex: none; color: #dedede; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid #252e27; border-radius: 9px; background: #111713; }
.paper-table { width: 100%; min-width: 950px; border-collapse: collapse; text-align: left; }
.paper-table th { padding: 13px 14px; background: #161e18; color: #999; font-size: 9px; font-weight: 650; letter-spacing: .5px; white-space: nowrap; }
.paper-table td { padding: 13px 14px; border-top: 1px solid #303030; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; white-space: nowrap; }
.paper-table tr:hover td { background: #1b251e; }
.paper-table td:first-child small { display: block; margin-top: 4px; color: #858585; font-family: Inter, -apple-system, sans-serif; font-size: 10px; }
.paper-table .table-link { padding: 0; border: 0; background: none; color: #ddd; font: 600 12px Inter, -apple-system, sans-serif; }
.paper-table .table-link:hover { text-decoration: underline; }
.paper-table .status-cell { color: #8d8d8d; font-family: Inter, -apple-system, sans-serif; font-size: 10px; }

dialog#callDetails { width: min(820px, calc(100% - 24px)); max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid #334036; border-radius: 11px; background: #101611; color: #e8e8e8; box-shadow: 0 30px 90px #000a; }
dialog::backdrop { background: #000b; }
.detail-head { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #353535; }
.detail-head h2 { margin: 0 0 5px; font-size: 19px; font-weight: 600; }
.detail-head p { margin: 0; overflow-wrap: anywhere; color: #898989; font-size: 11px; }
#closeDetails { width: 28px; height: 28px; flex: none; border: 1px solid #434343; border-radius: 6px; background: #272727; color: #ddd; font-size: 17px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chart-title { margin: 24px 0 10px; font-size: 13px; font-weight: 600; }
.price-chart { display: block; width: 100%; height: 190px; border: 1px solid #28342b; border-radius: 7px; background: #111a14; }
.sample-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sample-times span { padding: 5px 7px; border: 1px solid #363636; border-radius: 5px; color: #9d9d9d; font-size: 10px; }

@media (max-width: 1120px) {
  .stats-grid, .card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-right > span { max-width: 270px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .content { padding: 24px 20px; }
  .topbar { padding: 0 20px; }
  .insight-strip { gap: 7px; }
  .insight-strip > div { padding: 14px; }
  .toolbar-right > span { display: none; }
}
@media (max-width: 670px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 9px 14px; border-right: 0; border-bottom: 1px solid #222a25; }
  .brand, .profiles-header, .sidebar-bottom { display: none; }
  .sidebar .workspace-nav { display: flex; gap: 5px; margin: 0 0 6px; }
  .sidebar .workspace-nav > span { display: none; }
  .sidebar .side-link { width: auto; padding: 0 9px; font-size: 10px; white-space: nowrap; }
  .sidebar .side-link b { display: none; }
  .profile-list { display: flex; gap: 4px; overflow-x: auto; }
  .profile-item { min-width: max-content; padding: 4px 7px; }
  .indicator { display: none; }
  .topbar { height: 50px; padding: 0 14px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: block; font-size: 11px; font-weight: 700; }
  .top-actions { gap: 5px; }
  .top-actions #notify { display: none; }
  .top-actions .secondary-button, .top-actions .primary-button { min-height: 27px; padding: 4px 7px; font-size: 10px; }
  .content { padding: 20px 14px; }
  .page-heading { align-items: flex-start; }
  .heading-stats { gap: 5px; }
  .heading-stat { min-width: 50px; padding-left: 7px; }
  .heading-stat strong { font-size: 13px; }
  .heading-stat span { max-width: 60px; white-space: normal; line-height: 1.25; font-size: 8px; }
  .insight-strip { grid-template-columns: 1fr 1fr; }
  .insight-strip > div:last-child { grid-column: 1 / -1; min-height: 0; }
  .card { padding: 14px; }
  .coin-info { gap: 8px; }
  .coin-image { width: 34px; height: 34px; }
  .coin-info h3 { font-size: 12px; }
  .card-top { gap: 8px; }
  .card-badges { gap: 5px; min-width: 90px; }
  .card-cap strong { font-size: 14px; }
  .card-performance strong { font-size: 13px; }
  .cap-label, .card-performance span { font-size: 8px; }
  .note { margin-left: 0; }
  .card-metrics { gap: 5px; }
  .metric-cell { padding: 10px; }
  .metric-cell strong { font-size: 13px; }
  .card-bottom { align-items: flex-start; flex-direction: column; }
  .address { max-width: 100%; }
  .card-actions { align-self: flex-end; }
  .stats-grid, .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { display: block; }
  .profile-hero a { margin-top: 13px; }
  .disclosure { display: block; }
  .disclosure strong { display: block; margin-bottom: 5px; }
}
