:root {
  color-scheme: dark;
  --bg: #030b10;
  --bg-2: #071722;
  --panel: rgba(12, 31, 42, 0.68);
  --panel-strong: rgba(16, 38, 54, 0.82);
  --line: rgba(178, 241, 232, 0.16);
  --line-strong: rgba(78, 240, 209, 0.35);
  --text: #f4fbf8;
  --muted: rgba(228, 246, 242, 0.76);
  --faint: rgba(228, 246, 242, 0.58);
  --brand: #2ee6bd;
  --cyan: #43d8ff;
  --orange: #ff9859;
  --danger: #ff6478;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-serif: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

body.light {
  color-scheme: light;
  --bg: #eef4ef;
  --bg-2: #dfe9e5;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(18, 50, 45, 0.16);
  --line-strong: rgba(18, 120, 98, 0.28);
  --text: #10201d;
  --muted: rgba(16, 32, 29, 0.66);
  --faint: rgba(16, 32, 29, 0.42);
  --shadow: 0 24px 70px rgba(46, 70, 66, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop-video {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(38, 226, 188, 0.24), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(91, 98, 255, 0.24), transparent 34%),
    radial-gradient(circle at 62% 90%, rgba(255, 128, 78, 0.13), transparent 36%),
    linear-gradient(120deg, var(--bg), var(--bg-2));
}

.backdrop-video span {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle, rgba(67, 216, 255, 0.28), transparent 24%),
    radial-gradient(circle at 72% 40%, rgba(46, 230, 189, 0.22), transparent 22%),
    radial-gradient(circle at 48% 76%, rgba(142, 97, 255, 0.26), transparent 25%);
  filter: blur(44px);
  opacity: 0.7;
  animation: auroraFloat 18s ease-in-out infinite alternate;
}

.backdrop-video span:nth-child(2) {
  animation-delay: -7s;
  animation-duration: 24s;
  transform: rotate(28deg);
}

.backdrop-video span:nth-child(3) {
  animation-delay: -13s;
  animation-duration: 30s;
  opacity: 0.46;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

@keyframes auroraFloat {
  from { transform: translate3d(-7%, -4%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(7%, 5%, 0) rotate(18deg) scale(1.08); }
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 20, 26, 0.84), rgba(5, 16, 20, 0.72));
  backdrop-filter: blur(24px);
  overflow-y: auto;
}

body.light .sidebar {
  background: rgba(239, 248, 243, 0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 24px;
  width: 100%;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 230, 189, 0.96), rgba(20, 96, 82, 0.95));
  box-shadow: 0 0 30px rgba(46, 230, 189, 0.22);
  font-weight: 900;
}

.brand strong {
  display: block;
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.32em;
}

.nav-section {
  margin: 14px 0 22px;
}

.nav-group {
  margin: 14px 0 22px;
}

.nav-group > p {
  margin: 0 10px 10px;
  color: var(--faint);
  font-size: 12px;
}

.nav-group > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin: 4px 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  transition: 180ms ease;
}

.nav-group > button:hover,
.nav-group > button.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(46, 230, 189, 0.12);
}

.nav-group > button[data-view="daily"] {
  border-color: rgba(255, 152, 89, 0.24);
  color: var(--orange);
  background: rgba(255, 152, 89, 0.09);
  font-weight: 800;
}

.nav-group > button[data-view="daily"]:hover,
.nav-group > button[data-view="daily"].active {
  border-color: rgba(255, 152, 89, 0.48);
  color: #ffd2b6;
  background: rgba(255, 152, 89, 0.18);
}

.nav-group > button em {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--orange);
  background: rgba(255, 152, 89, 0.14);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.nav-label {
  margin: 0 10px 10px;
  color: var(--faint);
  font-size: 12px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 4px 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(46, 230, 189, 0.12);
  border-color: var(--line-strong);
}

.nav-icon {
  width: 20px;
  color: var(--brand);
  opacity: 0.9;
}

.nav-count {
  margin-left: auto;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--orange);
  background: rgba(255, 152, 89, 0.14);
  text-align: center;
  font-size: 12px;
}

.main {
  min-width: 0;
  padding: 0 32px 72px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(3, 11, 16, 0.84), rgba(3, 11, 16, 0.2));
  backdrop-filter: blur(18px);
}

body.light .topbar {
  background: linear-gradient(180deg, rgba(238, 244, 239, 0.9), rgba(238, 244, 239, 0.24));
}

.icon-button,
.liquid-button,
.search-button {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
  box-shadow: inset 0 1px rgba(255,255,255,0.25), inset 0 -1px rgba(255,255,255,0.08), 0 12px 32px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.liquid-button:hover,
.search-button:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 230, 189, 0.55);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

#layout-toggle {
  width: auto;
  min-width: 58px;
  padding: 0 12px;
  white-space: nowrap;
}

.liquid-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05)),
    linear-gradient(135deg, rgba(46,230,189,0.9), rgba(67,216,255,0.8));
  color: #041411;
  font-weight: 800;
}

body.light .icon-button,
body.light .search-button {
  color: #12302b;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(18, 80, 70, 0.16);
}

.search-form {
  position: relative;
  flex: 1;
  max-width: 660px;
}

.search-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 56px 0 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  backdrop-filter: blur(18px);
}

body.light .search-form input {
  background: rgba(255,255,255,0.72);
  color: #10201d;
}

.search-button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #051513;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(12, 31, 42, 0.78);
  font-weight: 800;
  white-space: nowrap;
}

body.light .pill-button {
  color: #10201d;
  background: rgba(255, 255, 255, 0.78);
}

.auth-badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(3, 11, 16, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin: 28px auto 18px;
  max-width: 1320px;
  padding: 24px 8px 18px;
}

.hero-kicker,
.hero h2,
.hero p,
.hero .liquid-button {
  animation: riseIn 700ms ease both;
}

.hero h2 {
  margin: 6px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.2vw, 74px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  animation-delay: 0.2s;
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  animation-delay: 0.4s;
}

.hero .liquid-button {
  animation-delay: 0.6s;
  align-self: end;
  margin-bottom: 2px;
  min-height: 38px;
  padding: 0 16px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
}

.hero-kicker i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 20px var(--brand);
}

body:not([data-current-view="timeline"]) .hero,
body:is([data-current-view="platformHot"], [data-current-view="selected"], [data-current-view="market"], [data-current-view="clusters"]) .stat-row,
body:is([data-current-view="platformHot"], [data-current-view="selected"], [data-current-view="market"], [data-current-view="clusters"]) .toolbar {
  display: none;
}

body[data-current-view="platformHot"] .content-shell {
  padding-top: 34px;
}

body:is([data-current-view="selected"], [data-current-view="market"], [data-current-view="clusters"]) .content-shell {
  padding-top: 28px;
}

body[data-current-view="selected"] .story-card,
body[data-current-view="clusters"] .cluster-card,
body[data-current-view="market"] .market-filters,
body[data-current-view="market"] .quote-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-current-view="selected"] .story-card,
body[data-current-view="clusters"] .cluster-card {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto 18px;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--panel);
  backdrop-filter: blur(20px);
  text-align: left;
}

.stat-card .stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(46, 230, 189, 0.12);
  color: var(--brand);
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
}

.stat-card > div > small {
  grid-column: 1;
  grid-row: 1;
}

.stat-card > div > strong {
  grid-column: 2;
  grid-row: 1;
}

.stat-card > div > span {
  grid-column: 1 / -1;
  grid-row: 2;
  line-height: 1.1;
}

.stat-card strong {
  display: block;
  margin-top: 0;
  font-size: 26px;
  line-height: 1;
}

.stat-card small {
  color: var(--brand);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto 22px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

body.light .toolbar {
  background: rgba(255, 255, 255, 0.68);
}

.filter-tabs,
.view-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.filter-tabs button,
.view-controls button {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
}

.view-controls .text-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(46, 230, 189, 0.12);
  font-weight: 800;
}

.filter-tabs button.active,
.view-controls button:hover,
.view-controls button.active {
  color: var(--text);
  background: rgba(46, 230, 189, 0.18);
}

.content-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.timeline-day {
  display: block;
  margin-bottom: 30px;
}

.date-stamp {
  position: static;
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 12px;
  text-align: left;
  color: var(--muted);
}

.date-stamp strong {
  color: var(--text);
  font-size: 18px;
}

.date-stamp span {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-list::before {
  display: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 28px;
}

.load-more-wrap .liquid-button {
  min-width: 260px;
  justify-content: center;
}

.story-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 94px;
  gap: 18px;
  min-height: 178px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(46,230,189,0.11), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: riseIn 550ms ease both;
}

.layout-compact .story-card {
  min-height: 128px;
}

.story-time {
  position: relative;
  padding-right: 18px;
  text-align: left;
}

.story-time strong {
  display: block;
  color: var(--text);
  font-size: 23px;
}

.story-time span {
  color: var(--muted);
}

.story-time i {
  position: absolute;
  top: 9px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(46, 230, 189, 0.13), 0 0 22px var(--brand);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 13px;
}

.story-meta span:first-child {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.story-body h2 {
  margin: 12px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.15vw, 32px);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.story-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

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

.tag-row span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(46, 230, 189, 0.12);
  font-size: 12px;
}

.story-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-self: center;
}

.story-side div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.story-side b {
  font-size: 18px;
  color: var(--text);
}

.story-side span {
  color: var(--muted);
  font-size: 12px;
}

.page-head {
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.page-head h1,
.daily-title h1,
.guide-page h1,
.profile-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 400;
}

.page-head p,
.daily-title p {
  margin: 0;
  color: var(--muted);
}

.hotspot-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.hot-card,
.source-card,
.cluster-card,
.profile-card,
.guide-page article,
.daily-section,
.quote-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hot-card {
  padding: 18px;
}

.hot-card h2,
.quote-card h2,
.daily-section h2 {
  margin: 0 0 14px;
}

.hot-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.hot-row span {
  color: var(--orange);
  font-weight: 800;
}

.hot-row strong {
  display: block;
}

.hot-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.selected-grid {
  display: grid;
  gap: 18px;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.market-filters {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 23, 34, 0.62);
}

.market-filters > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.market-filters b {
  width: 48px;
  color: var(--faint);
  font-size: 13px;
}

.market-filters button {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
}

.market-filters button.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(46,230,189,.14);
}

.market-feed {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-strong);
}

.market-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 18px 0 22px 26px;
}

.market-time {
  display: grid;
  gap: 10px;
  align-content: start;
}

.market-item time {
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}

.market-item time + time {
  color: var(--faint);
  font-size: 14px;
}

.market-item time small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
}

.market-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
}

.market-signal {
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.market-signal.bullish { color: var(--brand); background: rgba(46,230,189,.12); }
.market-signal.bearish { color: #ff8c9b; background: rgba(255,100,120,.12); }
.market-signal.neutral { color: #ffd19a; background: rgba(255,152,89,.12); }

.market-item h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.market-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.market-analysis {
  max-width: 850px;
}

.market-source {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 13px;
}

.market-method-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.market-method-stat b { color: var(--brand); font-size: 24px; }
.market-method-stat span,
.market-method { color: var(--muted); line-height: 1.7; }

.impact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.impact-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 152, 89, 0.13);
  color: var(--orange);
  font-size: 12px;
}

.market-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.quote-card {
  padding: 18px;
}

.quote-row,
.calendar-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.quote-row b {
  color: var(--text);
}

.quote-row .up,
.calendar-row small {
  color: var(--brand);
}

.quote-row .down {
  color: var(--danger);
}

.cluster-list {
  display: grid;
  gap: 16px;
}

.cluster-card {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  padding: 22px;
}

.cluster-card h2 {
  margin: 8px 0;
  font-size: 26px;
}

.cluster-card p {
  color: var(--muted);
}

.cluster-card aside {
  align-self: center;
  color: var(--brand);
  text-align: center;
}

.daily-page,
.guide-page,
.profile-page {
  display: grid;
  gap: 18px;
}

.daily-title,
.guide-page,
.profile-page {
  padding: 28px;
}

.daily-section,
.guide-page article,
.profile-card {
  padding: 22px;
}

.daily-section article {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.daily-section p,
.guide-page p,
.profile-card p {
  color: var(--muted);
  line-height: 1.75;
}

.source-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.source-card em {
  font-style: normal;
  color: var(--brand);
}

.source-card em.bad {
  color: var(--danger);
}

.empty-panel {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
  backdrop-filter: blur(18px);
}

.empty-panel span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(46, 230, 189, 0.12);
  color: var(--brand);
  font-size: 28px;
}

.empty-panel h2 {
  margin: 16px 0 4px;
  color: var(--text);
}

.skeleton-panel span {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.38; transform: scale(0.92); }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.auth-modal.open {
  display: grid;
}

.auth-card {
  width: min(420px, calc(100vw - 28px));
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.auth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
}

.auth-card form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.auth-card input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

body.light .auth-card input {
  color: #10201d;
  background: rgba(255,255,255,0.78);
}

.link-button {
  border: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  margin: 42px auto 0;
  max-width: 1320px;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .main {
    padding: 0 16px 48px;
  }

  .hero,
  .stat-row,
  .toolbar,
  .content-shell {
    max-width: none;
  }

  .timeline-day,
  .story-card,
  .market-layout,
  .cluster-card {
    grid-template-columns: 1fr;
  }

  .timeline-list::before {
    display: none;
  }

  .date-stamp,
  .story-time {
    position: static;
    text-align: left;
  }

  .load-more-wrap {
    padding-left: 0;
  }

  .story-time i {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar,
  .stat-row,
  .toolbar {
    flex-wrap: wrap;
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 4px 16px;
  }

  .hero h2 {
    font-size: 46px;
  }

  .stat-row {
    display: grid;
  }

  .story-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .market-item {
    grid-template-columns: 1fr;
    padding-left: 16px;
  }

  .market-time {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
