:root {
  color-scheme: light;
  --canvas: #f6f6fa;
  --surface: #fff;
  --ink: #171526;
  --muted: #666479;
  --line: #e9e7f0;
  --violet: #593bc9;
  --lavender: #efebff;
  --shadow: 0 3px 12px #20134006;
  font-family: Inter, "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 1rem; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #7757eb; outline-offset: 3px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 8; padding: 10px; background: white; }
.shell { width: min(1232px, calc(100% - 72px)); margin-inline: auto; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 71px; }
.brand { display: flex; gap: 11px; align-items: center; font-size: 1.22rem; font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: linear-gradient(155deg, #7857ee, #5334c8); box-shadow: 0 3px 8px #603bdf35; }
.brand-icon .icon { width: 25px; height: 25px; }
.regions { display: flex; height: 100%; gap: 28px; }
.region { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 2px 7px 0; white-space: nowrap; font-weight: 630; font-size: .94rem; }
.region:hover, .region.active { color: var(--violet); }
.region.active { border-bottom-color: var(--violet); }
.status-pill { justify-self: end; display: flex; gap: 8px; align-items: center; padding: 7px 11px; border: 1px solid #e1e9e4; background: #f1f8f4; border-radius: 999px; color: #286146; white-space: nowrap; font-size: .8125rem; }
.status-pill[data-state="offline"] { background: #fbf1e7; border-color: #f0e4d6; color: #875222; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ead78; }
.status-dot[data-state="offline"] { background: #cb842b; }

.intro { padding: 38px 0 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 19px; }
.edition { margin: 0 0 9px; font-size: .875rem; color: var(--muted); letter-spacing: .025em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3rem); line-height: 1.18; letter-spacing: -.055em; font-weight: 800; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.search-field { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 43px; color: #737087; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; }
.search-field:focus-within { border-color: #8b71f4; }
.search-field input { width: 213px; height: 100%; border: 0; outline: none; background: none; font-size: .875rem; }
.search-field input:focus-visible { outline: none; }
input::placeholder { color: #737087; }
.icon-button { border: 1px solid var(--line); background: var(--surface); color: #5f5878; padding: 0; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 9px; }
.icon-button:hover { border-color: #c6b9f5; color: var(--violet); }
.icon-button.loading .icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 23px; align-items: start; }
.main-column { min-width: 0; }

.hero { overflow: hidden; min-height: 294px; display: flex; align-items: center; border-radius: 16px; color: white; background: #121023 linear-gradient(90deg, #100c22 3%, #110d236e 100%); background-image: linear-gradient(90deg, #100c22 2%, #110d23f2 29%, #110d239c 61%, #100c2222 100%), url("/data-center.jpg"); background-position: center, right 49%; background-size: cover; box-shadow: 0 8px 24px #1e14321c; }
.hero-content { width: 100%; max-width: 760px; padding: 30px 34px; }
.hero-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #9d85f35a; border-radius: 6px; background: #7253c742; color: #ecdeff; font-size: .8125rem; font-weight: 650; margin-bottom: 15px; }
.hero h2 { margin: 0 0 11px; font-size: clamp(1.6rem, 3.5vw, 2.36rem); line-height: 1.16; letter-spacing: -.035em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.hero p { margin: 0 0 19px; color: #ded7ee; line-height: 1.55; font-size: .95rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hero p:empty { display: none; }
.hero-footer { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; color: #d5cae7; font-size: .83rem; }
.hero-footer a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 7px; background: #f1ebff; color: #4125a3; font-weight: 690; }
.hero-footer a:hover { background: #e0d3ff; }

.feed { margin-top: 26px; }
.hero[hidden] + .feed { margin-top: 0; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.feed-heading h2, .side-heading h2 { margin: 0; letter-spacing: -.025em; font-size: 1.32rem; font-weight: 760; }
.sort { position: relative; }
.sort::after { content: ""; position: absolute; right: 11px; top: 13px; width: 7px; height: 7px; border-right: 1.5px solid #615875; border-bottom: 1.5px solid #615875; transform: rotate(45deg); pointer-events: none; }
.sort select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 27px 8px 10px; appearance: none; cursor: pointer; font-size: .875rem; color: #4c465f; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter { border: 1px solid transparent; color: #605a76; background: transparent; font-size: .875rem; border-radius: 7px; padding: 6px 9px; }
.filter.active, .filter:hover { background: var(--lavender); color: var(--violet); }
.filter.active { border-color: #e6dfff; font-weight: 680; }
.feed-items { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.story { padding: 16px 18px; display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 12px; }
.story + .story { border-top: 1px solid #eeedf3; }
.story:hover { background: #fcfbff; }
.story-icon, .source-icon { width: 37px; height: 37px; display: grid; place-items: center; background: #f0ecff; color: #6345c9; border-radius: 9px; font-size: .92rem; }
.story-icon.developer { color: #5146b5; background: #eeeeff; }
.story-icon.industry { color: #916218; background: #fff2dc; }
.story-icon.research { color: #286d69; background: #e7f5f2; }
.article-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; margin-bottom: 4px; line-height: 1.45; }
.article-meta .source { font-weight: 680; color: #54408d; }
.article-meta .separator { color: #a39ab5; }
.story h3 { margin: 0; line-height: 1.36; font-size: 1rem; overflow-wrap: anywhere; }
.story h3 a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.story p { margin: 5px 0 0; color: #686379; font-size: .875rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.empty { padding: 26px 18px; font-size: .94rem; color: var(--muted); }
.more { width: 100%; min-height: 40px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--violet); }
.more:hover { border-color: #cabcf5; }
.sync-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

.sidebar { display: grid; gap: 15px; min-width: 0; }
.side-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 17px; box-shadow: var(--shadow); min-width: 0; }
.side-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.side-heading h2 { font-size: 1.09rem; }
.side-heading p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.x-logo { display: grid; place-items: center; color: white; width: 38px; height: 38px; border-radius: 9px; background: #14111e; font-family: system-ui, sans-serif; font-size: 1.22rem; flex: none; }
.x-search { display: flex; align-items: center; gap: 3px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fcfbff; }
.x-search input { min-width: 0; width: 100%; height: 28px; border: 0; background: transparent; outline: none; font-size: .875rem; }
.x-search:focus-within { border-color: #8b71f4; }
.x-search button { display: grid; place-items: center; width: 31px; height: 28px; border-radius: 6px; border: 0; color: var(--violet); background: var(--lavender); flex: none; }
.x-state { margin: 10px 0 8px; color: #6c657c; font-size: .81rem; line-height: 1.5; }
.watchlist { display: grid; gap: 10px; margin: 11px 0 12px; }
.account, .tweet { min-width: 0; }
.account { display: grid; align-items: center; grid-template-columns: 31px minmax(0, 1fr); gap: 8px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; font-size: .82rem; background: #eae2ff; color: #5d37c5; font-weight: 750; border-radius: 8px; }
.avatar.teal { background: #e0f5ed; color: #316e55; }
.avatar.orange { background: #faebe0; color: #895539; }
.avatar.blue { background: #e6edfe; color: #415da5; }
.account-name { display: block; font-size: .875rem; line-height: 1.34; color: #282037; font-weight: 680; }
.account-name:hover, .tweet-link:hover { color: var(--violet); }
.account-focus { display: block; margin-top: 1px; color: var(--muted); font-size: .8rem; }
.tweet { border: 1px solid #eeeaf8; border-radius: 8px; padding: 9px 10px; margin: 8px 0; }
.tweet p { font-size: .875rem; margin: 6px 0 8px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.tweet .tweet-link { font-size: .83rem; color: var(--violet); font-weight: 650; }
.x-external { display: flex; justify-content: center; align-items: center; min-height: 37px; border: 1px solid #e8e1fc; border-radius: 8px; color: var(--violet); background: #f7f4ff; font-size: .875rem; font-weight: 670; }
.x-external:hover { background: #eee7ff; }
.source-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.source-tags span { border: 1px solid #edeaf4; border-radius: 6px; padding: 4px 7px; color: #59526c; background: #f8f7fb; font-size: .79rem; }
.text-button { color: var(--violet); border: 0; padding: 0; background: transparent; font-size: .875rem; font-weight: 660; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { margin-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; padding: 17px 0 24px; color: var(--muted); font-size: .82rem; }
.site-footer span:first-child { font-weight: 700; }

dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100% - 32px); border-radius: 15px; border: 1px solid var(--line); padding: 20px; color: var(--ink); box-shadow: 0 14px 80px #170e3b44; }
dialog::backdrop { background: #16102570; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-head h2 { margin: 0; font-size: 1.25rem; }
.dialog-head .icon-button { width: 34px; height: 34px; }
#dialog-status { color: var(--muted); margin: 12px 0; line-height: 1.5; font-size: .875rem; }
#source-list { list-style: none; padding: 0; margin: 0; }
#source-list li { display: flex; justify-content: space-between; gap: 9px; padding: 7px 4px; border-top: 1px solid var(--line); font-size: .875rem; }
#source-list a { color: var(--violet); }
#source-list span { color: var(--muted); }

@media (max-width: 850px) {
  .shell { width: calc(100% - 36px); }
  .columns { grid-template-columns: minmax(0, 1fr) 275px; gap: 14px; }
  .hero-content { padding: 24px; }
  .hero { min-height: 265px; }
}
@media (max-width: 675px) {
  .shell { width: calc(100% - 30px); }
  .topbar { height: 60px; }
  .brand { font-size: 1.02rem; gap: 5px; }
  .brand-icon { width: 29px; height: 29px; border-radius: 7px; }
  .brand-icon .icon { width: 19px; height: 19px; }
  .regions { gap: 6px; }
  .region { padding-inline: 4px; font-size: .84rem; gap: 3px; }
  .region .icon { display: none; }
  .status-pill { font-size: .71rem; padding: 5px 7px; gap: 4px; }
  .status-dot { width: 5px; height: 5px; }
  .intro { display: grid; gap: 13px; padding: 22px 0 16px; }
  .edition { margin-bottom: 6px; }
  .toolbar, .search-field { width: 100%; min-width: 0; }
  .search-field input { min-width: 0; width: 100%; }
  .icon-button { flex: none; }
  .columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .main-column, .sidebar { display: contents; }
  .x-card { order: 1; }
  .feed { order: 2; }
  .sources-card { order: 3; }
  .hero { min-height: 232px; background-position: center, 72% center; }
  .hero-content { padding: 20px; }
  .hero h2 { font-size: 1.55rem; }
  .feed { margin-top: 20px; }
  .story { padding: 13px 11px; gap: 7px; grid-template-columns: 31px minmax(0, 1fr); }
  .story-icon { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
