@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url('./fonts/inter-latin.woff2') format('woff2')}
@font-face{font-family:Fraunces;font-style:normal;font-weight:600 700;font-display:swap;src:url('./fonts/fraunces-latin.woff2') format('woff2')}

:root{
  --paper:#f7f8fb;--surface:#fff;--ink:#111827;--muted:#5d6676;
  --line:#d9dee7;--line-soft:#e7eaf0;--accent:#6266f1;--accent-ink:#4e52d3;
  --soft:#eef0ff;--amber:#8b5f06;--success:#147d5f;
  --sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif:Fraunces,Georgia,"Times New Roman",serif;
  --radius:12px;--width:1120px;
}
*{box-sizing:border-box}
html{scroll-padding-top:24px}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
a{color:var(--accent-ink);text-underline-offset:4px}
button,a,input,textarea,select,summary{outline-offset:5px}
:focus-visible{outline:2px solid var(--accent)}
[hidden]{display:none!important}
h1,h2,h3,h4,p{margin-top:0}
h1{font:600 clamp(2rem,4vw,3rem)/1.1 var(--serif);letter-spacing:-.045em;margin:8px 0 20px}
h2{font-size:1.25rem;line-height:1.35}
h3{font-size:1.0625rem;line-height:1.45}
h4{font-size:1rem;line-height:1.45}
.heading-dot{color:var(--accent)}
.skip-link{position:absolute;top:-80px;left:20px;background:var(--surface);padding:12px 18px;z-index:100;border:1px solid var(--line);border-radius:8px}
.skip-link:focus{top:8px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px;padding:0 max(24px,calc((100vw - var(--width))/2));background:var(--surface);border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:17px;color:var(--ink);text-decoration:none;white-space:nowrap}
.brand strong{font-size:1.375rem;font-weight:700;letter-spacing:-.045em}
.brand-divider{height:20px;width:1px;background:var(--line)}
.brand>span:last-child{font-size:.875rem;font-weight:500;letter-spacing:.02em;color:var(--muted)}
.masthead nav{display:flex;align-items:stretch;gap:26px;align-self:stretch}
.masthead nav button{border:0;border-bottom:2px solid transparent;padding:0 2px;background:none;color:var(--muted);font-size:.875rem;font-weight:500}
.masthead nav button:hover{color:var(--accent-ink)}
.masthead nav button[aria-current=page]{color:var(--ink);border-bottom-color:var(--accent)}
.agent-connections{display:flex;gap:8px;flex-wrap:wrap}
.agent-connections .secondary{font-size:.75rem;padding:8px 10px;white-space:nowrap}
.connector-url{overflow-wrap:anywhere;user-select:all}
@media(max-width:740px){.masthead:has(.agent-connections){flex-wrap:wrap;padding-top:16px;padding-bottom:12px;gap:12px}.masthead .agent-connections{width:100%}}
main{width:min(var(--width),calc(100% - 48px));margin:0 auto;padding:30px 0 64px;min-height:75vh}
.edition-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px;color:var(--muted);font-size:.8125rem}
.edition-bar a{text-decoration:none;font-size:.8125rem}
.edition-bar a:hover{text-decoration:underline}
.edition-bar .quiet{font-size:.75rem}
.eyebrow,.label{font-size:.75rem;font-weight:600;line-height:1.5;letter-spacing:.04em;color:var(--muted)}
.intro{max-width:740px;color:var(--muted);margin-bottom:32px;font-size:1rem}
.quiet{color:var(--muted);font-size:.875rem}
.text-button,.small-link{color:var(--accent-ink);font-size:.875rem;font-weight:500}
.text-button{border:0;background:transparent;padding:5px 0;text-align:left}
.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.primary,.secondary{min-height:42px;border-radius:8px;padding:9px 16px;font-size:.875rem;font-weight:600}
.primary{border:1px solid var(--accent);background:var(--accent);color:#fff}
.primary:hover{background:var(--accent-ink)}
.secondary{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.secondary:hover{border-color:var(--accent)}
.button-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:5px;background:var(--soft);color:var(--accent-ink);font-size:.75rem;font-weight:500}
.pill.supported,.pill.corroborated{background:#e8f6f1;color:var(--success)}
.pill.uncertain,.pill.disputed{background:#fff5d6;color:var(--amber)}
.pill.retracted{background:#ffe8ed;color:#a3223b}
.warning{padding:14px 16px;border:1px solid #f0dfb7;border-radius:8px;background:#fff9ed;color:var(--amber);font-size:.875rem;line-height:1.65}
.empty{grid-column:1/-1;padding:36px 24px;border:1px dashed var(--line);border-radius:var(--radius);text-align:center;color:var(--muted)}
.loading{margin:80px 0;color:var(--muted);text-align:center}

.briefing-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin:0 0 28px}
.briefing-heading h1{margin:0}
.briefing-heading .eyebrow{white-space:nowrap}
.editorial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.editorial-pick{display:flex;flex-direction:column;min-width:0;padding:17px 0 14px;border-top:2px solid var(--line)}
.pick-lead{border-top-color:var(--accent)}
.pick-top{display:flex;align-items:baseline;gap:10px;color:var(--muted);font-size:.75rem;font-weight:500}
.pick-number{font-variant-numeric:tabular-nums;color:var(--accent-ink)}
.editorial-pick h2{font:600 1.5rem/1.2 var(--serif);letter-spacing:-.025em;margin:14px 0 13px;overflow-wrap:anywhere}
.editorial-pick h2 button{display:block;width:100%;border:0;background:none;color:inherit;text-align:left;font:inherit;letter-spacing:inherit;padding:0}
.editorial-pick h2 button:hover{color:var(--accent-ink)}
.pick-summary{font-size:1rem;line-height:1.6;color:var(--muted);margin:0 0 20px}
.pick-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:auto;font-size:.75rem;color:var(--muted);line-height:1.5}
.pick-bottom button{border:0;background:none;color:var(--accent-ink);padding:3px 0;font-size:.875rem;font-weight:500}
.pick-bottom button:hover{text-decoration:underline;text-underline-offset:4px}
.pick-bottom button span{margin-left:4px}
.edition-notes{margin:4px 0 28px;padding:0;border:0;color:var(--muted)}
.edition-notes>summary{width:fit-content;font-size:.8125rem;font-weight:400;padding:6px 0}
.edition-notes-body{display:grid;grid-template-columns:1fr 1fr;gap:36px;padding:20px 0 0;font-size:.875rem}
.edition-notes-body h3{font-size:1rem;color:var(--ink)}
.edition-notes-body ul{padding-left:20px;margin:0 0 14px}
.edition-notes-body li{margin-bottom:9px}
.more-picks{font-size:.875rem}
.more-picks p{margin:10px 0}

.source-feed{padding-top:28px;border-top:1px solid var(--line)}
.feed-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}
.feed-heading h2{font-size:1.375rem;letter-spacing:-.03em;margin:0 0 4px;font-weight:600}
.feed-heading p{font-size:.875rem;color:var(--muted);margin:0}
.feed-scope-label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.875rem}
.feed-scope-label select{font-size:.875rem;min-height:40px}
.feed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px}
.feed-filters{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.feed-filters button{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:.875rem;white-space:nowrap}
.feed-filters button span{font-size:.75rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.feed-filters button:hover{background:var(--surface)}
.feed-filters button[aria-pressed=true]{background:var(--soft);color:var(--accent-ink);font-weight:600}
.feed-filters button[aria-pressed=true] span{color:var(--accent-ink)}
#feed-search{width:225px;min-width:160px;font-size:.875rem;min-height:40px}
.feed-count{margin:14px 0 27px;color:var(--muted);font-size:.75rem;line-height:1.6}
.feed-day{margin-bottom:32px}
.feed-day-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.feed-day-heading h3{font-size:.8125rem;font-weight:600;color:var(--muted);margin:0}
.feed-day-heading>span{font-size:.75rem;color:var(--muted)}
.feed-list{list-style:none;padding:0;margin:0}
.feed-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:17px 0;border-bottom:1px solid var(--line-soft)}
.feed-item-body{min-width:0}
.feed-item:hover{background:var(--surface)}
.feed-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;color:var(--muted);font-size:.75rem;line-height:1.6}
.feed-publisher{font-weight:500}
.feed-meta .access-limit{color:var(--amber)}
.feed-title-link{color:var(--ink);text-decoration:none}
.feed-title-link:hover{color:var(--accent-ink);text-decoration:underline}
.feed-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line);font-size:.8125rem;color:var(--muted)}
.story-cluster{border:0;margin:0;padding:0}
.story-cluster>summary{list-style:none;font-weight:400}
.story-cluster>summary::-webkit-details-marker{display:none}
.cluster-headline{display:block;font-size:1rem;font-weight:500;line-height:1.5;letter-spacing:-.01em;margin-bottom:5px;overflow-wrap:anywhere}
.story-cluster>summary:hover .cluster-headline{color:var(--accent-ink)}
.cluster-source-count{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:.8125rem;color:var(--muted)}
.cluster-chevron{font-size:1.125rem;color:var(--muted);line-height:1}
.story-cluster[open] .cluster-chevron{transform:rotate(180deg)}
.story-cluster[open]>summary{border-bottom-color:transparent}
.story-cluster[open] .cluster-headline{color:var(--accent-ink)}
.cluster-content{padding:0 22px 8px;margin:0 0 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.cluster-note{padding:16px 0;margin:0;border-bottom:1px solid var(--line-soft);color:var(--muted);font-size:.875rem;line-height:1.65}
.cluster-source{padding:18px 0;border-bottom:1px solid var(--line-soft)}
.cluster-source:last-child{border-bottom:0}
.cluster-source h4{font-size:1rem;font-weight:500;margin:0 0 7px;overflow-wrap:anywhere}
.cluster-source>p{font-size:1rem;color:var(--muted);line-height:1.65;margin:10px 0 5px;max-width:900px}

input,textarea,select{min-width:0;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:9px 12px}
input:focus,textarea:focus,select:focus{border-color:var(--accent)}
textarea{resize:vertical;line-height:1.65;width:100%}
input[type=checkbox]{accent-color:var(--accent);height:18px;width:18px;padding:0}
select{max-width:100%}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:24px 0 20px}
.toolbar input{flex:1;min-width:180px}
.segmented{display:inline-flex;gap:3px;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:3px}
.segmented button{border:0;border-radius:5px;background:none;color:var(--muted);padding:7px 14px;font-size:.875rem}
.segmented button.selected{background:var(--soft);color:var(--accent-ink);font-weight:600}
.library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.library-card{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:23px}
.library-card h3{font-size:1rem;font-weight:600;margin:13px 0;overflow-wrap:anywhere}
.library-card p{font-size:1rem;color:var(--muted);margin-bottom:14px}
.card-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px}
.count-line{font-size:.875rem;color:var(--muted);margin-bottom:18px}
.research-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px}
.form-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:26px;margin-bottom:22px}
.form-panel h2{font:600 1.625rem/1.2 var(--serif);letter-spacing:-.025em;margin-bottom:16px}
.field{display:grid;gap:8px;margin:20px 0;font-size:.875rem;font-weight:500}
.field .help{font-weight:400;color:var(--muted);font-size:.8125rem}
.field input{width:100%}
.budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.source-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;padding:22px 0;border-top:1px solid var(--line)}
.source-row:first-of-type{margin-top:22px}
.source-row input[type=checkbox]{margin-top:4px}
.source-row h3{font-size:1rem;margin-bottom:4px}
.source-url{font-size:.8125rem;overflow-wrap:anywhere}
.source-controls{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.source-controls label{display:grid;gap:5px;font-size:.8125rem;color:var(--muted)}
.source-controls select{font-size:.875rem;padding:7px 9px}
.source-row p{font-size:.875rem;color:var(--muted);margin:8px 0}
.source-state{font-size:.8125rem;color:var(--muted);overflow-wrap:anywhere}
.save-bar{position:sticky;bottom:15px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #1118270a}
.save-bar span{font-size:.8125rem;color:var(--muted)}
details:not(.story-cluster):not(.edition-notes){border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
summary{cursor:pointer;font-size:.875rem;font-weight:500}
.side-panel{border-top:1px solid var(--line);padding-top:20px;margin-bottom:30px}
.side-panel h3{font:600 1.375rem/1.3 var(--serif);letter-spacing:-.02em;margin:14px 0 20px}
.side-panel p{font-size:.875rem;color:var(--muted)}
.side-panel>.pill{margin-bottom:4px}
.run-step{display:flex;gap:12px;margin:20px 0}
.run-step>span{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:var(--soft);color:var(--accent-ink);font-size:.75rem}
.run-step strong{display:block;font-size:.875rem;font-weight:600}
.run-step p{font-size:.8125rem;margin:5px 0 0;color:var(--muted)}
.rules{font-size:.875rem;color:var(--muted);padding-left:18px}
.rules li{margin:12px 0}

dialog{width:min(820px,calc(100vw - 32px));max-height:90vh;padding:36px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 24px 90px #11182729}
dialog::backdrop{background:#11182766;backdrop-filter:blur(3px)}
.close-dialog{position:sticky;top:0;float:right;display:grid;place-items:center;width:36px;height:36px;margin:-16px -16px 0 14px;border:1px solid var(--line);border-radius:50%;background:var(--surface);font-size:1.5rem;line-height:1;z-index:1}
dialog h2{font:600 clamp(1.75rem,3vw,2.25rem)/1.15 var(--serif);letter-spacing:-.035em;margin:14px 0 22px;overflow-wrap:anywhere}
dialog .dek{font-size:1.0625rem;color:var(--muted);line-height:1.65}
.analysis-block{border-left:2px solid var(--accent);padding:6px 0 4px 20px;margin:26px 0}
.analysis-block h3{font-size:.875rem}
.analysis-block p{margin-bottom:8px}
.claim-detail{border:1px solid var(--line);padding:20px;border-radius:10px;margin:16px 0}
.claim-detail p{font-size:1rem;margin:14px 0}
.claim-detail .quiet{font-size:.8125rem}
.source-link{display:block;padding:14px 0;border-bottom:1px solid var(--line-soft);text-decoration:none;overflow-wrap:anywhere}
.source-link strong{display:block;font-size:.875rem;font-weight:500}
.source-link span{font-size:.75rem;color:var(--muted)}
.source-link:hover strong{text-decoration:underline}
.dialog-section{margin-top:28px}
.dialog-section>h3{font-size:1rem}
.source-facts{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;font-size:.875rem;margin:24px 0}
.source-facts dt{color:var(--muted)}
.source-facts dd{margin:0;overflow-wrap:anywhere}
.prompt-copy{min-height:330px;font-family:monospace;font-size:.875rem}
#notice:not(:empty){position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:10;max-width:min(600px,90vw);padding:13px 18px;border-radius:8px;background:var(--ink);color:#fff;box-shadow:0 5px 30px #11182726;font-size:.875rem}
footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:24px max(24px,calc((100vw - var(--width))/2));border-top:1px solid var(--line);color:var(--muted);font-size:.75rem}

@media(max-width:1000px){
  .editorial-grid{gap:22px}
  .feed-toolbar{flex-wrap:wrap}
  #feed-search{flex:1;min-width:200px}
  .research-grid{grid-template-columns:minmax(0,1fr) 240px;gap:24px}
}
@media(max-width:760px){
  .masthead{gap:16px;min-height:70px}
  .masthead nav{gap:18px}
  .briefing-heading{flex-wrap:wrap;gap:10px;margin-bottom:24px}
  .briefing-heading .eyebrow{width:100%}
  .editorial-grid{grid-template-columns:1fr;gap:4px}
  .editorial-pick{display:grid;grid-template-columns:minmax(0,1fr);padding:20px 0;gap:0}
  .editorial-pick h2{font-size:1.5rem;margin:10px 0}
  .pick-summary{margin-bottom:14px}
  .pick-bottom{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px}
  .edition-notes-body{grid-template-columns:1fr;gap:22px}
  .feed-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}
  .feed-toolbar{gap:12px}
  #feed-search{flex-basis:100%;width:100%}
  .research-grid{grid-template-columns:1fr}
  .library{grid-template-columns:1fr}
  .research-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .feed-footer{align-items:flex-start;flex-direction:column;gap:5px}
}
@media(max-width:480px){
  .masthead{flex-wrap:wrap;padding-top:18px;gap:10px}
  .masthead nav{width:100%;height:45px;justify-content:space-between;gap:16px}
  .masthead nav button{padding:0 6px}
  main{width:calc(100% - 40px);padding-top:22px}
  .edition-bar{align-items:flex-start;flex-wrap:wrap;gap:5px 15px;margin-bottom:22px}
  .edition-bar>span:first-child{width:100%}
  .feed-item{gap:12px;align-items:start}
  .cluster-source-count{font-size:.75rem;gap:6px;padding-top:3px}
  .cluster-headline{font-weight:600}
  .cluster-content{padding:0 15px 6px}
  .feed-filters{gap:3px}
  .feed-filters button{font-size:.8125rem;padding:7px 8px}
  .form-panel{padding:20px}
  .budget-grid{grid-template-columns:1fr}
  .research-grid>aside{grid-template-columns:1fr}
  .save-bar{align-items:flex-start;flex-direction:column;gap:12px}
  .save-bar .primary{width:100%}
  .toolbar input{min-width:100%;order:-1}
  .toolbar .segmented{flex:1}
  dialog{padding:28px 20px}
  .source-facts{grid-template-columns:1fr;gap:4px}
  .source-facts dd{margin-bottom:10px}
  .claim-detail{padding:16px}
}
@media(prefers-reduced-motion:no-preference){
  button,a,summary{transition:color .12s ease,background-color .12s ease,border-color .12s ease}
}
