:root {
  color-scheme: dark;
  --news-bg: #0f0f11;
  --news-surface: #131317;
  --news-surface-2: #18181e;
  --news-text: #f5f5f7;
  --news-muted: #92929d;
  --news-border: rgba(255,255,255,.105);
  --news-border-strong: rgba(255,255,255,.18);
  --news-accent: #7479e8;
  --news-accent-soft: rgba(116,121,232,.14);
  --news-success: #61d5a5;
  --news-danger: #ef7070;
  --news-shadow: 0 28px 90px rgba(0,0,0,.34);
}

html[data-theme="light"] {
  color-scheme: light;
  --news-bg: #f4f4f6;
  --news-surface: #ffffff;
  --news-surface-2: #f0f0f4;
  --news-text: #17171b;
  --news-muted: #666671;
  --news-border: rgba(12,12,18,.11);
  --news-border-strong: rgba(12,12,18,.2);
  --news-accent-soft: rgba(102,108,222,.12);
  --news-shadow: 0 28px 90px rgba(33,33,55,.12);
}

* { box-sizing: border-box; }
html { background: var(--news-bg); scroll-behavior: smooth; }
html.spectra-news-boot #root { visibility: hidden; }
body.spectra-news-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(110,116,227,.13), transparent 34rem),
    var(--news-bg);
  color: var(--news-text);
  font-family: Inter, "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.spectra-news-app-hidden { display: none !important; }
body.spectra-news-page #root { min-height: 0 !important; }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.news-read-link:focus-visible,
.news-primary-button:focus-visible,
.news-secondary-button:focus-visible,
.news-filter:focus-visible,
.news-search input:focus-visible,
.news-back:focus-visible {
  outline: 2px solid var(--news-accent);
  outline-offset: 3px;
}

.news-skip-link {
  position: fixed; z-index: 200; left: 16px; top: -60px;
  padding: 10px 16px; border-radius: 10px; background: var(--news-text); color: var(--news-bg);
}
.news-skip-link:focus { top: 16px; }

#news-main { min-height: 100vh; outline: none; }
.news-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.news-view { animation: news-view-in .28s cubic-bezier(.2,.75,.2,1) both; }
@keyframes news-view-in { from { opacity: 0; transform: translateY(18px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }

.news-hero { padding: 116px 0 42px; }
.news-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 36px; }
.news-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: #969af6; font-size: 11px; font-weight: 550; letter-spacing: .12em; text-transform: uppercase; }
.news-kicker svg { width: 15px; height: 15px; }
.news-hero h1, .news-detail h1, .news-editor-head h1 { margin: 0; max-width: 720px; font-size: clamp(40px, 5vw, 64px); line-height: .98; letter-spacing: -.052em; font-weight: 610; }
.news-hero h1 { max-width: none; font-size: clamp(36px, 4.2vw, 54px); white-space: nowrap; }
.news-hero-copy { max-width: 620px; margin: 20px 0 0; color: var(--news-muted); font-size: 15px; line-height: 1.62; }
.news-primary-button, .news-secondary-button, .news-icon-button {
  min-height: 44px; border-radius: 13px; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 18px; font-size: 13px; font-weight: 590;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.news-primary-button { background: var(--news-accent); color: #fff; box-shadow: 0 12px 32px rgba(110,116,227,.21); }
.news-primary-button:hover { transform: translateY(-2px); background: #8186ef; }
.news-secondary-button { background: transparent; border-color: var(--news-border); color: var(--news-text); }
.news-secondary-button:hover { border-color: var(--news-border-strong); background: var(--news-surface); }
.news-primary-button svg, .news-secondary-button svg { width: 16px; height: 16px; }

.news-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--news-border); }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.news-filter {
  min-height: 38px; padding: 0 14px; border: 1px solid var(--news-border); border-radius: 999px;
  background: transparent; color: var(--news-muted); cursor: pointer; font-size: 12px;
}
.news-filter:hover, .news-filter.is-active { color: var(--news-text); border-color: var(--news-border-strong); background: var(--news-surface-2); }
.news-search { position: relative; width: min(310px, 100%); }
.news-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--news-muted); }
.news-search input { width: 100%; min-height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--news-border); border-radius: 13px; background: var(--news-surface); color: var(--news-text); outline: none; }
.news-search input:focus { border-color: var(--news-border-strong); box-shadow: 0 0 0 3px rgba(255,255,255,.035); }

.news-feed { padding: 0 0 88px; }
.news-featured {
  position: relative; min-height: 370px; overflow: hidden; border-radius: 20px; border: 1px solid var(--news-border);
  display: grid; align-items: end; background: var(--news-surface); box-shadow: var(--news-shadow);
  isolation: isolate;
}
.news-featured-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.news-featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,11,.96) 0%, rgba(8,8,11,.73) 48%, rgba(8,8,11,.2) 100%), linear-gradient(0deg, rgba(8,8,11,.82), transparent 65%); }
.news-featured:hover .news-featured-cover { transform: scale(1.025); }
.news-featured-content { width: min(620px, 100%); padding: clamp(28px,4vw,48px); }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; color: var(--news-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.news-views { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.news-views svg { width: 14px; height: 14px; }
.news-category { color: #a6a9f8; }
.news-unread { display: inline-flex; align-items: center; gap: 7px; color: var(--news-text); }
.news-unread::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--news-accent); }
.news-featured h2 { margin: 15px 0 12px; color: #f5f5f7; font-size: clamp(29px,3.5vw,43px); line-height: 1.04; letter-spacing: -.043em; font-weight: 570; }
.news-featured p { margin: 0 0 24px; color: #b6b6c0; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.62; }
.news-featured .news-meta { color: #989aa4; }
.news-featured .news-unread { color: #e8e8ed; }
.news-read-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; font-weight: 500; }
.news-read-link svg { width: 16px; transition: transform .2s ease; }
.news-read-link:hover svg { transform: translateX(4px); }

.news-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 64px 0 22px; }
.news-list-head h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; font-weight: 570; }
.news-list-head span { color: var(--news-muted); font-size: 12px; }
.news-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.news-card {
  position: relative; min-height: 280px; padding: 28px; overflow: hidden;
  border: 1px solid var(--news-border); border-radius: 20px; background: var(--news-surface);
  display: flex; flex-direction: column; transition: transform .26s ease, border-color .26s ease, background .26s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--news-border-strong); background: var(--news-surface-2); }
.news-card-cover { position: absolute; right: 0; top: 0; width: 43%; height: 100%; object-fit: cover; opacity: .34; mask-image: linear-gradient(90deg, transparent, #000); }
.news-card-content { position: relative; z-index: 1; max-width: 76%; height: 100%; display: flex; flex-direction: column; }
.news-card h3 { margin: 24px 0 11px; font-size: 25px; line-height: 1.08; letter-spacing: -.04em; font-weight: 570; }
.news-card p { margin: 0 0 28px; color: var(--news-muted); font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; font-weight: 400; line-height: 1.6; }
.news-card .news-read-link { margin-top: auto; color: var(--news-text); }
.news-draft-badge { display: inline-flex; margin-left: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(239,181,83,.12); color: #e4b66b; letter-spacing: .04em; }

.news-empty { padding: 76px 28px; border-top: 1px solid var(--news-border); border-bottom: 1px solid var(--news-border); text-align: center; }
.news-empty svg { width: 30px; height: 30px; color: var(--news-muted); }
.news-empty h2 { margin: 18px 0 8px; font-size: 26px; }
.news-empty p { margin: 0 auto; max-width: 500px; color: var(--news-muted); line-height: 1.6; }

.news-detail { display: block !important; width: 100%; padding: 116px 0 84px; }
.news-detail-top { width: min(860px, calc(100% - 40px)); max-width: none; margin: 0 auto; }
.news-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--news-muted); font-size: 12px; }
.news-back:hover { color: var(--news-text); }
.news-back svg { width: 15px; }
.news-detail-top > .news-meta { margin-top: 28px; }
.news-detail h1 { margin-top: 20px; font-size: clamp(38px,4.8vw,60px); }
.news-detail-lead { max-width: 720px; margin: 22px 0 0; color: var(--news-muted); font-size: 16px; line-height: 1.62; }
.news-byline { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0; padding: 22px 0; border-top: 1px solid var(--news-border); border-bottom: 1px solid var(--news-border); }
.news-author { display: flex; align-items: center; gap: 12px; }
.news-author img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.news-author strong, .news-author span { display: block; }
.news-author strong { font-size: 13px; font-weight: 450; }
.news-author span { margin-top: 3px; color: var(--news-muted); font-size: 11px; }
.news-detail-cover { display: block !important; width: min(860px, calc(100% - 40px)) !important; aspect-ratio: 16 / 8.5; max-height: 457px; height: auto !important; margin: 40px auto 0 !important; border-radius: 20px; object-fit: cover; border: 1px solid var(--news-border); }
.news-article { width: min(860px, calc(100% - 40px)); max-width: none; margin: 48px auto 0; padding-right: 100px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.78; font-weight: 400; color: color-mix(in srgb, var(--news-text) 85%, var(--news-muted)); overflow-wrap: anywhere; }
.news-article h2, .news-article h3, .news-article h4 { color: var(--news-text); line-height: 1.12; letter-spacing: -.04em; }
.news-article h2 { margin: 64px 0 20px; font-family: Inter, "Segoe UI", sans-serif; font-size: 38px; font-weight: 560; }
.news-article h3 { margin: 48px 0 18px; font-family: Inter, "Segoe UI", sans-serif; font-size: 28px; font-weight: 560; }
.news-article h4 { margin: 38px 0 16px; font-family: Inter, "Segoe UI", sans-serif; font-size: 21px; font-weight: 560; }
.news-article > :first-child { margin-top: 0; }
.news-article p { margin: 0 0 24px; }
.news-article :where(p, li) { font-weight: 400; }
.news-article strong { font-weight: 560; }
.news-article a { color: #9da1ff; text-decoration: underline; text-underline-offset: 4px; }
.news-article blockquote { margin: 34px 0; padding: 8px 0 8px 25px; border-left: 2px solid var(--news-accent); color: var(--news-text); font-size: 20px; line-height: 1.55; }
.news-article pre { overflow-x: auto; padding: 22px; border: 1px solid var(--news-border); border-radius: 16px; background: var(--news-surface); font-size: 13px; line-height: 1.6; }
.news-article code { padding: 2px 6px; border-radius: 6px; background: var(--news-surface-2); font-size: .88em; }
.news-article pre code { padding: 0; background: transparent; }
.news-article figure { width: 100%; max-width: 100%; margin: 32px auto; }
.news-article img { display: block !important; width: auto !important; max-width: 100% !important; max-height: 680px; height: auto !important; margin: 32px auto 12px !important; border-radius: 16px; border: 1px solid var(--news-border); object-fit: contain; float: none !important; }
.news-article figcaption { text-align: center; color: var(--news-muted); font-size: 12px; }
.news-article hr { margin: 54px 0; border: 0; border-top: 1px solid var(--news-border); }
.news-article li { margin: 7px 0; }
.news-detail-actions { display: flex; gap: 10px; }
.news-danger-button:hover { color: var(--news-danger); border-color: color-mix(in srgb, var(--news-danger) 45%, transparent); }
.news-purchase-cta {
  width: min(860px, calc(100% - 40px));
  margin: 76px auto 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.news-purchase-cta span { color: #969af6; font-size: 11px; font-weight: 570; letter-spacing: .1em; text-transform: uppercase; }
.news-purchase-cta h2 { margin: 9px 0 7px; color: var(--news-text); font-size: 25px; font-weight: 560; line-height: 1.1; letter-spacing: -.035em; }
.news-purchase-cta p { margin: 0; max-width: 520px; color: var(--news-muted); font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; font-weight: 400; line-height: 1.55; }
.news-purchase-cta .news-primary-button { flex: 0 0 auto; }

.news-editor { padding: 126px 0 88px; }
.news-editor-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.news-editor-head h1 { font-size: clamp(44px,6vw,72px); }
.news-editor-actions { display: flex; gap: 9px; }
.news-editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.news-editor-main, .news-editor-side { border: 1px solid var(--news-border); border-radius: 20px; background: var(--news-surface); }
.news-editor-main { overflow: hidden; }
.news-editor-fields { display: grid; gap: 16px; padding: 26px; border-bottom: 1px solid var(--news-border); }
.news-field { display: grid; gap: 8px; }
.news-field label { color: var(--news-muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.news-field input, .news-field textarea {
  width: 100%; border: 1px solid var(--news-border); border-radius: 12px; background: var(--news-bg); color: var(--news-text); outline: none;
}
.news-field input { min-height: 46px; padding: 0 14px; }
.news-field textarea { min-height: 90px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
.news-field input:focus, .news-field textarea:focus { border-color: var(--news-border-strong); box-shadow: 0 0 0 3px rgba(255,255,255,.035); }
.news-title-input { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.news-editor-toolbar { position: sticky; top: 92px; z-index: 4; display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--news-border); background: color-mix(in srgb, var(--news-surface) 89%, transparent); backdrop-filter: blur(18px); }
.news-editor-tool { min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--news-muted); cursor: pointer; font-size: 12px; font-weight: 500; }
.news-editor-tool:hover, .news-editor-tool.is-active { background: var(--news-surface-2); color: var(--news-text); }
.news-editor-tool svg { width: 16px; height: 16px; }
.news-editor-separator { width: 1px; height: 24px; margin: 7px 3px; background: var(--news-border); }
.news-editor-surface { min-height: 500px; padding: 34px; outline: none; font-size: 16px; line-height: 1.75; font-weight: 400; overflow-wrap: anywhere; direction: ltr; unicode-bidi: plaintext; text-align: left; transform: none; white-space: normal; }
.news-editor-surface * { direction: ltr; unicode-bidi: plaintext; }
.news-editor-surface:empty::before { content: attr(data-placeholder); color: var(--news-muted); pointer-events: none; }
.news-editor-surface p { margin: 0 0 1em; font-weight: 400; }
.news-editor-surface h2 { font-size: 34px; letter-spacing: -.04em; }
.news-editor-surface h3 { font-size: 26px; letter-spacing: -.03em; }
.news-editor-surface h4 { font-size: 20px; letter-spacing: -.02em; }
.news-editor-surface img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px auto; border-radius: 14px; }
.news-editor-surface blockquote { padding-left: 18px; border-left: 2px solid var(--news-accent); color: var(--news-muted); }
.news-editor-side { position: sticky; top: 94px; padding: 18px; display: grid; gap: 20px; }
.news-side-section { display: grid; gap: 11px; }
.news-side-section > label, .news-side-title { color: var(--news-muted); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.news-side-hint { margin: -4px 0 0; color: var(--news-muted); font-size: 11px; line-height: 1.45; }
.news-segments { display: flex; flex-wrap: wrap; gap: 7px; }
.news-segment { min-height: 38px; padding: 0 12px; border: 1px solid var(--news-border); border-radius: 10px; background: transparent; color: var(--news-muted); cursor: pointer; font-size: 12px; }
.news-segment:hover, .news-segment.is-active { border-color: var(--news-border-strong); color: var(--news-text); background: var(--news-surface-2); }
.news-cover-preview { min-height: 118px; overflow: hidden; display: grid; place-items: center; padding: 14px; border: 1px dashed var(--news-border); border-radius: 12px; color: var(--news-muted); background: transparent; font-size: 12px; line-height: 1.45; text-align: center; }
.news-cover-preview:has(img) { padding: 0; border-style: solid; }
.news-cover-preview img { width: 100%; height: 132px; object-fit: cover; }
.news-cover-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.news-cover-actions input { min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid var(--news-border); border-radius: 10px; background: var(--news-bg); color: var(--news-text); }
.news-upload-button { min-width: 42px; border: 1px solid var(--news-border); border-radius: 10px; background: transparent; color: var(--news-muted); cursor: pointer; }
.news-upload-button:hover { color: var(--news-text); border-color: var(--news-border-strong); }
.news-upload-button svg { width: 16px; }
.news-save-status { min-height: 20px; color: var(--news-muted); font-size: 11px; line-height: 1.5; }

.news-loading { min-height: 70vh; display: grid; place-items: center; color: var(--news-muted); }
.news-toast { position: fixed; z-index: 300; left: 50%; bottom: 26px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; padding: 12px 16px; border: 1px solid var(--news-border-strong); border-radius: 12px; background: var(--news-surface); box-shadow: var(--news-shadow); font-size: 12px; transition: .25s ease; }
.news-toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 820px) {
  .news-hero-grid, .news-editor-grid { grid-template-columns: 1fr; }
  .news-hero-grid { align-items: start; }
  .news-hero-grid > .news-primary-button { justify-self: start; }
  .news-grid { grid-template-columns: 1fr; }
  .news-editor-side { position: static; }
  .news-byline { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .news-shell, .news-detail-cover { width: min(100% - 24px, 1180px); }
  .news-hero { padding-top: 126px; }
  .news-hero h1, .news-detail h1 { font-size: 48px; }
  .news-hero h1 { font-size: 40px; line-height: 1.02; white-space: normal; }
  .news-toolbar-row { align-items: stretch; flex-direction: column; }
  .news-search { width: 100%; }
  .news-featured { min-height: 520px; border-radius: 20px; }
  .news-featured::after { background: linear-gradient(0deg, rgba(8,8,11,.97), rgba(8,8,11,.38)); }
  .news-card-content { max-width: 100%; }
  .news-card-cover { width: 100%; opacity: .14; }
  .news-detail { padding-top: 126px; }
  .news-article { padding-right: 0; font-size: 16px; }
  .news-editor-head { align-items: flex-start; flex-direction: column; }
  .news-editor-actions { width: 100%; }
  .news-editor-actions > * { flex: 1; }
  .news-editor-surface { padding: 24px 18px; }
  .news-detail-actions { width: 100%; flex-wrap: wrap; }
  .news-detail-actions > * { flex: 1 1 auto; }
  .news-purchase-cta { width: calc(100% - 24px); align-items: stretch; flex-direction: column; padding: 0; }
  .news-purchase-cta .news-primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
