:root {
  --bg: #07080a;
  --panel: #0d0f13;
  --panel-2: #12151b;
  --line: #20242d;
  --line-soft: rgba(255, 255, 255, 0.07);
  --fg: #eef1f5;
  --muted: #8d96a7;
  --faint: #5d6674;
  --green: #7cffb2;
  --red: #ff657a;
  --yellow: #ffc46b;
  --blue: #8fb8ff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #c7dbff; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 8, 10, 0.84);
  backdrop-filter: blur(18px);
}

.search { display: flex; gap: 8px; min-width: 0; }
.search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(13, 15, 19, 0.92);
  color: var(--fg);
  font: inherit;
  outline: none;
}
.search input:focus { border-color: rgba(124, 255, 178, 0.72); }
.search button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--green);
  color: #06100b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.status-strip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 21, 27, 0.78);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.pill.on { color: var(--green); border-color: rgba(124, 255, 178, 0.38); }
.pill.off, .pill.warn { color: var(--red); border-color: rgba(255, 101, 122, 0.38); }

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  gap: 18px;
  padding: 18px;
}

.token-card, .metrics, .panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: none;
}

.token-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 18px;
}
.token-image {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.token-main { min-width: 0; }
.eyebrow {
  color: var(--green);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
h1 {
  margin: 4px 0 3px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subtitle {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.metrics div {
  padding: 16px 14px;
  border-left: 1px solid var(--line-soft);
}
.metrics div:first-child { border-left: 0; }
.metrics span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.metrics strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  padding: 0 18px 18px;
}
.side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.timeline-panel { min-height: calc(100vh - 190px); }
.tweets-panel { min-height: 520px; }

.panel {
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head.tight { padding-bottom: 10px; }
.panel h2 {
  margin: 0;
  color: var(--fg);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.panel p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.count {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  line-height: 24px;
  text-align: center;
}

.empty {
  margin: 14px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--faint);
  text-align: center;
}

.timeline { padding: 10px 10px 14px; }
.event {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--line-soft);
  animation: enter 160ms ease-out;
}
.event-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.event-rail:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -10px;
  width: 1px;
  background: var(--line);
}
.event-rail span {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
}
.event.ok .event-rail span { background: var(--green); border-color: var(--green); }
.event.danger .event-rail span { background: var(--red); border-color: var(--red); box-shadow: 0 0 20px rgba(255, 101, 122, 0.34); }
.event.warning .event-rail span { background: var(--yellow); border-color: var(--yellow); }
.event-main { min-width: 0; }
.event-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.event h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.event time, .tweet time {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}
.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge.ok { color: var(--green); background: rgba(124, 255, 178, 0.09); }
.badge.danger { color: var(--red); background: rgba(255, 101, 122, 0.09); }
.badge.pending { color: var(--yellow); background: rgba(255, 196, 107, 0.09); }
.event p {
  margin: 8px 0 0;
  color: var(--muted);
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
}

.kv {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px 12px;
  padding: 14px 16px 16px;
}
.kv span {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.kv strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(143, 184, 255, 0.28);
  border-radius: 999px;
  background: rgba(143, 184, 255, 0.07);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hook-meta {
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hook-analysis {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}
.hook-analysis span {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
}
.hook-analysis p {
  margin: 0;
  color: #d7dce5;
}

.dd-content {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.dd-empty { margin: 0; }
.dd-section {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.dd-section h3 {
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--green);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.dd-grid {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 10px 11px 11px;
}
.dd-grid > span {
  color: var(--faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.dd-grid > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #dce2eb;
  font-weight: 600;
}
.dd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.dd-chips a {
  max-width: 135px;
  overflow: hidden;
  padding: 2px 7px;
  border: 1px solid rgba(143, 184, 255, 0.24);
  border-radius: 999px;
  background: rgba(143, 184, 255, 0.06);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-list {
  display: grid;
  gap: 5px;
}

.tweets-list { padding: 0 10px 12px; }
.tweet {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
  animation: enter 160ms ease-out;
}
.tweet-avatar img, .tweet-avatar span {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
}
.tweet-main { min-width: 0; }
.tweet-head {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.tweet-head a {
  overflow: hidden;
  color: var(--fg);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tweet-head span { color: var(--faint); }
.tweet-body {
  margin-top: 3px;
  color: #e9edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.38;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.media {
  display: grid;
  gap: 2px;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}
.media.count-2, .media.count-4 { grid-template-columns: 1fr 1fr; }
.media.count-3 { grid-template-columns: 1fr 1fr; }
.media.count-3 > :first-child { grid-row: span 2; }
.media img, .media video {
  width: 100%;
  min-height: 125px;
  max-height: 320px;
  object-fit: cover;
  background: var(--panel-2);
}
.quote {
  margin-top: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.quote p { margin: 4px 0 0; color: var(--muted); }
.tweet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
  color: var(--faint);
  font-size: 11px;
}
.tweet-foot a { margin-left: auto; }

@keyframes enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .topbar, .summary, .workspace { grid-template-columns: 1fr; }
  .timeline-panel { min-height: 0; }
  .status-strip { justify-content: flex-start; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(odd) { border-left: 0; }
}

@media (max-width: 620px) {
  .topbar, .summary, .workspace { padding-left: 10px; padding-right: 10px; }
  .search { flex-direction: column; }
  .search button { width: 100%; }
  h1 { font-size: 20px; white-space: normal; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .metrics div:first-child { border-top: 0; }
}

/* DD premium pass: dense trader console, calm hierarchy, low-noise chrome. */
:root {
  --bg: #050608;
  --panel: #0b0d11;
  --panel-2: #101319;
  --panel-3: #151922;
  --line: rgba(255, 255, 255, 0.105);
  --line-soft: rgba(255, 255, 255, 0.065);
  --fg: #f4f7fb;
  --muted: #9aa3b2;
  --faint: #687180;
  --green: #7dffbd;
  --red: #ff6176;
  --yellow: #ffd073;
  --blue: #9cbeff;
  --amber: #ffb86b;
  --radius: 16px;
  --radius-sm: 10px;
}

html { background: var(--bg); }
body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 240px),
    radial-gradient(circle at 70% -10%, rgba(124,255,178,0.075), transparent 34vw),
    var(--bg);
  font: 12px/1.42 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { transition: color 140ms ease, border-color 140ms ease, background 140ms ease; }

.topbar {
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: 12px;
  padding: 10px 14px;
  border-color: rgba(255,255,255,0.08);
  background: rgba(5, 6, 8, 0.78);
  box-shadow: 0 1px 0 rgba(255,255,255,0.035);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--fg);
}
.brand-mark span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background: #000;
  color: #fff;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.08em;
}
.brand-mark strong {
  color: #dfe5ee;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.search {
  gap: 6px;
  max-width: 860px;
}
.search input {
  height: 36px;
  border-radius: 999px;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  padding: 0 14px;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.search input::placeholder { color: #596170; }
.search input:focus {
  border-color: rgba(124,255,178,0.75);
  background: rgba(124,255,178,0.055);
}
.search button {
  height: 36px;
  border-radius: 999px;
  padding: 0 15px;
  background: #f2f6fb;
  color: #050608;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-strip { gap: 5px; }
.pill {
  height: 22px;
  border-color: rgba(255,255,255,0.105);
  background: rgba(255,255,255,0.045);
  font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}
.pill.on {
  color: var(--green);
  border-color: rgba(124,255,178,0.28);
  background: rgba(124,255,178,0.075);
}
.pill.off, .pill.warn {
  color: var(--red);
  border-color: rgba(255,97,118,0.28);
  background: rgba(255,97,118,0.075);
}

.summary {
  display: block;
  padding: 10px 14px 8px;
}
.token-card, .metrics, .panel {
  border-color: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018)), var(--panel);
}
.token-card {
  gap: 12px;
  padding: 14px;
}
.token-image {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}
.eyebrow {
  color: var(--green);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}
h1 {
  margin: 5px 0 4px;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.07em;
}
.subtitle {
  max-width: 900px;
  color: #a9b1bf;
  font-size: 12px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metrics div {
  padding: 13px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.metrics span, .kv span, .dd-label {
  color: #6f7888;
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
}
.metrics strong {
  margin-top: 8px;
  font: 750 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workspace {
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 10px;
  padding: 0 14px 14px;
}
.side { gap: 10px; }
.timeline-panel { min-height: calc(100vh - 154px); }
.tweets-panel {
  min-height: calc(100vh - 154px);
  align-self: stretch;
}
.panel { border-radius: var(--radius); }
.panel-head {
  align-items: center;
  min-height: 46px;
  padding: 11px 13px;
  background: rgba(255,255,255,0.018);
}
.panel h2 {
  font-size: 10px;
  letter-spacing: 0.16em;
}
.panel p {
  margin-top: 4px;
  color: #6e7787;
  font-size: 11px;
}
.count {
  height: 22px;
  min-width: 28px;
  background: rgba(255,255,255,0.055);
  color: #c2cad7;
  font: 750 10px/22px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.empty {
  margin: 10px;
  padding: 14px;
  border-color: rgba(255,255,255,0.09);
  border-radius: 12px;
  background: rgba(255,255,255,0.018);
}

.timeline { padding: 6px 10px 10px; }
.event {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 4px 11px 0;
  cursor: pointer;
}
.event:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.035), transparent);
}
.event-rail:before { background: rgba(255,255,255,0.075); }
.event-rail span {
  width: 7px;
  height: 7px;
  margin-top: 8px;
}
.event h3 {
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.event p {
  margin-top: 6px;
  color: #9fa8b8;
  font-size: 12px;
}
.event-meta {
  gap: 8px;
  margin-top: 7px;
  color: #697282;
  font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.badge {
  min-height: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  font-size: 9px;
}
.badge.ok { border-color: rgba(124,255,178,0.2); }
.badge.danger { border-color: rgba(255,97,118,0.24); }
.badge.pending { border-color: rgba(255,208,115,0.24); }

.kv {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 13px;
}
.kv strong {
  color: #dbe2ec;
  font: 650 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.social-chip {
  min-height: 20px;
  border-color: rgba(156,190,255,0.22);
  background: rgba(156,190,255,0.065);
}
.hook-analysis {
  gap: 9px;
  font-size: 12px;
}

.dd-panel { border-color: rgba(124,255,178,0.14); }
.dd-content {
  display: block;
  padding: 0;
}
.dd-empty { margin: 10px; }
.dd-section {
  display: block;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,0.065);
  background: transparent;
}
.dd-section:first-child { border-top: 0; }
.dd-section h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px 12px 5px;
  border: 0;
  color: #dfe5ee;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.dd-section h3 span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #697282;
}
.dd-section.ok h3 span { background: var(--green); }
.dd-section.warn h3 span { background: var(--yellow); }
.dd-section.watch h3 span { background: #596170; }
.dd-grid {
  display: block;
  padding: 0 12px 10px;
}
.dd-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.035);
}
.dd-row:first-child { border-top: 0; }
.dd-row strong {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  color: #dde4ef;
  font: 650 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dd-row strong a {
  overflow-wrap: normal;
  word-break: normal;
}
.dd-row.note strong {
  color: #8e98a8;
  font-size: 10px;
  line-height: 1.25;
}
.dd-chips a {
  border-color: rgba(156,190,255,0.2);
  background: rgba(156,190,255,0.065);
  color: #b9ceff;
  font: 650 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dd-list {
  gap: 6px;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tweet {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 2px;
  cursor: pointer;
  border-radius: 10px;
}
.tweet:hover,
.tweet:focus-visible {
  background: linear-gradient(90deg, rgba(156,190,255,0.07), rgba(255,255,255,0.018));
  outline: 1px solid rgba(156,190,255,0.2);
  outline-offset: -1px;
}
.tweet-avatar img, .tweet-avatar span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.08);
}
.tweet-head a,
.tweet-head strong {
  font-size: 11px;
  font-weight: 780;
}
.tweet-head span, .tweet time { font-size: 9px; }
.tweet-body {
  color: #dce2eb;
  font-size: 12px;
  line-height: 1.32;
}
.tweet-foot {
  gap: 6px;
  color: #aeb8c8;
  font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tweet-foot span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
}
.tweets-list {
  padding: 0 8px 10px;
}

@media (max-width: 1280px) {
  .workspace {
    grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  }
  .side {
    grid-column: 1 / -1;
  }
  .tweets-panel {
    min-height: calc(100vh - 154px);
  }
}

@media (max-width: 1120px) {
  .topbar { grid-template-columns: 1fr; }
  .brand-mark { justify-content: space-between; }
  .workspace { grid-template-columns: 1fr; }
  .timeline-panel { min-height: 0; }
}

@media (max-width: 720px) {
  .brand-mark strong { display: none; }
  .summary, .workspace, .topbar { padding-left: 10px; padding-right: 10px; }
  .search { max-width: none; }
  h1 { font-size: 22px; }
}

/* Final DD polish: clearer empty state, better scan rows, less dead-black space. */
.metrics, .panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.044), rgba(255,255,255,0.015)),
    #0b0d11;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 0 0 1px rgba(0,0,0,0.35);
}
.metrics div {
  min-height: 58px;
}
.panel-head {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}
.timeline-panel,
.tweets-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012) 110px, transparent 260px),
    radial-gradient(circle at 50% 0%, rgba(156,190,255,0.04), transparent 32vw),
    #0b0d11;
}
.dd-panel {
  background:
    linear-gradient(180deg, rgba(124,255,178,0.045), rgba(255,255,255,0.012) 120px, transparent 260px),
    #0b0d11;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-style: solid;
  color: #818b9a;
  background: rgba(255,255,255,0.026);
  line-height: 1.35;
}
.tweet {
  margin: 5px 0;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-bottom-color: rgba(255,255,255,0.055);
}
.tweet:hover,
.tweet:focus-visible {
  border-color: rgba(156,190,255,0.2);
}
.tweet-head strong {
  overflow: hidden;
  color: #f0f4fa;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tweet-head span,
.tweet time {
  color: #7f8999;
  font-size: 10px;
}
.tweet-body {
  color: #eef2f7;
  font-size: 13px;
  line-height: 1.42;
}
.tweet-foot span {
  color: #b8c2d1;
}
