:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1018;
  color: #f3f6fb;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(68, 104, 158, 0.2), transparent 32rem),
    radial-gradient(circle at 100% 16%, rgba(33, 138, 115, 0.12), transparent 28rem),
    #0b1018;
}

.feed-page { min-height: 100vh; padding: 48px 24px; }

.feed-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #273348;
  border-radius: 20px;
  background: rgba(16, 24, 37, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 40px 30px;
  border-bottom: 1px solid #273348;
}

.feed-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.feed-sidebar { padding: 32px 18px; border-right: 1px solid #273348; background: rgba(9, 15, 25, 0.35); }
.sidebar-label { margin: 0 10px 12px; color: #7285a2; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.feed-choice { display: block; width: 100%; padding: 11px 10px; border: 0; border-radius: 8px; background: transparent; color: #9eafc9; cursor: pointer; font: inherit; text-align: left; transition: background 150ms ease, color 150ms ease; }
.feed-choice:hover, .feed-choice:focus-visible { background: #1b2a40; color: #eaf1fc; }
.feed-choice.active { background: #203a5b; color: #eaf1fc; font-weight: 700; }
.feed-choice:focus-visible { outline: 2px solid #7fb5ff; outline-offset: 2px; }

.eyebrow, .source-label {
  margin: 0 0 8px;
  color: #90a4c4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; letter-spacing: -0.035em; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.12; }

.account-status, .live-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  color: #b9f6df;
  font-size: 0.82rem;
  font-weight: 650;
}

.account-status {
  padding: 9px 12px;
  border: 1px solid #285b51;
  border-radius: 999px;
  background: #102f2a;
}

.account-status i { width: 7px; height: 7px; border-radius: 50%; background: #5ee3b1; box-shadow: 0 0 0 4px rgba(94, 227, 177, 0.12); }

.headline-section { padding: 32px 40px 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.live-label { color: #91a4c1; }
.live-label::before { width: 6px; height: 6px; border-radius: 50%; background: #62a8ff; content: ""; }

.headline-list { margin: 0; padding: 0; list-style: none; }
.headline-item { display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid #263247; }
.headline-content { flex: 1; min-width: 0; }
.headline-item a, .headline-title { display: block; color: #f3f6fb; font-size: clamp(1rem, 2.2vw, 1.13rem); font-weight: 650; line-height: 1.45; text-decoration: none; }
.headline-item a, .headline-title { padding: 21px 0 5px; }
.headline-item a:hover, .headline-item a:focus-visible { color: #7fb5ff; }
.headline-item a:focus-visible { outline: 2px solid #7fb5ff; outline-offset: 4px; border-radius: 2px; }
.headline-item a span { color: #79acfa; font-weight: 400; }
.headline-item time { display: block; padding: 0 0 20px; color: #8da0bd; font-size: 0.82rem; }
.dismiss-button { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 18px; padding: 0 0 2px; border: 1px solid #3a4960; border-radius: 50%; background: transparent; color: #a8b7cc; cursor: pointer; font-size: 1.25rem; line-height: 1; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.dismiss-button:hover:not(:disabled), .dismiss-button:focus-visible { border-color: #dc8791; background: #3a2028; color: #ffc2c9; }
.dismiss-button:focus-visible { outline: 2px solid #7fb5ff; outline-offset: 2px; }
.dismiss-button:disabled { cursor: wait; opacity: 0.45; }

.loading-message { width: min(100% - 48px, 900px); margin: 48px auto; color: #afbed5; }
.headline-section .loading-message { width: auto; margin: 32px 0; }
.feed-error { margin: 24px 0; padding: 14px 16px; border: 1px solid #75434a; border-radius: 10px; background: #321d25; color: #ffbdc5; }
.feed-message { padding: 40px; }
.feed-message h1 { margin-bottom: 16px; }
.feed-message p:last-child { color: #c0cce0; line-height: 1.55; }

@media (max-width: 640px) {
  .feed-page { padding: 16px; }
  .feed-shell { border-radius: 14px; }
  .feed-header { align-items: flex-start; flex-direction: column; gap: 18px; padding: 26px 24px 24px; }
  .feed-layout { display: block; }
  .feed-sidebar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #273348; }
  .sidebar-label { flex: 0 0 auto; margin: 0 4px 0 0; }
  .feed-choice { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .headline-section { padding: 25px 24px 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .headline-item a { padding-top: 18px; }
}
