:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-strong: #f8fafc;
  --ink: #0b1220;
  --muted: #5f6b7a;
  --line: #d7dee8;
  --blue: #1f5fae;
  --green: #0f766e;
  --red: #8f4a4a;
  --gold: #7a6428;
  --shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  --card-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

@font-face {
  font-family: "Science Gothic";
  src: url("./font/static/ScienceGothic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background: transparent;
}

body.fullscreen-feed {
  overflow: hidden;
}

body.fullscreen-feed.cursor-hidden,
body.fullscreen-feed.cursor-hidden * {
  cursor: none !important;
}

body.ticker-dragging {
  cursor: grabbing;
  user-select: none;
}

button,
a,
select {
  font: inherit;
}

.shell {
  width: min(1720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 16px;
}

.page-footer {
  padding: 14px 2px 4px;
}

.page-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.page-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.page-footer a:hover,
.page-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.footer-x-link {
  display: inline-flex;
  align-items: center;
}

.footer-x-logo {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  object-fit: contain;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 2px 8px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: "Science Gothic", "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 700;
}

.brand-disclaimer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.inline-x-logo {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  object-fit: contain;
  vertical-align: -2px;
}

.inline-x-link {
  display: inline-flex;
  align-items: center;
}

.x-login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 13px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.x-login-button:hover,
.x-login-button:focus-visible {
  border-color: rgba(31, 95, 174, 0.38);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  outline: none;
}

.x-login-logo {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  object-fit: contain;
}

h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #243345;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(9, 138, 91, 0.13);
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.metric {
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.settings-metric {
  position: relative;
}

.metric-label,
.metric-note {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric strong {
  display: block;
  margin: 4px 0 3px;
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  line-height: 1;
}

.source-toggle {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.source-toggle:hover,
.source-toggle:focus-visible {
  border-color: rgba(31, 95, 174, 0.55);
  background: #ffffff;
  outline: none;
}

.source-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin-top: 9px;
}

.source-form[hidden] {
  display: none;
}

.settings-form {
  display: grid;
  gap: 10px;
}

.settings-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.settings-popover[hidden] {
  display: none;
}

.settings-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-title,
.settings-subtitle {
  margin: 0;
}

.settings-title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.settings-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.settings-close {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  place-items: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.settings-close:hover,
.settings-close:focus-visible {
  background: #ffffff;
  border-color: rgba(31, 95, 174, 0.4);
  outline: none;
}

.settings-section {
  min-width: 0;
  margin: 0;
  padding: 11px 12px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fbfcfe;
}

.settings-section legend {
  margin-bottom: 7px;
  padding: 0 4px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.settings-section-compact {
  gap: 8px;
}

.settings-check,
.settings-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.settings-check input,
.settings-choice input {
  margin: 0;
}

.settings-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-pill,
.settings-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.settings-pill {
  padding: 0 12px;
}

.settings-choice-card {
  min-height: 42px;
  padding: 0 12px;
}

.settings-stack {
  display: grid;
  gap: 8px;
}

.settings-pill input,
.settings-choice-card input {
  margin: 0;
}

.settings-pill:has(input:checked),
.settings-choice-card:has(input:checked) {
  border-color: rgba(31, 95, 174, 0.42);
  background: #eef4fb;
  box-shadow: 0 8px 18px rgba(31, 95, 174, 0.08);
}

.settings-message {
  min-height: 16px;
  margin-top: 2px;
}

.source-input {
  min-width: 0;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.source-input[name="category"],
.category-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #627184 50%),
    linear-gradient(135deg, #627184 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 1px),
    calc(100% - 11px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.source-input:focus-visible {
  border-color: rgba(31, 95, 174, 0.65);
  outline: 3px solid rgba(31, 95, 174, 0.14);
}

.source-submit {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.source-submit:disabled {
  cursor: wait;
  opacity: 0.64;
}

.source-message {
  grid-column: 1 / -1;
  min-height: 15px;
  margin: 0;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.metric-select {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 5px 0 4px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.metric-select:focus-visible {
  border-color: rgba(29, 117, 216, 0.7);
  outline: 3px solid rgba(29, 117, 216, 0.16);
}

.speed-control-wrap {
  margin: 7px 0 4px;
}

.speed-slider {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9e2ec 0%, #b7c7db 50%, #7fa3ce 100%);
  appearance: none;
  outline: none;
}

.speed-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  appearance: none;
  cursor: pointer;
}

.speed-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.speed-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.feed-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px 8px;
}

.tablist {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.tab {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3e4d61;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.tab:hover,
.tab:focus-visible {
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.fullscreen-tab {
  display: inline-grid;
  border-right: 1px solid rgba(99, 112, 131, 0.24);
  margin-right: 4px;
  min-width: 34px;
  place-items: center;
}

.fullscreen-tab[aria-pressed="true"] {
  background: var(--blue);
  color: #ffffff;
}

.category-select {
  min-width: 240px;
  min-height: 34px;
  padding: 0 36px 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
}

.category-select:focus-visible {
  border-color: rgba(31, 95, 174, 0.55);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.1),
    0 0 0 3px rgba(31, 95, 174, 0.12);
  outline: none;
}

.fullscreen-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
  position: absolute;
  inset: 0;
  content: "";
}

.fullscreen-icon::before {
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 2px 0 0;
  clip-path: polygon(0 0, 44% 0, 44% 16%, 16% 16%, 16% 44%, 0 44%);
}

.fullscreen-icon::after {
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 2px;
  clip-path: polygon(56% 84%, 84% 84%, 84% 56%, 100% 56%, 100% 100%, 56% 100%);
}

.ticker-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 610px;
  padding: 14px 0 24px;
  cursor: grab;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  user-select: none;
}

.ticker-wrap::-webkit-scrollbar {
  display: none;
}

.ticker-wrap.dragging {
  cursor: grabbing;
}

.ticker-wrap.dragging * {
  cursor: grabbing;
}

body.ticker-dragging .tweet-card {
  pointer-events: none;
}

.ticker-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  will-change: scroll-position;
}

.tweet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 32px));
  min-height: 562px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  cursor: grab;
  box-shadow: var(--card-shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.fresh-tag {
  display: inline-flex;
  align-self: flex-start;
  min-height: 27px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 999px;
  background: #edf7f6;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 25px;
  text-transform: uppercase;
}

.tweet-card.seen .fresh-tag {
  display: none;
}

.tweet-card:first-child {
  margin-left: 18px;
}

.tweet-card:last-child {
  margin-right: 18px;
}

.tweet-card:hover,
.tweet-card:focus-visible {
  border-color: rgba(29, 117, 216, 0.55);
  box-shadow: 0 22px 52px rgba(29, 55, 86, 0.2);
  outline: none;
  transform: translateY(-4px);
}

.tweet-top {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.avatar {
  display: grid;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  place-items: center;
  background: #eef4fb;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author {
  min-width: 0;
}

.author-link {
  display: inline-block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.author-link:hover strong,
.author-link:focus-visible strong,
.author-link:hover .handle,
.author-link:focus-visible .handle {
  color: var(--blue);
}

.author strong,
.handle,
.timestamp-row,
.source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author strong {
  display: block;
  font-size: 1.45rem;
}

.handle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.timestamp-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
}

.timestamp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.timestamp-link:hover .timestamp,
.timestamp-link:focus-visible .timestamp {
  color: var(--blue);
}

.timestamp {
  color: #7b8797;
  font-size: 1rem;
  font-weight: 800;
}

.edited-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.open-on-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(16, 24, 32, 0.15);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.open-on-x-logo {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}

.x-badge {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  place-items: center;
  background: #000000;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.x-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.content-notice a {
  color: inherit;
  text-decoration: none;
}

.content-notice a:hover,
.content-notice a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

.content-notice-icon {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.content-notice-icon.reply {
  border-right: 0;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(-45deg);
}

.tweet-text {
  display: -webkit-box;
  min-height: 132px;
  margin-bottom: 20px;
  overflow: hidden;
  color: #203044;
  font-size: clamp(1.7rem, 2.15vw, 2.34rem);
  line-height: 1.36;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tweet-text a {
  color: var(--blue);
  text-decoration: none;
}

.tweet-text a:hover,
.tweet-text a:focus-visible {
  text-decoration: underline;
}

.tweet-media {
  position: relative;
  display: block;
  width: 100%;
  height: 190px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.tweet-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 28px;
}

.play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.78);
  place-items: center;
  transform: translate(-50%, -50%);
}

.play-indicator::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #ffffff;
  content: "";
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.source {
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1rem;
  font-weight: 900;
}

.source.News {
  background: #eef4fb;
  color: #244c7a;
}

.source.Finance {
  background: #edf7f6;
  color: #0f766e;
}

.source.Sports {
  background: #f6f2e6;
  color: var(--gold);
}

.source.Politics {
  background: #f4eeee;
  color: var(--red);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 800;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.empty-feed {
  display: grid;
  width: min(760px, calc(100vw - 32px));
  min-height: 562px;
  margin: 0 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  place-items: center;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.empty-feed p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ticker-fade {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 62px;
  pointer-events: none;
}

.ticker-fade.left {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.ticker-fade.right {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

body.fullscreen-feed .topbar,
body.fullscreen-feed .overview,
body.fullscreen-feed .panel-header {
  display: none;
}

body.fullscreen-feed .shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.fullscreen-feed .feed-panel,
.feed-panel:fullscreen {
  width: 100%;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: none;
}

.feed-panel:fullscreen .panel-header {
  display: none;
}

body.fullscreen-feed .ticker-wrap,
.feed-panel:fullscreen .ticker-wrap {
  min-height: 100vh;
  padding: 42px 0;
}

body.fullscreen-feed .tweet-card,
.feed-panel:fullscreen .tweet-card {
  width: min(840px, calc(100vw - 52px));
  min-height: calc(100vh - 84px);
}

body.fullscreen-feed .tweet-media,
.feed-panel:fullscreen .tweet-media {
  height: min(28vh, 280px);
}

body.fullscreen-feed .ticker-fade.left,
.feed-panel:fullscreen .ticker-fade.left {
  background: linear-gradient(90deg, #f8fafc, rgba(248, 250, 252, 0));
}

body.fullscreen-feed .ticker-fade.right,
.feed-panel:fullscreen .ticker-fade.right {
  background: linear-gradient(270deg, #f8fafc, rgba(248, 250, 252, 0));
}

@media (prefers-reduced-motion: reduce) {
  .ticker-wrap {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .shell {
    padding: 14px;
  }

  .topbar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .settings-popover {
    left: 0;
    right: auto;
    width: 100%;
  }

  .panel-header {
    padding: 14px 14px 10px;
  }

  .tablist {
    width: 100%;
    overflow-x: auto;
  }

  .category-select {
    min-width: 0;
    width: 100%;
  }

  .tweet-card:first-child {
    margin-left: 14px;
  }

  .tweet-card:last-child {
    margin-right: 14px;
  }

}

@media (max-width: 560px) {
  .shell {
    padding: 10px;
  }

  .status-cluster {
    width: 100%;
    justify-content: center;
  }

  .metric {
    padding: 10px 12px;
  }

  .settings-pill-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticker-wrap {
    min-height: 398px;
  }

  .tweet-card {
    min-height: 356px;
    padding: 22px;
  }

  .tweet-top {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .avatar {
    width: 50px;
    height: 50px;
  }

  .x-badge {
    display: none;
  }

  .meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .source {
    max-width: 100%;
  }
}
