@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,500&display=swap');

:root {
  color-scheme: light;
  --ink: #14231c;
  --muted: #68756e;
  --muted-2: #8a948e;
  --paper: #f5f3ec;
  --card: #fffefa;
  --line: #daddd5;
  --line-strong: #c8cec4;
  --green: #194b38;
  --green-2: #28664e;
  --green-soft: #e9f0e6;
  --accent: #c9ed63;
  --danger: #9c493c;
  --shadow: 0 18px 55px rgba(26, 53, 42, .08);
  --shadow-small: 0 5px 22px rgba(26, 53, 42, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, var(--green)); outline-offset: 3px; }

.site-header { height: 70px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(30,53,42,.09); background: rgba(246,244,237,.86); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 6px; background: var(--ink); border-radius: 50%; }
.brand-mark i { display: block; width: 3px; border-radius: 4px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 7px; }.brand-mark i:nth-child(2) { height: 14px; }.brand-mark i:nth-child(3) { height: 10px; }
nav { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-button { border: 0; background: transparent; padding: 9px 11px; border-radius: 9px; color: var(--muted); font-size: 13px; text-decoration: none; }
.nav-link:hover, .nav-link.is-active, .nav-button:hover { color: var(--ink); background: rgba(25,57,45,.055); }
.avatar { margin-left: 8px; border: 0; width: 35px; height: 35px; border-radius: 50%; background: var(--green); color: white; font-size: 11px; font-weight: 700; }
.global-status { margin-left: 7px; font-size: 11px; color: #96623e; background: #f4e7d9; padding: 7px 10px; border-radius: 999px; }
.global-status.is-live { color: var(--green); background: var(--green-soft); }

.intent-hero { padding: 74px 24px 52px; text-align: center; background: radial-gradient(circle at 50% 2%, rgba(202,234,106,.18), transparent 27%), linear-gradient(180deg,#fbfaf5,var(--paper)); }
.hero-intro { transition: .35s ease; }
.eyebrow, .section-kicker { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 700; color: #6e7d74; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,234,106,.25); }
h1 { margin: 0; font-size: clamp(47px, 6vw, 79px); line-height: .96; letter-spacing: -.06em; font-weight: 600; }
h1 em { font-family: "Newsreader", serif; font-weight: 500; color: var(--green); }
.hero-copy { max-width: 660px; margin: 25px auto 32px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.has-feed .intent-hero { padding-top: 45px; }
.has-feed .hero-intro h1 { font-size: clamp(40px, 4.6vw, 62px); }
.has-feed .hero-copy { margin-top: 18px; margin-bottom: 24px; }

.connect-panel { max-width: 800px; margin: 0 auto 24px; padding: 20px; border: 1px solid #d4dbd0; border-radius: 18px; background: rgba(255,254,250,.94); text-align: left; box-shadow: var(--shadow); }
.connect-copy { display: flex; gap: 13px; align-items: flex-start; }
.connect-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #e8f3ff; }
.connect-panel strong { font-size: 15px; }.connect-panel p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.connect-panel form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 18px; }
.connect-panel label span { display: block; margin: 0 0 6px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.connect-panel input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: white; outline: none; }
.connect-panel input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,75,57,.1); }
.connect-panel form button { align-self: end; height: 44px; padding: 0 17px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 700; font-size: 12px; }
.connect-panel form button:hover { background: #113d2c; }.connect-panel form button span { margin-left: 9px; }
.connect-status { color: var(--danger) !important; }
.credential-help { margin: 14px 0 0 49px; padding: 10px 12px; border: 1px solid #e1e5de; border-radius: 10px; background: #fafbf7; }.credential-help summary { color: var(--green); font-size: 10px; font-weight: 800; cursor: pointer; }.credential-help ol { margin: 10px 0 0 18px; padding: 0; color: #5f6d65; font-size: 10px; line-height: 1.65; }.credential-help li + li { margin-top: 4px; }.credential-help a { color: var(--green); }.credential-help code { padding: 2px 4px; border-radius: 4px; background: #edf1e9; font-size: 9px; }.connect-panel .credential-help p { margin-top: 8px; font-size: 9px; }

.intent-form { max-width: 800px; margin: auto; padding: 9px; border: 1px solid #d4dad1; border-radius: 21px; background: var(--card); box-shadow: var(--shadow); text-align: left; transition: border .2s, transform .2s, box-shadow .2s; }
.intent-form:focus-within { border-color: #8aa084; transform: translateY(-1px); box-shadow: 0 22px 62px rgba(27,55,43,.11); }
.intent-form textarea { width: 100%; min-height: 80px; padding: 17px 18px 7px; resize: none; border: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.5; outline: none; }
.intent-form textarea::placeholder { color: #98a09b; }.intent-form textarea:disabled { cursor: not-allowed; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 17px; }
.composer-hint { color: #7d8882; font-size: 10px; }.composer-hint i { margin: 0 3px; font-style: normal; }
kbd { padding: 2px 5px; border: 1px solid #d8dbd4; border-bottom-width: 2px; border-radius: 5px; background: #f7f7f2; color: #5f6c65; font: inherit; }
.listen-button { display: flex; gap: 14px; align-items: center; min-width: 128px; justify-content: center; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--green); color: white; font-weight: 700; }
.listen-button:hover { background: #123e2d; transform: translateY(-1px); }.listen-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.suggestions button { padding: 9px 13px; border: 1px solid #dfe1da; border-radius: 999px; background: rgba(255,255,255,.55); color: #59675f; font-size: 11px; }
.suggestions button:hover { border-color: #9dae9f; color: var(--ink); background: white; }.suggestions button:disabled { opacity: .45; cursor: not-allowed; }
.suggestions span { margin-right: 5px; }
.notice { max-width: 800px; margin: 16px auto 0; padding: 11px 14px; border-radius: 11px; background: #edf1e9; color: var(--ink); font-size: 12px; text-align: left; }
.notice.error { background: #fae7e2; color: #8d3c32; }.notice.question { background: #e4eee9; }

.control-deck { max-width: 1000px; margin: 34px auto 0; padding: 22px 24px; border: 1px solid #d6dcd2; border-radius: 18px; background: rgba(236,242,232,.78); text-align: left; box-shadow: 0 10px 35px rgba(25,55,43,.035); }
.control-deck-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.control-deck .section-kicker { margin-bottom: 7px; }.control-deck h2 { font-size: 20px; }
.control-deck-header p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.deck-actions { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.text-button { border: 0; padding: 7px 8px; background: transparent; color: #5e6e65; font-size: 10px; border-radius: 7px; }.text-button:hover:not(:disabled) { background: rgba(25,75,56,.07); color: var(--ink); }.text-button:disabled { opacity: .35; cursor: not-allowed; }.text-button.danger { color: var(--danger); }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.75); font-size: 18px; line-height: 1; }
.preset-row { display: flex; align-items: center; gap: 6px; margin: 20px 0 14px; }
.preset-row > span { margin-right: 5px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.preset-row button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); color: #5d6b63; font-size: 10px; }
.preset-row button:hover, .preset-row button.is-active { border-color: var(--green); background: var(--green); color: white; }
.preset-row button:disabled { opacity: .45; }
.algorithm-controls { display: grid; grid-template-columns: repeat(5,minmax(105px,1fr)); gap: 17px; }
.algorithm-controls label { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; min-width: 0; color: #53635a; font-size: 10px; }
.algorithm-controls output { color: var(--green); font-size: 9px; font-weight: 700; white-space: nowrap; }
.algorithm-controls input { grid-column: 1 / -1; width: 100%; height: 18px; accent-color: var(--green); cursor: ew-resize; }
.algorithm-controls input:disabled { cursor: wait; }
.history-panel { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d6dcd2; }
.history-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.history-heading strong { color: var(--ink); }.history-list { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: thin; }
.history-item { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 210px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); text-align: left; }
.history-item > span:first-child { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e7ebe3; color: var(--muted); font-size: 9px; }
.history-item > span:last-child { display: flex; min-width: 0; flex-direction: column; }.history-item strong { overflow: hidden; color: #48584f; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.history-item small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.history-item:hover { border-color: #9eafa2; }.history-item.is-active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(25,75,56,.08); background: white; }.history-item.is-active > span:first-child { background: var(--green); color: white; }
.current-feed-label { display: block; margin-bottom: 3px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.current-feed-intent { display: -webkit-box; overflow: hidden; max-width: 570px; color: var(--ink); font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lens-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.save-feed { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 9px; font-weight: 750; }
.save-feed:hover { border-color: #9eafa2; color: var(--ink); }.save-feed.is-saved { border-color: #b8c9b9; background: #edf3e9; color: var(--green); }.save-feed:disabled { opacity: .45; }
.saved-dialog { width: min(590px,calc(100% - 28px)); }
.profile-dialog { width: min(650px,calc(100% - 28px)); }
#profile-form { display: grid; gap: 12px; margin-top: 20px; }
#profile-form label { display: grid; gap: 5px; }
#profile-form label strong { font-size: 12px; }
#profile-form label span, .profile-privacy { color: var(--muted); font-size: 9px; line-height: 1.55; }
#profile-context { width: 100%; min-height: 145px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.55; outline: none; }
#profile-context:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,57,45,.08); }
.profile-privacy { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--green-soft); }
.profile-location { justify-self: start; margin: 0; padding: 6px 9px; border-radius: 999px; background: #f2eadf; color: #80532f; font-size: 9px; font-weight: 700; }
.profile-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.profile-actions span { flex: 1; color: var(--muted); font-size: 9px; }
.profile-actions button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 750; font-size: 11px; }
.profile-actions .secondary-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.saved-feed-list { display: grid; gap: 8px; margin-top: 20px; }
.saved-feed-row { display: flex; align-items: stretch; gap: 7px; }
.saved-feed-open { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; }
.saved-feed-open > span:first-child { display: flex; min-width: 0; flex-direction: column; }.saved-feed-open strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.saved-feed-open small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.saved-feed-open:hover { border-color: #9eafa2; box-shadow: 0 5px 18px rgba(31,54,43,.05); }
.saved-feed-remove { padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font-size: 9px; }.saved-feed-remove:hover { background: #f5e9e5; color: #8d3f33; }
.saved-empty { margin: 24px 0 4px; padding: 26px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; }
.publish-button { background: var(--green); color: white; font-weight: 750; }.publish-button:hover { background: #244d3c; color: white; }
.publisher-dialog { width: min(650px,calc(100% - 28px)); }
#publisher-form { margin-top: 18px; } #publisher-text { width: 100%; min-height: 155px; resize: vertical; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; outline: none; }
#publisher-text:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,57,45,.08); }
.publisher-meta { display: flex; justify-content: space-between; gap: 16px; margin: 7px 2px 20px; color: var(--muted-2); font-size: 9px; }.publisher-meta span:last-child { text-align: right; }
#publisher-form fieldset { padding: 0; border: 0; } #publisher-form legend { margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.publisher-destinations { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.publisher-destination { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.72); }.publisher-destination:has(input:checked) { border-color: #9bb3a2; background: #edf3e9; }.publisher-destination:has(input:disabled) { opacity: .55; }.publisher-destination span { display: flex; min-width: 0; flex-direction: column; }.publisher-destination strong { font-size: 10px; }.publisher-destination small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.publisher-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; }.publisher-actions .connect-status { flex: 1; margin: 0; }.publisher-actions > button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 800; }.publisher-actions > button:disabled { opacity: .45; }
@media (max-width: 640px) { .publisher-destinations { grid-template-columns: 1fr; }.publisher-meta { flex-direction: column; gap: 3px; }.publisher-meta span:last-child { text-align: left; }.lens-panel { align-items: flex-start; }.lens-actions { flex-direction: column; align-items: flex-end; } }

.feed-shell { max-width: 1240px; margin: 0 auto; padding: 54px 28px 110px; display: grid; grid-template-columns: minmax(0,780px) 300px; gap: 64px; align-items: start; }
.lens-panel { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 18px 20px; margin-bottom: 13px; border: 1px solid #d9ddd4; border-radius: 15px; background: #edf2e9; }
.lens-panel .section-kicker { margin-bottom: 9px; }.lens-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lens-chips span { padding: 6px 9px; border-radius: 7px; background: white; border: 1px solid #d9e0d6; color: #415249; font-size: 10px; }
.adjust-link { flex: 0 0 auto; color: var(--green); font-size: 10px; font-weight: 700; text-decoration: none; }.adjust-link span { margin-left: 4px; }
.refine-form { margin-bottom: 38px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fffefa; box-shadow: var(--shadow-small); }
.refine-form label { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 10px; font-size: 11px; font-weight: 700; }.refine-form label small { color: var(--muted); font-size: 9px; font-weight: 400; }
.refine-form > div { display: flex; gap: 8px; }.refine-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; font-size: 12px; }.refine-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,75,57,.08); }
.refine-form button { border: 0; padding: 0 15px; border-radius: 9px; background: var(--green); color: white; font-size: 11px; font-weight: 700; }.refine-form button:hover { background: #123d2d; }
.feed-heading, .sidebar-heading, .dialog-header { display: flex; justify-content: space-between; align-items: flex-end; }
.feed-heading { margin-bottom: 19px; }.feed-heading .section-kicker, .sidebar-heading .section-kicker, .dialog-header .section-kicker { margin-bottom: 6px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }.feed-heading > span { color: var(--muted); font-size: 11px; }
.feed-list { display: flex; flex-direction: column; gap: 13px; transition: opacity .2s; }.feed-list.is-loading:not(:has(.skeleton)) { opacity: .5; }
.feed-card { overflow: hidden; padding: 20px 21px 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 3px 18px rgba(25,48,38,.025); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feed-card:not(.skeleton):hover { border-color: #c9cec6; box-shadow: 0 9px 29px rgba(25,48,38,.055); transform: translateY(-1px); }
.social-context { margin: -20px -21px 15px; padding: 8px 21px; border-bottom: 1px solid #e7e9e3; background: #fafaf5; color: #728078; font-size: 9px; }
.social-context::before { content: "↻"; margin-right: 6px; color: var(--green); }
.feed-card > header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.author-block { display: flex; gap: 10px; align-items: center; min-width: 0; }.author-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: var(--green); color: white; font-size: 11px; font-weight: 700; }.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-block div { display: flex; min-width: 0; flex-direction: column; }.author-name { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.author-handle { overflow: hidden; margin-top: 2px; color: #87918b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-badge { max-width: 140px; overflow: hidden; padding: 5px 8px; border-radius: 6px; background: #eaf3ff; color: #2468a5; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.source-badge.is-reddit { background: #fff0ea; color: #c43d0a; }.source-badge.is-locationews { background: #fdeee8; color: #b0400f; }.source-badge.is-mastodon { background: #eeedff; color: #514fc0; }.source-badge.is-youtube { background: #ffeaea; color: #c51919; }.source-badge.is-hackernews { background: #fff0e5; color: #c74f00; }.source-badge.is-yle { background: #e4f8fa; color: #007c8b; }
.post-copy { margin: 16px 0 11px; }.post-text { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.62; white-space: pre-wrap; }.post-text.is-collapsed { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 7; -webkit-box-orient: vertical; }
.expand-text { margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; }
.media-host:empty { display: none; }.media-grid { display: grid; gap: 3px; overflow: hidden; margin: 13px 0; border-radius: 13px; background: #e6e8e3; }.media-grid.count-2, .media-grid.count-3, .media-grid.count-4 { grid-template-columns: 1fr 1fr; }.media-grid.count-3 > :first-child { grid-row: span 2; }.media-grid.count-1 { grid-template-columns: 1fr; }
.media-image { min-height: 180px; padding: 0; border: 0; overflow: hidden; background: #e6e8e3; }.media-grid.count-1 .media-image { max-height: 470px; }.media-image img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; transition: transform .3s; }.media-image:hover img { transform: scale(1.015); }
.media-grid video { display: block; width: 100%; min-height: 260px; max-height: 500px; grid-column: 1 / -1; background: #111; }.media-grid audio { width: calc(100% - 24px); margin: 18px 12px; grid-column: 1 / -1; }
.video-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; margin: 13px 0; border: 0; border-radius: 13px; background: #1c2923 center / cover no-repeat; color: white; overflow: hidden; }.video-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.55)); }.play-button { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--green); box-shadow: 0 8px 30px rgba(0,0,0,.25); }.play-label { position: absolute; z-index: 1; bottom: 17px; font-size: 11px; font-weight: 700; }.inline-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 13px 0; border: 0; border-radius: 13px; background: #111; }
.external-preview { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: center; min-height: 74px; overflow: hidden; margin: 13px 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }.external-preview > img { width: 86px; height: 74px; object-fit: cover; }.external-preview > span { display: flex; min-width: 0; flex-direction: column; padding: 10px 0; }.external-preview strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.external-preview small { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 9px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.external-preview i { padding-right: 14px; color: var(--green); font-style: normal; }
.quote-preview { display: block; margin: 13px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }.quote-preview:hover { border-color: #a7b5aa; background: #fbfcf8; }.quote-preview > span { display: flex; align-items: baseline; gap: 7px; }.quote-preview strong { font-size: 11px; }.quote-preview small { color: var(--muted); font-size: 9px; }.quote-preview p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; font-size: 11px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-meta { display: flex; gap: 13px; align-items: center; color: #89918c; font-size: 9px; }.language:not(:empty) { padding: 2px 5px; border: 1px solid #e0e3dc; border-radius: 4px; font-size: 8px; }
.why-panel { margin: 13px 0 3px; padding: 10px 11px; border-radius: 8px; background: #eef3eb; color: #53645b; font-size: 10px; line-height: 1.45; }
.feed-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding-top: 11px; border-top: 1px solid #eeefe9; }.why-button { padding: 0; border: 0; background: transparent; color: #64756c; font-size: 10px; }.why-button:hover { color: var(--ink); }.original-link { color: var(--green); font-size: 10px; font-weight: 700; text-decoration: none; }.original-link:hover { text-decoration: underline; }.original-link span { margin-left: 4px; }
.empty-state { padding: 52px 24px; display: flex; flex-direction: column; gap: 7px; text-align: center; border: 1px dashed #cdd3ca; border-radius: 16px; color: var(--muted); }.empty-state > span:first-child { color: var(--green); font-size: 27px; }.empty-state strong { color: var(--ink); }
.feed-continuation { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 27px 12px 4px; }.continuation-sentinel { position: absolute; top: -280px; width: 1px; height: 1px; pointer-events: none; }.feed-continuation button { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border: 1px solid #bfc9bf; border-radius: 999px; background: rgba(255,255,255,.76); color: var(--green); font-size: 11px; font-weight: 700; }.feed-continuation button:hover:not(:disabled) { border-color: var(--green); background: white; transform: translateY(-1px); }.feed-continuation button:disabled { opacity: .5; cursor: wait; }.feed-continuation small { max-width: 420px; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }
.skeleton { display: flex; min-height: 170px; flex-direction: column; gap: 18px; justify-content: center; }.skeleton span { height: 13px; border-radius: 999px; background: linear-gradient(90deg,#eceee9 25%,#f7f7f3 50%,#eceee9 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }.skeleton span:first-child { height: 36px; }.skeleton span:last-child { height: 86px; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.source-sidebar { position: sticky; top: 101px; }.add-source { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 18px; }.add-source:hover { border-color: var(--green); }
.source-list { margin-top: 17px; border-top: 1px solid var(--line); }.source-row { display: grid; grid-template-columns: 38px 1fr 8px; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.source-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb,var(--source-color,#345) 12%,white); color: var(--source-color,#345); font-size: 12px; font-weight: 800; }.source-row > div { display: flex; min-width: 0; flex-direction: column; }.source-row strong { font-size: 11px; }.source-row div span { overflow: hidden; margin-top: 2px; color: #89928d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.connected-dot { width: 7px; height: 7px; border-radius: 50%; background: #79b56a; box-shadow: 0 0 0 3px #e5efe2; }
.principle-card { margin-top: 27px; padding: 18px; border-radius: 14px; background: var(--green); color: white; }.principle-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--green); font-weight: 800; }.principle-card p { margin: 13px 0 0; color: #dce7e0; font-size: 10px; line-height: 1.6; }.principle-card strong { color: white; }

dialog { width: min(660px,calc(100vw - 32px)); padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(19,35,27,.48); backdrop-filter: blur(5px); }.dialog-close, .media-close { border: 0; background: transparent; font-size: 27px; }.dialog-header { align-items: flex-start; } dialog > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }.library-source { display: flex; gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; }.library-source:disabled { opacity: .58; }.library-source > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }.library-source strong { font-size: 11px; }.library-source small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.library-source.is-connected { border-color: #a9bfa9; background: #fbfdf9; }.library-source.is-available { border-style: dashed; }.library-source:not(:disabled) { cursor: pointer; }.library-source-state { flex: 0 0 auto; padding: 4px 6px; border-radius: 999px; background: #eef3eb; color: #55705f; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.library-source.is-available .library-source-state { background: #f3f1ec; color: #827c70; }
.connector-forms { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.connector-form { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.58); }.connector-form label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 11px; }.connector-form label span { color: var(--muted); font-size: 9px; }.connector-form > div { display: flex; gap: 7px; }.connector-form input { width: 100%; min-width: 0; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; outline: none; }.connector-form input:focus { border-color: var(--green); }.connector-form button { flex: 0 0 auto; padding: 0 13px; border: 0; border-radius: 8px; background: var(--green); color: white; font-weight: 700; }
.media-dialog { position: relative; width: min(1100px,calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 14px; background: #111; overflow: hidden; }.media-dialog img { display: block; max-width: 100%; max-height: calc(100vh - 70px); margin: auto; object-fit: contain; }.media-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.64); color: white; }.media-dialog p { margin: 0; padding: 12px 17px; color: white; font-size: 11px; }

.access-page { min-height: 100vh; background: radial-gradient(circle at 50% 12%,rgba(216,239,135,.2),transparent 32%),var(--paper); }.access-shell { width: min(720px,calc(100% - 32px)); margin: 0 auto; padding: 45px 0 80px; }.access-shell > .brand { width: max-content; }.access-card { margin-top: clamp(55px,10vh,110px); padding: clamp(24px,6vw,52px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,252,.86); box-shadow: 0 24px 80px rgba(31,54,43,.08); }.access-card h1 { margin-top: 15px; font-size: clamp(43px,8vw,68px); }.access-card > p:not(.eyebrow):not(.connect-status) { max-width: 530px; margin: 25px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }.access-card form { margin-top: 30px; }.access-card form > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.access-card form > div { display: flex; gap: 9px; }.access-card input { min-width: 0; flex: 1; height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: white; font: inherit; outline: none; }.access-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,57,45,.08); }.access-card button { padding: 0 20px; border: 0; border-radius: 11px; background: var(--green); color: white; font-weight: 800; }.access-card button:disabled { opacity: .55; }.access-card .connect-status { min-height: 18px; margin-top: 12px; color: #9c493e; }

@media (max-width: 900px) {
  .site-header { padding: 0 16px; }.nav-link, .nav-button { display: none; }.global-status { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .intent-hero { padding: 58px 16px 45px; }.hero-copy { font-size: 15px; }.connect-panel form { grid-template-columns: 1fr; }.connect-panel form button { margin-top: 3px; }
  .algorithm-controls { grid-template-columns: repeat(2,minmax(120px,1fr)); }.feed-shell { display: block; padding: 42px 16px 75px; }.source-sidebar { position: static; margin-top: 45px; }
}

@media (max-width: 560px) {
  .site-header { height: 62px; }.brand { font-size: 19px; }.avatar { display: none; }.global-status { margin-left: 2px; }
  h1 { font-size: 46px; }.has-feed .hero-intro h1 { font-size: 40px; }.intent-hero { padding-top: 41px; }.eyebrow { font-size: 9px; }.hero-copy { margin-top: 20px; }
  .connect-panel { padding: 16px; }.connect-copy { align-items: center; }.connect-panel form { margin-top: 15px; }.credential-help { margin-left: 0; }
  .composer-footer { align-items: flex-end; }.composer-hint { max-width: 150px; line-height: 1.7; }.composer-hint i { display: none; }.listen-button { min-width: 112px; padding-inline: 14px; }
  .suggestions { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }.suggestions button { flex: 0 0 auto; }
  .control-deck { margin-top: 27px; padding: 17px; }.control-deck-header h2 { font-size: 17px; }.deck-actions .text-button { display: none; }.preset-row { overflow-x: auto; padding-bottom: 4px; }.preset-row button { flex: 0 0 auto; }.algorithm-controls { grid-template-columns: 1fr; gap: 12px; }.history-heading { align-items: flex-start; }.history-heading > span { max-width: 210px; }
  .lens-panel { align-items: flex-start; }.adjust-link { max-width: 80px; text-align: right; }.refine-form label { flex-direction: column; gap: 3px; }.refine-form > div { flex-direction: column; }.refine-form button { padding: 11px; }
  .feed-card { padding: 17px 16px 13px; border-radius: 15px; }.social-context { margin: -17px -16px 14px; padding-inline: 16px; }.source-badge { max-width: 95px; }.media-image, .media-image img { min-height: 145px; }.media-grid video { min-height: 210px; }.external-preview { grid-template-columns: 72px 1fr auto; }.external-preview > img { width: 72px; }
  .library-grid { grid-template-columns: 1fr; }.connector-form > div { flex-wrap: wrap; }.connector-form input { flex: 1 1 180px; }.access-shell { padding-top: 25px; }.access-card { margin-top: 45px; }.access-card form > div { flex-direction: column; }.access-card button { height: 48px; }
}

/* Feed-first social layout */
body:not(.access-page) { background: #f2f3ef; }
.social-header { height: 58px; padding: 0 max(18px,calc((100vw - 1180px) / 2)); background: rgba(255,255,252,.94); }
.social-header .brand { font-size: 19px; }.social-header .brand-mark { width: 26px; height: 26px; }
.source-button { border: 1px solid var(--line); background: white; color: var(--ink); }

.social-layout { width: min(1180px,100%); min-height: calc(100vh - 58px); margin: 0 auto; display: grid; grid-template-columns: 180px minmax(0,620px) 260px; gap: 28px; align-items: start; }
.left-rail { position: sticky; top: 78px; display: grid; gap: 5px; padding: 25px 0; }
.rail-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 13px; border: 0; border-radius: 11px; background: transparent; color: #59655f; text-decoration: none; text-align: left; font-size: 13px; }
.rail-item span { width: 22px; color: #617269; font-size: 19px; text-align: center; }.rail-item strong { font-weight: 600; }
.rail-item:hover, .rail-item.is-active { background: #e5e9e3; color: var(--ink); }.rail-item.is-active span { color: var(--green); }

.timeline-column { min-width: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card); min-height: calc(100vh - 58px); }
.timeline-title { height: 58px; display: flex; align-items: baseline; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.timeline-title h1 { margin: auto 0; font-size: 20px; line-height: 1; letter-spacing: -.035em; }.timeline-title span { margin: auto 0; color: var(--muted); font-size: 11px; }

.intent-hero, .has-feed .intent-hero { padding: 0; text-align: left; background: transparent; }
.intent-form { max-width: none; display: flex; gap: 12px; margin: 0; padding: 17px 18px 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--card); }
.intent-form:focus-within { border-color: var(--line); transform: none; box-shadow: none; }
.composer-avatar { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 10px; font-weight: 800; }
.composer-body { min-width: 0; flex: 1; }.intent-form textarea { min-height: 62px; padding: 3px 2px 9px; font-size: 16px; line-height: 1.45; }
.composer-footer { padding: 0; }.composer-hint { margin-left: 4px; color: var(--muted-2); font-size: 9px; }
.suggestions { justify-content: flex-start; gap: 5px; margin: 0; }.suggestions button { width: 29px; height: 29px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; font-size: 13px; }
.suggestions button:hover { border: 0; background: var(--green-soft); }.suggestions span { margin: 0; }
.listen-button { min-width: auto; padding: 9px 13px; border-radius: 999px; font-size: 10px; }
.notice { max-width: none; margin: 0; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

.control-deck { max-width: none; margin: 0; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fafbf8; box-shadow: none; }
.control-deck-header { align-items: center; }.control-deck h2 { font-size: 12px; letter-spacing: 0; }.control-deck-header p:last-child { margin: 3px 0 0; font-size: 9px; }
.deck-actions { align-items: center; }.icon-button { width: 27px; height: 27px; border-radius: 50%; }.text-button { font-size: 9px; }
#control-body { padding-top: 15px; }.preset-row { margin-bottom: 15px; }.algorithm-controls { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }.algorithm-controls label span, .algorithm-controls output { font-size: 8px; }
.history-panel { margin-top: 15px; }

.feed-shell { max-width: none; margin: 0; padding: 0 0 65px; display: block; }
.lens-panel { align-items: center; margin: 0; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #f5f8f3; }.lens-chips { gap: 4px; }.lens-chips span { padding: 4px 7px; font-size: 8px; }.adjust-link { flex: 0 0 auto; font-size: 9px; }
.refine-form { margin: 0; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--card); box-shadow: none; }.refine-form > div { gap: 7px; }.refine-form input { padding: 9px 11px; border-radius: 999px; background: #f2f4f0; }.refine-form button { border-radius: 999px; }
.feed-heading { margin: 0; padding: 12px 18px; align-items: center; border-bottom: 1px solid var(--line); }.feed-heading h2 { font-size: 13px; letter-spacing: 0; }.feed-heading > span { font-size: 9px; }
.feed-list { gap: 0; }.feed-card { padding: 18px 20px 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }.feed-card:not(.skeleton):hover { border-color: var(--line); box-shadow: none; transform: none; background: #fdfefb; }
.social-context { margin: -18px -20px 15px; padding: 8px 20px; }.post-copy { margin-top: 13px; }.post-text { font-size: 13px; line-height: 1.55; }
.media-grid, .video-preview, .inline-video { border-radius: 10px; }.feed-card footer { margin-top: 11px; }.empty-state { margin: 18px; border: 0; background: #f6f7f3; }

.right-rail { position: sticky; top: 78px; display: grid; gap: 18px; padding: 25px 0; }
.right-rail .connect-panel { margin: 0; padding: 15px; border-radius: 14px; box-shadow: none; }.right-rail .connect-copy { align-items: center; }.right-rail .connect-icon { width: 34px; height: 34px; border-radius: 50%; }.right-rail .connect-panel form { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }.right-rail .connect-panel input { height: 38px; }.right-rail .connect-panel form button { height: 38px; }.right-rail .credential-help { margin: 10px 0 0; }
.source-sidebar { position: static; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,252,.7); }.sidebar-heading { align-items: center; }.sidebar-heading h2 { font-size: 13px; letter-spacing: 0; }.source-list { margin-top: 10px; }.source-row { grid-template-columns: 32px 1fr 7px; padding: 10px 0; }.source-mark { width: 31px; height: 31px; border-radius: 50%; }.source-row strong { font-size: 10px; }

@media (max-width: 1050px) {
  .social-layout { grid-template-columns: 72px minmax(0,620px) 240px; gap: 18px; }.rail-item { justify-content: center; }.rail-item strong { display: none; }
}

@media (max-width: 820px) {
  .social-layout { display: block; width: min(620px,100%); padding-bottom: 58px; }.right-rail { display: none; }.timeline-column { border-right: 0; border-left: 0; }.source-button { display: block; }.social-header { padding: 0 14px; }
  .left-rail { position: fixed; z-index: 40; top: auto; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; gap: 2px; padding: 5px max(8px,calc((100vw - 600px) / 2)); border-top: 1px solid var(--line); background: rgba(255,255,252,.96); backdrop-filter: blur(18px); }
  .left-rail .rail-item { width: auto; min-width: 62px; flex-direction: column; gap: 1px; padding: 4px 9px; border-radius: 8px; text-align: center; }
  .left-rail .rail-item span { width: auto; font-size: 16px; }.left-rail .rail-item strong { display: block; font-size: 8px; }
  .algorithm-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .social-header { height: 54px; }.social-layout { min-height: calc(100vh - 54px); }.timeline-column { min-height: calc(100vh - 54px); }.timeline-title { height: 51px; padding: 0 15px; }
  .intent-form { padding: 14px 14px 11px; }.composer-avatar { width: 35px; height: 35px; }.intent-form textarea { min-height: 54px; font-size: 15px; }.composer-hint { display: none; }.listen-button { padding: 8px 11px; }
  .control-deck { margin: 0; padding: 11px 14px; }.control-deck-header h2 { font-size: 12px; }.deck-actions .text-button { display: none; }
  .lens-panel, .refine-form, .feed-heading { padding-inline: 14px; }.refine-form > div { flex-direction: row; }.refine-form button { padding: 0 12px; }
  .feed-card { padding: 16px 14px 12px; border-radius: 0; }.social-context { margin: -16px -14px 14px; padding-inline: 14px; }.media-image, .media-image img { min-height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
