:root {
  --coral: #E8634A; --coral-dark: #C0432B; --teal: #2A9D8F; --teal-dark: #1B6F65;
  --navy: #1A1F3D; --navy-2: #2B3157; --pearl: #E2DFD2; --surface: #F5F3ED; --gold: #C4B89A;
  --ink: #1A1F3D; --muted: #474C69; --card: #FFFFFF; --radius: 18px;
  --shadow: 0 1px 2px rgba(26,31,61,.06), 0 8px 24px rgba(26,31,61,.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(245,243,237,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(196,184,154,.45); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { width: 36px; height: 36px; }
.brand b { color: var(--coral); } .brand span span { color: var(--teal); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--muted); }
.nav li a:hover, .nav li a[aria-current] { color: var(--navy); background: rgba(196,184,154,.25); }
.nav .cta { background: var(--coral); color: #fff !important; font-weight: 700; }
.nav .cta:hover { background: var(--coral-dark) !important; }
.nav .cta { white-space: nowrap; }

.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(42,157,143,.35), transparent 60%), radial-gradient(900px 400px at -10% 120%, rgba(232,99,74,.35), transparent 60%), var(--navy); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 14px 0 12px; letter-spacing: -.02em; font-weight: 800; }
.hero p.lead { font-size: 20px; color: rgba(255,255,255,.85); max-width: 640px; margin: 0; }
.live { display: inline-flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.92); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 8px 14px; border-radius: 999px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.6); } 70% { box-shadow: 0 0 0 12px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
@media (prefers-reduced-motion: reduce) { .dot, .skeleton div { animation: none; } html { scroll-behavior: auto; } }

.digest { position: relative; margin-top: -40px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; border-left: 6px solid var(--teal); }
.digest .k { font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.digest h2 { margin: 6px 0 8px; font-size: 26px; line-height: 1.25; }
.digest p { margin: 0; color: var(--muted); }
.agent { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 14px; }
.agent i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--teal)); display: inline-block; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 8px; }
.chip { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent; color: var(--navy); font: 500 16px 'DM Sans', sans-serif; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.feed { display: grid; gap: 22px; margin: 18px 0 40px; }
.item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; border: 1px solid rgba(196,184,154,.35); scroll-margin-top: 90px; }
.item.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--coral); } 100% { box-shadow: var(--shadow); } }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.badge { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; font-weight: 600; }
.b-cat { background: rgba(42,157,143,.13); color: var(--teal-dark); }
.b-ev { background: rgba(232,99,74,.12); color: var(--coral-dark); }
.b-new { background: var(--coral-dark); color: #fff; }
.item h3 { font-size: 25px; line-height: 1.3; margin: 12px 0 8px; letter-spacing: -.01em; }
.takeaway { font-weight: 500; color: var(--navy-2); margin: 0 0 12px; }
.summary { color: var(--muted); margin: 0 0 16px; }
.comment { background: linear-gradient(135deg, rgba(232,99,74,.07), rgba(42,157,143,.08)); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.comment strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--coral-dark); margin-bottom: 4px; font-family: 'IBM Plex Mono', monospace; }
.comment p { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.source { font-weight: 700; color: var(--teal-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.source:hover { text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; font: 700 15px 'DM Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn-ig { color: #fff; background: linear-gradient(45deg, #D9701A, #C21F67 45%, #7A2FA6 75%, #4650C4); }
.btn-ig:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(196,184,154,.25); color: var(--navy); }
.btn-ghost:hover { background: rgba(196,184,154,.42); }
.btn[disabled] { opacity: .6; cursor: progress; }

.empty, .skeleton { background: var(--card); border-radius: var(--radius); padding: 28px; color: var(--muted); }
.skeleton div { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.4s infinite; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }

.appcta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.appcta h2 { margin: 0 0 4px; font-size: 24px; }
.appcta p { margin: 0; color: rgba(255,255,255,.82); }
.appcta a { background: var(--coral-dark); color: #fff; text-decoration: none; font-weight: 700; min-height: 52px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 12px; }

footer { border-top: 1px solid rgba(196,184,154,.5); padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(160%); background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow); max-width: min(92vw, 520px); transition: transform .3s ease; z-index: 50; font-size: 16px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.newbar { display: none; position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 30; }
.newbar.show { display: block; }
.newbar button { background: var(--coral-dark); color: #fff; border: 0; border-radius: 999px; min-height: 48px; padding: 0 20px; font: 700 15px 'DM Sans', sans-serif; box-shadow: var(--shadow); cursor: pointer; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav .hide-sm, .actions .hide-sm { display: none; }
  .nav li a { padding: 0 12px; }
  .brand { font-size: 19px; }
  .item, .digest { padding: 20px; }
  .item h3 { font-size: 22px; }
  .row { flex-direction: column; align-items: stretch; }
  .actions .btn { flex: 1; }
}

.locked { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(232,99,74,.08), rgba(42,157,143,.09)); border: 1px dashed rgba(26,31,61,.18); border-radius: 14px; padding: 16px 18px; margin: 4px 0 14px; }
.locked__txt { display: flex; flex-direction: column; gap: 2px; }
.locked__txt strong { font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--coral-dark); }
.locked__txt span { color: var(--muted); font-size: 15px; }
.btn-lock { background: var(--navy); color: #fff; }
.btn-lock:hover { filter: brightness(1.15); }
