:root {
  color-scheme: light;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #20312e;
  background: #f5f8f5;
  --ink: #20312e;
  --muted: #596d65;
  --forest: #132c28;
  --accent: #24594b;
  --mint: #e4f1e9;
  --line: #dbe5df;
  --paper: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #5d9b87; outline-offset: 3px; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.app { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { padding: 24px 16px 16px; background: var(--forest); color: #edf7ef; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; min-height: 480px; }
.brand { display: flex; align-items: center; gap: 11px; margin: 2px 2px 33px; }
.brand strong, .side-foot strong { display: block; }
.brand strong { font-size: 19px; letter-spacing: -.5px; }
.brand div span, .side-foot div span { display: block; color: #adcaBE; font-size: 12px; margin-top: 3px; }
.mark { background: #bce4c5; color: #143b30; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: -.8px; flex: none; }
.new, .nav, .recent button { display: flex; align-items: center; width: 100%; text-align: start; gap: 11px; border: 0; border-radius: 9px; min-height: 42px; padding: 9px 12px; font-size: 14px; }
.new { color: #173a30; font-weight: 700; background: #ccebd3; margin-bottom: 25px; }
.new:hover { background: #e1f4e0; }
.nav, .recent button { color: #d0e1d8; background: transparent; }
.nav.current, .nav:hover, .recent button:hover, .recent button.selected { background: #294840; color: white; }
.nav span { width: 16px; text-align: center; color: #9fd5b4; font-size: 17px; }
.recent { display: flex; flex-direction: column; min-height: 0; margin-top: 26px; }
.side-label { color: #aec9be; padding: 0 12px 7px; font-size: 12px; }
#recent-list { overflow: auto; }
.recent button { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; min-height: 34px; font-size: 13px; }
.side-foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 1px 0; border-top: 1px solid #3c554e; font-size: 13px; }
.side-foot button { color: #cce5d7; margin-left: auto; background: transparent; border: 0; }
.avatar { display: grid; place-items: center; border-radius: 50%; background: #31574b; width: 32px; height: 32px; color: #eaf7ee; font-weight: 700; flex: none; }
main { min-width: 0; }
.topbar { height: 63px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 25px; border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar > div { display: flex; align-items: center; gap: 12px; }
.crumb { color: var(--muted); }
.separator { color: #82968a; }
.badge { background: var(--mint); color: #2a5948; border-radius: 20px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #409366; }
#menu { display: none; }
.screen { min-width: 0; }
.chat-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px, 32%); min-height: calc(100dvh - 63px); }
.conversation { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; height: calc(100dvh - 63px); }
.chat-scroll { overflow: auto; flex: 1; }
.welcome { max-width: 680px; margin: clamp(32px, 10vh, 103px) auto 22px; padding: 0 30px; }
.hero-symbol { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; color: #225c4a; background: #dcefe2; font-size: 30px; margin-bottom: 19px; }
.welcome h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(39px, 5vw, 67px); letter-spacing: -.055em; line-height: .99; color: #173b32; }
.welcome p { margin: 18px 0 22px; font-size: 16px; max-width: 475px; line-height: 1.55; color: var(--muted); }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.suggestions button { text-align: left; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #fcfefd; min-height: 61px; font-size: 14px; line-height: 1.35; }
.suggestions button:hover, .entry:hover { border-color: #83a995; background: #f5faf6; }
.suggestions b { display: block; color: #234d40; margin-bottom: 3px; }
.suggestions span { color: var(--muted); font-size: 13px; }
.composer-wrap { width: 100%; max-width: 680px; margin: auto auto 0; padding: 8px 30px 13px; }
#composer { border: 1px solid #bdcec4; background: #fff; border-radius: 15px; padding: 8px 10px 9px; box-shadow: 0 4px 19px #1d342009; }
#composer:focus-within { border-color: #618e7a; }
#prompt { resize: vertical; min-height: 52px; max-height: 180px; display: block; width: 100%; padding: 8px 6px; border: 0; outline: none; color: var(--ink); background: transparent; }
#prompt:focus-visible { outline: 0; }
.composer-actions, .actions, .dialog-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.composer-actions, .dialog-heading { justify-content: space-between; }
.primary, .quiet, .icon { border-radius: 8px; padding: 8px 11px; font-size: 14px; font-weight: 650; min-height: 36px; }
.primary { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.primary:not(:disabled):hover { background: #154235; }
.quiet, .icon { background: white; border: 1px solid var(--line); }
.quiet:hover, .icon:hover { background: #eaf4ee; }
.composer-caption { color: var(--muted); text-align: center; font-size: 12px; padding: 9px 0 0; }
.preview { border-left: 1px solid var(--line); padding: 23px 17px; background: #fcfefd; height: calc(100dvh - 63px); overflow: auto; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-tag { color: #526c61; font-size: 12px; font-weight: 700; letter-spacing: .095em; }
.preview h2 { color: #254f42; font-size: 23px; letter-spacing: -.55px; margin-top: 4px; }
.preview-icon { background: var(--mint); color: #376553; border-radius: 9px; padding: 7px 10px; font-size: 21px; }
.placeholder { display: grid; place-items: center; text-align: center; border: 1px dashed #c9dbd0; border-radius: 13px; padding: 25px 16px; color: var(--muted); line-height: 1.5; min-height: 180px; font-size: 14px; }
.placeholder strong { color: var(--ink); display: block; margin-bottom: 5px; }
.result-title { color: #254f42; display: block; font-size: 31px; font-weight: 750; letter-spacing: -1.4px; }
.result-meta { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 3px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0; }
.chip { border-radius: 5px; padding: 4px 6px; background: var(--mint); color: #30574a; font-size: 12px; }
.results-list { display: grid; margin: 10px 0; }
.result-row { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; padding: 8px 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; min-height: 44px; }
.result-row:hover { background: var(--mint); }
.result-row strong, .result-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row strong { font-size: 14px; }
.result-row small, .result-row > span:last-child { color: var(--muted); font-size: 12px; }
.result-row > span:first-child { min-width: 0; }
.result-row > span:last-child { white-space: nowrap; }
.paging { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.messages { padding: 24px 30px 8px; max-width: 680px; margin: auto; display: grid; gap: 17px; }
.messages:empty { display: none; }
.message { max-width: min(100%, 590px); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.message.user { justify-self: end; border-radius: 14px 14px 4px 14px; background: #e0eee5; padding: 11px 15px; }
.message.assistant { padding: 0 8px 9px 0; }
.message.assistant::before { content: '✳  Listfluence'; display: block; color: #2a6450; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
#notice { color: #69532a; background: #f7f0df; border: 1px solid #eadcbc; border-radius: 6px; padding: 7px 10px; margin-bottom: 7px; font-size: 13px; }
.collection { max-width: 850px; margin: 0 auto; padding: 34px 30px; }
.collection h1 { font-family: Georgia, serif; font-size: 39px; color: #173b32; letter-spacing: -.04em; font-weight: 500; }
.collection > p { color: var(--muted); margin: 8px 0 20px; }
.items { display: grid; gap: 9px; }
.entry { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.entry h3 { font-size: 16px; }
.entry p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.history-preview { background: #fff; margin-top: 15px; border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
dialog { width: min(92vw, 530px); border: 1px solid var(--line); border-radius: 15px; color: var(--ink); padding: 20px; }
dialog::backdrop { background: #0d2522aa; }
dialog h2 { font-size: 23px; }
#login { max-width: 360px; }
#login h1 { font-family: Georgia, serif; font-weight: 500; margin: 8px 0; }
#login form, .stacked { display: grid; gap: 12px; }
.stacked { max-width: 520px; }
.stacked .primary { justify-self: start; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; background: #fff; color: var(--ink); border-radius: 7px; border: 1px solid #aebfb5; padding: 8px; min-width: 0; }
input[type=checkbox] { width: 17px; height: 17px; }
.check { display: flex; align-items: center; }
[role=alert] { color: #92372e; }
.detail { display: grid; grid-template-columns: auto 1fr; gap: 7px 13px; font-size: 14px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
@media(max-width: 1130px) { .app { grid-template-columns: 195px minmax(0, 1fr); } .preview { padding: 20px 13px; } }
@media(max-width: 850px) {
  .app { display: block; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; z-index: 2; position: fixed; left: 0; width: min(80vw, 240px); box-shadow: 0 0 30px #0004; }
  #menu { display: block; }
  .topbar { position: sticky; z-index: 3; top: 0; padding: 0 13px; }
  .sidebar.open { top: 63px; height: calc(100dvh - 63px); }
}
@media(max-width: 650px) {
  .chat-layout { display: block; }
  .conversation { min-height: min(620px, calc(100dvh - 63px)); height: auto; }
  .chat-scroll { overflow: visible; }
  .preview { border-top: 1px solid var(--line); border-left: none; height: auto; }
  .welcome, .messages, .composer-wrap { padding-left: 15px; padding-right: 15px; }
  .welcome { margin-top: 23px; }
  .crumb, .separator { display: none; }
  .filter-grid { grid-template-columns: 1fr; }
}
:root { --forest: #192c27; --accent: #244a3a; --mint: #e9f0e2; --line: #e0e6dd; background: #f7f8f4; font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
.app { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { padding: 27px 17px 19px; }
.brand { margin-bottom: 34px; }
.brand .mark { width: 40px; height: 40px; }
.brand strong { font-size: 20px; letter-spacing: -.7px; }
.brand strong .wordmark-accent { display: inline; color: #d7f1a7; font-size: inherit; }
.new { background: #def1be; min-height: 45px; }
.new:hover { background: #ecf8d3; }
.nav.current { box-shadow: inset 2px 0 #d0ec9b; background: #30443b; }
.topbar { height: 68px; padding-inline: 29px; }
.chat-layout { grid-template-columns: minmax(0,1fr) minmax(306px, 31%); min-height: calc(100dvh - 68px); }
.conversation,.preview { height: calc(100dvh - 68px); }
.welcome { max-width: 705px; margin-top: clamp(28px, 11vh, 116px); }
.hero-symbol { padding: 0; width: 54px; height: 54px; box-shadow: 0 5px 16px #4d693723; }
.hero-symbol img { width: 100%; }
.welcome h1 { font-size: clamp(48px, 5.25vw, 81px); color: #192f27; line-height: .99; letter-spacing: -.058em; }
.welcome h1 em { color: #42604c; font-weight: 400; }
.welcome p { max-width: 480px; margin-top: 22px; }
.suggestions button { padding: 14px; min-height: 70px; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px #19321c06; }
.suggestions b { font-weight: 700; color: #1d3d2e; }
.composer-wrap { max-width: 705px; }
#composer { padding: 10px 12px 11px; border-radius: 17px; border-color: #c7d4c8; box-shadow: 0 9px 30px #243b2d0b; }
.composer-caption { padding-top: 10px; }
.primary { border-radius: 9px; padding-inline: 14px; }
.preview { padding: 25px 20px; background: #fff; }
.preview-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.preview-heading h2 { color: #1c3c2e; margin: 0; }
.preview-heading p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.placeholder { background: #f7f9f4; min-height: 175px; }
.placeholder strong { font-size: 15px; color: #233b31; }
.result-row { min-height: 52px; }
.result-row > span:first-child small.reason { white-space: normal; margin-top: 3px; }
.result-meta { overflow-wrap: anywhere; }
.collection { max-width: 960px; }
.entry { padding: 17px; }
.screen.builder { max-width: none; }
.builder .stacked { max-width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
.builder .actions,.builder .column-picker { grid-column: 1 / -1; }
.column-picker { display: grid; grid-template-columns: repeat(auto-fit,minmax(176px,1fr)); gap: 7px; }
.column-picker > div { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 6px; background: white; }
.column-picker label { margin-right: auto; font-size: 13px; }
.column-picker .icon { min-height: 26px; padding: 3px 5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; margin-top: 14px; background: white; }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.table-wrap th { color: #244537; background: #eef3e8; white-space: nowrap; }
.table-wrap td, .table-wrap th { padding: 10px; border-bottom: 1px solid var(--line); min-width: 112px; max-width: 280px; overflow-wrap: anywhere; }
.source-form { margin-top: 22px; }
#builder-exports, #builder-status, #sources-status, #owner-status, #compare-status { margin: 12px 0; }
#compare-form { align-items: end; margin-bottom: 10px; }
#compare-form select { min-width: 160px; max-width: 310px; }
.pulsing { animation: breathe 1.15s ease-in-out infinite alternate; }
.filter-groups { display: grid; gap: 8px; max-height: 60dvh; overflow: auto; padding: 3px; }
#filters { width: min(92vw, 770px); }
#filter-form { max-width: none; }
.filter-group { border: 1px solid var(--line); border-radius: 10px; background: #fbfcf9; }
.filter-group summary { cursor: pointer; color: #244537; padding: 11px 12px; font-weight: 700; }
.filter-group .filter-grid { padding: 6px 12px 13px; }
.unavailable-filter { display: grid; gap: 4px; background: #edf0eb; border-radius: 6px; color: #5f6f65; padding: 7px; font-size: 14px; }
.unavailable-filter small { font-size: 12px; }
.filter-actions { justify-content: flex-end; }
#chat-attachments:empty { display: none; }
#chat-attachments .chip { overflow-wrap: anywhere; }
@keyframes breathe { to { opacity: .55; } }
@media(prefers-reduced-motion:reduce) { .pulsing { animation: none; } }
@media(max-width: 1130px) { .app { grid-template-columns: 210px minmax(0,1fr); } .preview { padding-inline: 14px; } }
@media(max-width: 850px) { .topbar { padding-inline: 13px; } .sidebar.open { top: 68px; height: calc(100dvh - 68px); } }
@media(max-width: 650px) { .conversation,.preview { height: auto; } .welcome { margin-top: 28px; } .builder .stacked { grid-template-columns: 1fr; } }

:root { --forest:#142a22; --paper:#fffefa; --line:#e6e7de; --muted:#53625b; --accent:#234b36; background:#f7f6f0; }
.app { grid-template-columns:250px minmax(0,1fr); }
.sidebar { background:linear-gradient(160deg,#183128,#10241d 76%); }
.brand { margin-bottom:32px; align-items:flex-start; }
.brand strong { font:600 25px/1.08 Georgia,serif; letter-spacing:-.7px; }
.brand div > span { color:#c0d1c4; margin-top:5px; }
.new { background:#dcefc0; }
.topbar { background:#fbfaf6; }
.topbar .workspace-search { display:flex; position:relative; width:min(55%,620px); gap:0; }
.workspace-search > span { position:absolute; left:14px; font-size:23px; color:var(--muted); }
.workspace-search > input { border-radius:999px; min-height:42px; padding:8px 14px 8px 42px; background:#fbfaf7; border-color:#dedfd7; }
#workspace-search-results { position:absolute; display:grid; top:calc(100% + 7px); width:100%; z-index:5; padding:8px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 22px #152a2222; gap:5px; }
#workspace-search-results button { text-align:left; }
.chat-layout { background:radial-gradient(80% 70% at 96% -16%,#dde8cc,transparent 73%),#f8f7f2;
  grid-template-columns:minmax(0,1fr) minmax(302px,33%); }
.welcome { max-width:850px; margin:clamp(44px,10vh,107px) auto 24px; padding-inline:clamp(20px,4.1vw,58px); }
.hero-flag { display:inline-flex; align-items:center; gap:8px; padding:5px 12px 5px 6px;
  border-radius:999px; background:#eaf0df; color:#244737; font-size:13px; font-weight:650; margin-bottom:21px; }
.hero-flag img { width:25px; height:25px; border-radius:7px; }
.welcome h1 { font-size:clamp(39px,3.7vw,68px); max-width:790px; color:#16352a; letter-spacing:-.061em; line-height:1.02; }
.welcome p { margin-top:17px; max-width:690px; }
.suggestions { gap:11px; }
.suggestions button { background:#fffefa; border-color:#e3e6da; border-radius:14px; padding:13px 15px; box-shadow:0 2px 5px #223c2609; }
.suggestions button:hover { background:#f4f7ea; }
.composer-wrap { max-width:850px; padding-inline:clamp(14px,3.6vw,49px); }
#composer { min-height:111px; background:#fffefa; border-color:#bccbbf; }
.composer-actions .actions { flex:1 1 auto; }
.preview { background:transparent; border:none; padding:clamp(18px,3.5vh,42px) clamp(12px,1.8vw,25px) 16px 2px; }
.preview-heading,#result-panel { background:#fffefa; border:1px solid var(--line); }
.preview-heading { border-radius:19px 19px 0 0; border-bottom:0; margin:0; padding:19px 15px 12px; justify-content:flex-start; gap:10px; }
.preview-heading h2 { font:600 23px/1.1 Georgia,serif; }
#result-panel { border-radius:0 0 19px 19px; border-top:0; padding:0 15px 16px; min-height:190px; box-shadow:0 8px 22px #263d2708; }
.shortlist-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:11px 6px; border:1px solid var(--line); border-radius:11px; background:#f9faf4; }
.shortlist-stats div { display:grid; gap:4px; padding-left:8px; }
.shortlist-stats div + div { border-left:1px solid var(--line); }
.shortlist-stats strong { color:#254737; font:700 clamp(17px,1.9vw,25px)/1 Georgia,serif; }
.shortlist-stats span { color:var(--muted); font-size:11px; }
.creator-cell { display:flex; flex:1; min-width:0; align-items:center; gap:8px; }
.creator-initials { flex:none; display:grid; place-items:center; width:33px; height:33px; background:#e7efd9; color:#305941; border-radius:8px; font-weight:700; font-size:11px; }
.creator-info { flex:1; min-width:0; }
.creator-numbers { flex:none; text-align:right; }
#result-panel .results-list { grid-template-columns:minmax(0,1fr); max-height:min(43vh,440px); overflow:auto; padding-right:3px; }
.reference-actions,.settings-actions { margin:15px 0; }
#sources-view h2 { margin-top:27px; margin-bottom:11px; font:600 24px Georgia,serif; color:var(--accent); }
@media(max-width:1130px) { .app { grid-template-columns:196px minmax(0,1fr); } .welcome { padding-inline:23px; } .preview { padding-right:11px; } }
@media(max-width:850px) { .topbar .workspace-search { width:min(52%,370px); } .preview { padding-top:20px; } .topbar .top-context { gap:6px; } }
@media(max-width:650px) { .topbar .workspace-search { display:none; } .welcome { padding-inline:16px; margin-top:30px; } .hero-flag { margin-bottom:15px; }
  .chat-layout { background:radial-gradient(90% 30% at 98% -3%,#e5edda,transparent 80%),#f8f7f2; }
  .preview { padding:12px 14px 22px; } .preview-heading { padding-top:15px; }
  .composer-actions .quiet { font-size:12px; padding-inline:7px; }
  .composer-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:5px; }
  .creator-initials { width:31px; height:31px; } }

:root {
  --ink:#252638;
  --muted:#646475;
  --accent:#4e4896;
  --line:#e7e3ed;
  --mint:#edeaf8;
  --paper:#fff;
  color:var(--ink);
  background:#faf9f7;
  font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline-color:#7566bf; }
.app { grid-template-columns:218px minmax(0,1fr); }
.sidebar { background:#f4f2f1; border-right:1px solid var(--line); color:var(--ink); padding:25px 14px 16px; }
.brand { align-items:center; gap:10px; margin:0 5px 28px; }
.brand .mark { width:35px; height:35px; border-radius:9px; }
.brand strong { font:720 21px/1.1 inherit; font-family:inherit; font-size:21px; line-height:1.1; font-weight:720; letter-spacing:-.55px; }
.new { background:var(--accent); color:#fff; margin-bottom:19px; box-shadow:0 2px 5px #382e651f; }
.new:hover,.primary:hover { background:#3f397f; }
.nav,.recent button { color:#494858; font-weight:550; }
.nav span,.side-label,.side-foot div span,.side-foot button { color:var(--muted); }
.nav.current,.nav:hover,.recent button:hover,.recent button.selected { background:#e8e4f4; color:#3e367b; }
.nav.current span { color:var(--accent); }
.side-foot { border-color:var(--line); }
.avatar,.creator-initials { background:#e8e4f7; color:#4b4289; }
.topbar { background:#fffdfb; }
.topbar .top-tools { gap:8px; }
.workspace-search > input { background:#faf9fb; border-color:var(--line); border-radius:9px; }
.badge { background:#efedf7; color:#51477a; }
.badge > span:first-child { background:#7469a9; }
.chat-layout { background:radial-gradient(73% 69% at 100% -10%,#eeebfa,transparent 68%),#faf9f7;
  grid-template-columns:minmax(0,1fr) minmax(290px,31%); }
.chat-layout.collapsed { grid-template-columns:minmax(0,1fr); }
.welcome { max-width:800px; margin:clamp(43px,10vh,102px) auto 24px; padding-inline:clamp(17px,4vw,47px); }
.welcome h1 { font-family:inherit; font-size:clamp(41px,4.1vw,65px); line-height:1.05; letter-spacing:-.058em; font-weight:710; color:#222334; }
.welcome p { font-size:16px; max-width:520px; margin:14px 0 25px; }
.suggestions { gap:10px; }
.suggestions button { position:relative; background:#ffffffac; border-color:var(--line); border-radius:10px; min-height:67px; padding:11px 32px 11px 13px; box-shadow:none; }
.suggestions button:hover,.entry:hover { color:var(--ink); background:#f7f4fc; border-color:#cbc3e7; }
.suggestions b,.collection h1,#sources-view h2,.preview-heading h2 { color:var(--ink); }
.suggestions .suggestion-arrow { position:absolute; right:11px; top:11px; color:var(--accent); }
.composer-wrap { max-width:800px; padding-bottom:24px; }
#composer { background:#fff; border-color:#dbd4eb; min-height:106px; box-shadow:0 8px 25px #302b5109; }
#composer:focus-within { border-color:#877bbd; }
.quiet,.icon { color:#48455e; border-color:var(--line); background:#fff; }
.quiet:hover,.icon:hover { background:#f2eff9; border-color:#d4cde8; }
.conversation,.preview { height:calc(100dvh - 68px); }
.preview { height:auto; overflow:visible; padding:28px 20px 24px 0; }
.preview-heading,#result-panel { background:#fff; border-color:var(--line); }
.preview-heading { border-radius:13px 13px 0 0; justify-content:space-between; align-items:flex-start; padding:15px 14px 11px; }
.preview-heading h2 { font-family:inherit; font-size:17px; font-weight:680; letter-spacing:-.25px; }
.preview-heading p { font-size:12px; }
.preview-heading button { min-height:29px; padding:2px 8px; }
#result-panel { border-radius:0 0 13px 13px; min-height:126px; box-shadow:0 8px 22px #342d5909; }
#result-panel .results-list { max-height:none; overflow:visible; }
.shortlist-stats { background:#faf9fd; }
.shortlist-stats strong { font-family:inherit; color:var(--accent); font-size:clamp(17px,1.7vw,25px); }
.result-row:hover { background:#f3effb; border-color:#d8cfee; }
.collection h1,#login h1,#sources-view h2 { font-family:inherit; font-weight:700; }
.collection h1 { letter-spacing:-.045em; }
.builder-layout { margin:12px 0 16px; border:1px solid var(--line); border-radius:9px; background:#fff; padding:12px 14px; }
.builder-layout summary { cursor:pointer; font-weight:650; }
.builder .table-wrap { max-height:none; background:#fff; border:1px solid var(--line); border-radius:10px; }
.table-wrap th { background:#f4f1fa; color:#3e356a; }
.profile-link { color:var(--accent); text-underline-offset:3px; }
.monitor-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; }
.monitor-row > div:first-child,.monitor-row > label:has(textarea),.monitor-history { grid-column:1 / -1; }
#monitor-status { margin:12px 0; }
@media(max-width:1080px) { .app { grid-template-columns:190px minmax(0,1fr); } .preview { padding-right:11px; } }
@media(max-width:850px) { .app { grid-template-columns:minmax(0,1fr); } .sidebar.open { box-shadow:0 12px 40px #29204135; } }
@media(max-width:650px) {
  .chat-layout { grid-template-columns:minmax(0,1fr); }
  .conversation { height:auto; min-height:480px; }
  .welcome { margin-top:32px; }
  .welcome h1 { font-size:clamp(37px,9.5vw,48px); }
  .preview { padding:4px 14px 22px; }
  .composer-wrap { padding-bottom:15px; }
}

/* Listfluence public experience. Scoped to the existing authentication dialog. */
#login {width:100%;max-width:none;height:100%;max-height:100%;margin:0;padding:0;border:0;border-radius:0;background:#fafaf8;overflow:auto;overscroll-behavior:contain;color:#0b0f0e}
#login .lf-shell{max-width:1440px;margin:auto}
#login a{color:inherit;text-decoration:none}
#login a:focus-visible,#login summary:focus-visible{outline:3px solid #22c55e;outline-offset:4px}
.lf-nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 6%;min-height:88px}
.lf-brand{display:inline-flex;align-items:center;gap:10px;font-size:24px;font-weight:800;letter-spacing:-1.1px}
.lf-brand img{width:36px;height:36px}
.lf-nav nav{display:flex;gap:30px;font-size:14px;font-weight:600;color:#52645a}
#login .lf-nav-sign{border:1px solid #d6dfd7;padding:11px 19px;border-radius:9px;font-weight:650;font-size:14px}
.lf-hero{position:relative;isolation:isolate;overflow:hidden;margin:0 3%;padding:clamp(36px,6vw,88px) 5%;border-radius:24px;min-height:490px;display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;background:radial-gradient(ellipse at 90% 90%,#176b39 0,transparent 55%),#0b2419;color:#fff}
.lf-hero:before{content:"";position:absolute;z-index:-1;width:620px;height:620px;right:-170px;top:-240px;border:65px solid #22c55e22;border-radius:120px;transform:rotate(-28deg)}
.lf-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:750;letter-spacing:1.5px;color:#a4edb6;text-transform:uppercase}
.lf-eyebrow>span{width:8px;height:8px;border-radius:50%;background:#22c55e}
#login .lf-copy h1{font-size:clamp(42px,5.4vw,79px);font-weight:750;line-height:1.03;letter-spacing:-.065em;margin:22px 0}
.lf-copy h1 em{font-style:normal;color:#86efac}
.lf-copy p{font-size:17px;line-height:1.7;color:#c4d8ca;max-width:480px}
#login .lf-cta{display:inline-flex;align-items:center;gap:25px;background:#22c55e;color:#082716;padding:15px 20px;border-radius:9px;font-weight:750;margin-top:28px}
.lf-copy small{display:block;margin-top:15px;color:#b1cbb9}
.lf-demo{background:#fff;color:#183427;border:1px solid #d9e6dc;border-radius:15px;box-shadow:0 24px 80px #0005;overflow:hidden;transform:rotate(-2deg)}
.lf-demo-top{display:flex;align-items:center;gap:8px;padding:15px;border-bottom:1px solid #e4eae4;font-size:13px}
.lf-demo-top img{width:25px;height:25px}.lf-demo-top span{margin-left:auto;font-size:10px;color:#607368}
.lf-demo-body{display:grid;grid-template-columns:32% 1fr;min-height:260px}
.lf-demo-side{background:#f0f5f0;padding:20px 10px;font-size:11px;line-height:3;color:#52685b}
.lf-demo-main{padding:24px 15px}.lf-demo-main>strong{font-size:20px;letter-spacing:-.6px}
.lf-prompt{background:#e8f7eb;padding:12px;border-radius:9px;font-size:12px;margin:20px 0}
.lf-demo-result{border:1px solid #dce6dc;border-radius:8px;padding:13px;font-size:12px}
.lf-demo-result span,.lf-demo-result small{display:block;color:#607368;margin-top:8px;font-size:10px}
.lf-bars{display:grid;gap:7px;margin:15px 0}.lf-bars i{height:7px;border-radius:8px;background:#d8e9db}.lf-bars i:nth-child(2){width:75%}.lf-bars i:nth-child(3){width:88%}
.lf-features{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding:55px 7%}
.lf-features article{border-top:1px solid #d9e2da;padding-top:20px}.lf-features article>span{font-size:11px;font-weight:750;color:#39734b;letter-spacing:1px}
#login .lf-features h2{font-size:24px;margin:12px 0;letter-spacing:-.8px}.lf-features p,.lf-access p{color:#52645a;line-height:1.65}
.lf-access{margin:0 3%;padding:clamp(25px,5vw,65px) 5%;background:#eaf3eb;border-radius:24px;display:grid;grid-template-columns:1fr minmax(0,420px);gap:40px;align-items:center}
.lf-access .lf-eyebrow{color:#267043}#login .lf-access>div>h2{font-size:clamp(32px,4vw,52px);letter-spacing:-.045em;margin:15px 0}
.lf-signin{background:white;padding:32px;border:1px solid #dbe5db;border-radius:16px;box-shadow:0 10px 35px #163b1810;scroll-margin:20px}
.lf-sign-mark{width:48px;height:48px}#login .lf-signin h2{font-size:25px;letter-spacing:-.8px;margin:15px 0 6px}
.lf-signin>p{font-size:14px;margin-bottom:20px}.lf-google{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #cbd8cd;border-radius:8px;background:#fff;padding:13px;font-weight:650;width:100%}.lf-google:hover{background:#f0f7f0}
.lf-owner{margin-top:18px;font-size:13px;color:#52645a}.lf-owner summary{cursor:pointer;margin-bottom:12px}.lf-owner form{margin-top:12px}.lf-signin .primary{background:#14532d;border-color:#14532d}.lf-signin small{display:block;margin-top:20px;color:#64756a;font-size:11px}#login-error{color:#a32424;margin:10px 0;font-size:13px}
.lf-footer{padding:30px 7%;display:flex;align-items:center;justify-content:space-between;color:#52645a;font-size:13px}.lf-footer .lf-brand{font-size:19px}
@media(max-width:760px){.lf-nav{padding:18px 5%;gap:12px}.lf-nav nav{display:none}.lf-brand{font-size:21px}.lf-hero,.lf-access{grid-template-columns:1fr;gap:30px}.lf-hero{padding:36px 6%}.lf-demo{transform:none}.lf-features{grid-template-columns:1fr;padding:35px 7%;gap:20px}.lf-signin{padding:23px}.lf-footer{gap:12px;flex-wrap:wrap}}

/* Shared emerald workspace identity */
:root{--ink:#0b0f0e;--muted:#52645a;--forest:#09291c;--accent:#14532d;--mint:#e7f6eb;--line:#dce6df;--paper:#fff;background:#fafaf8}
.app .sidebar{background:#09291c}.app .mark{background:#e8f7eb;padding:5px}.app .new{background:#86efac;color:#09291c}.app .nav.current,.app .nav:hover{background:#14532d}.app .primary{background:#14532d;border-color:#14532d}.app .welcome h1{font-family:inherit;font-weight:750;color:#09291c;letter-spacing:-.055em}.app .preview{background:#fafaf8}.app .topbar{background:#fff}.app .badge{background:#e7f6eb;color:#14532d}.app .avatar{background:#14532d}.app #composer:focus-within{border-color:#22c55e}

/* Marketing v2 */
#login .lf-shell{max-width:none;width:100%;padding:0;background:#fafaf8}
#login .lf-nav{max-width:1440px;margin:auto;padding:24px 5%;display:flex;align-items:center;justify-content:space-between}
#login .lf-nav-actions{display:flex;align-items:center;gap:24px}
#login .lf-nav-actions>a{font-weight:650;text-decoration:none;color:#123526}
#login .lf-nav-actions .lf-cta{background:#14532d;color:white;padding:12px 20px}
#login .lf-hero{margin:0;border-radius:0;min-height:650px;padding:100px 6%;display:grid;grid-template-columns:minmax(0, .9fr) minmax(0,1.2fr);gap:5%;align-items:center;background:radial-gradient(ellipse at 90% 85%,#227c4a 0,transparent 48%),linear-gradient(125deg,#081e15,#103e29);overflow:hidden}
#login .lf-copy h1{font-size:clamp(44px,5.1vw,82px);line-height:1.04;letter-spacing:-.065em}
#login .lf-copy p{font-size:19px;line-height:1.7;max-width:500px;color:#d3e6da}
#login .lf-secondary{display:inline-block;margin:18px;color:#d6efde;text-decoration:none;font-size:14px}
#login .lf-demo{transform:rotate(-2deg);width:100%;min-width:0;box-shadow:0 40px 100px #001c13a0;border:1px solid #ffffff80;border-radius:16px}
#login .lf-demo-body{display:grid;grid-template-columns:105px minmax(0,1fr);min-height:340px}
#login .lf-demo-side{line-height:3;font-size:11px;padding:18px 10px}
#login .lf-demo-main{min-width:0;padding:24px 14px}
#login .lf-demo-main>strong{font-size:19px}
#login .lf-result-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
#login .lf-result-head span{color:#14532d;font-size:10px}
#login .lf-demo-table{overflow:hidden;margin:12px 0}
#login .lf-demo-table table{width:100%;border-collapse:collapse;font-size:10px;white-space:nowrap;color:#18382b}
#login .lf-demo-table td,#login .lf-demo-table th{text-align:left;padding:10px 5px;border-bottom:1px solid #e4ebe5}
#login .lf-demo-table th{font-size:9px;background:#edf4ee}
#login .lf-avatar{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#ccebd5;color:#14532d;font-style:normal;font-size:8px;margin-right:5px}
#login .lf-avatar.a1{background:#f1dfc7}#login .lf-avatar.a2{background:#dce3fa}#login .lf-avatar.a3{background:#f2d9e5}
#login .lf-features,#login .lf-process{display:block;max-width:1440px;margin:auto;padding:80px 6%;text-align:center}
#login .lf-section-intro h2,#login .lf-process>h2{font-size:clamp(32px,4vw,54px);letter-spacing:-.055em;margin:12px 0;color:#102c20}
#login .lf-section-intro>span,#login .lf-process>span{font-size:11px;letter-spacing:.14em;color:#237046;font-weight:750}
#login .lf-section-intro p{font-size:17px;color:#52645a}
#login .lf-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:38px;text-align:left}
#login .lf-feature-grid article{border:1px solid #e1e9e2;background:#fff;border-radius:16px;padding:26px;min-height:180px}
#login .lf-feature-grid article i{display:grid;place-items:center;background:#e4f5e8;color:#14532d;width:46px;height:46px;border-radius:12px;font-size:22px;font-style:normal;margin-bottom:22px}
#login .lf-feature-grid article h2{font-size:19px;margin:0 0 10px}
#login .lf-feature-grid article p{font-size:14px;line-height:1.6;color:#52645a}
#login .lf-process{background:#e9f4eb;max-width:none}
#login .lf-process .lf-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1200px;margin:35px auto}
#login .lf-footer{max-width:1440px;margin:auto;padding:30px 6%}
#login .lf-auth-page{display:none;position:fixed;inset:0;z-index:5;overflow:auto;background:radial-gradient(ellipse at 0 100%,#c5e8cf,transparent 50%),radial-gradient(ellipse at 100% 0,#d9f0df,transparent 50%),#f8faf7;align-items:center;justify-content:center;padding:80px 20px}
#login .lf-auth-page:target{display:flex}
#login .lf-back{position:absolute;top:30px;left:5%;color:#14532d;text-decoration:none;font-weight:650}
#login .lf-auth-page .lf-signin{width:min(440px,100%);padding:48px;text-align:center;box-shadow:0 25px 80px #123b2020;border-radius:20px}
#login .lf-auth-page .lf-sign-mark{width:64px;height:64px;margin:0 auto 24px}
#login .lf-auth-page h2{font-size:32px;letter-spacing:-.045em}
#login .lf-auth-page .lf-owner{text-align:left;margin-top:20px}
#login .lf-auth-page #login-error{font-size:13px}
@media(max-width:900px){#login .lf-hero{grid-template-columns:1fr;padding:65px 6%;gap:40px}#login .lf-demo{transform:none}#login .lf-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#login .lf-nav nav{display:none}}
@media(max-width:520px){#login .lf-nav-actions{gap:10px}#login .lf-nav-actions .lf-cta{padding:8px 10px}#login .lf-feature-grid,#login .lf-process .lf-feature-grid{grid-template-columns:1fr}#login .lf-demo-body{grid-template-columns:1fr}#login .lf-demo-side{display:none}#login .lf-demo-table{overflow:auto}#login .lf-auth-page .lf-signin{padding:30px}}

/* Intelligence design v3: public concept and existing authenticated workflows */
#login .lf-hero{display:flex;flex-direction:column;text-align:center;gap:42px;padding:70px 6% 60px}
#login .lf-copy{max-width:980px}#login .lf-copy h1{font-size:clamp(38px,5vw,74px)}#login .lf-copy p{max-width:760px;margin:0 auto}
#login .lf-platforms{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:22px 0 0}
#login .lf-platforms span{border:1px solid #ffffff45;border-radius:30px;padding:8px 18px;font-size:13px;color:#e4f8e9}
#login .lf-demo{transform:none;max-width:1080px;text-align:left}
#login .lf-demo-body{grid-template-columns:190px minmax(0,1fr)}
#login .lf-demo-side{background:#092e22;color:#e3f7e9;font-size:13px;padding:20px}
#login .lf-demo-main{padding:30px}#login .lf-demo-main>strong{font-size:26px}
#login .lf-demo-table table{font-size:13px}#login .lf-demo-table th{font-size:11px}
#login .lf-demo-table td{padding:13px 8px}
.app .sidebar{color:#e9f8ef;overflow-y:auto}.app .sidebar .brand,.app .sidebar .brand strong,.app .sidebar .nav,.app .sidebar .side-foot strong,.app .sidebar .recent button{color:#edf9f1}
.app .sidebar .nav.current{background:#18563d;color:#fff}.app .sidebar .side-label,.app .sidebar .side-foot span{color:#b5d5c2}
.app .sidebar .nav:hover,.app .sidebar .recent button:hover{background:#18563d;color:white}
.app .sidebar .new{background:#a0f5b8;color:#09291c}
.lf-nav-label{font-size:10px;letter-spacing:.13em;color:#a7cdb7;padding:12px 10px 5px}
.lf-future-nav{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:8px 10px;color:#c8e4d3;font-size:13px}
.lf-future-nav small{font-size:9px;color:#b3d8c0;border:1px solid #426c55;border-radius:8px;padding:2px 5px}
.app .chat-layout{background:radial-gradient(ellipse at 50% 0,#e7f6ec,transparent 60%),#f8faf9}
.app .welcome{text-align:center;margin:clamp(25px,5vh,65px) auto 16px;padding-inline:20px}
.app .welcome h1{font-size:clamp(30px,3vw,48px);line-height:1.1}
.app .welcome p{margin:12px auto 20px;color:#52645a}
.lf-assistant-mark{width:52px;height:52px;margin:0 auto 14px}
.lf-discovery-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;text-align:left}
.lf-discovery-cards>div{background:white;border:1px solid #dce8df;border-radius:10px;padding:14px;color:#14532d}
.lf-discovery-cards small{display:block;color:#62776a;margin-top:5px;font-size:11px}
.app #composer{border-color:#c7dfce;box-shadow:0 8px 28px #123b2010}
.app .quiet,.app .icon{color:#24513a}.app .quiet:hover,.app .icon:hover,.app .suggestions button:hover,.app .result-row:hover{background:#eaf6ed;border-color:#b9dac3}
.app .table-wrap th{background:#e9f4ed;color:#14532d}.app .shortlist-stats{background:#edf7ef}
.app .preview-heading,.app #result-panel{border-color:#dce8df}.app .preview{padding-top:20px}
@media(max-width:650px){#login .lf-hero{padding:45px 5%}#login .lf-demo-body{grid-template-columns:1fr}#login .lf-demo-main{padding:14px}#login .lf-demo-table{overflow:auto}.lf-discovery-cards{grid-template-columns:1fr}}

/* Approved visual reference: luminous emerald showcase, compact product UI. */
#login .lf-nav{background:#082e25;color:#f1fff7;max-width:none;padding:18px 6%;min-height:68px}#login .lf-nav nav,#login .lf-nav-actions>a{color:#e7f9ee}#login .lf-nav-actions .lf-cta{margin:0;background:#8af2b3;color:#092e22}
#login .lf-hero{padding:36px 3% 42px;gap:26px;background:radial-gradient(ellipse at 50% 110%,#f5faf6 12%,#b6e9ce 35%,#2e9a70 57%,transparent 76%),linear-gradient(145deg,#082e25,#07372c 60%,#0b4d37)}
#login .lf-hero:before{width:130%;height:75%;top:-25%;right:-15%;border:1px solid #80e9b855;border-radius:0 0 50% 50%;transform:rotate(-9deg);background:linear-gradient(160deg,#0b3b2d,#0b493544);box-shadow:0 20px 85px #6aefad44}
#login .lf-copy h1{font-size:clamp(36px,4vw,60px);margin:14px 0}#login .lf-copy p{font-size:16px}#login .lf-copy .lf-cta{background:#8af2b3;margin-top:18px}#login .lf-platforms{margin-top:14px}
.lf-showcase{width:min(1400px,100%);display:grid;grid-template-columns:minmax(125px,1fr) minmax(0,5fr) minmax(125px,1fr);align-items:center;gap:16px}
.lf-callouts{display:grid;gap:34px;text-align:left}.lf-callouts article{background:#f7fffaee;color:#173e2c;border:1px solid #c3e7d3;border-radius:9px;padding:12px;box-shadow:0 6px 22px #123b2018;font-size:12px}.lf-callouts p{font-size:11px;line-height:1.45;margin:5px 0 0;color:#52645a}
#login .lf-demo{max-width:none;box-shadow:0 18px 65px #093a3455;border-radius:12px}#login .lf-demo-body{grid-template-columns:132px minmax(0,1fr) 145px;min-height:340px}#login .lf-demo-side{font-size:11px;padding:14px 10px}#login .lf-demo-main{padding:14px;min-width:0}#login .lf-demo-center{text-align:center}#login .lf-demo-center img{width:30px;height:30px;display:block;margin:0 auto 8px}#login .lf-demo-center strong{font-size:20px}#login .lf-prompt{margin:12px 0;background:#fff;border:1px solid #c9dfd1;text-align:left;font-size:11px}.lf-demo-actions{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:14px;font-size:9px}.lf-demo-actions b,.lf-demo-button{background:#087344;color:white;border-radius:5px;padding:7px 9px}.lf-demo-tabs{font-size:11px;color:#176a42;border-bottom:1px solid #dce8df;padding:8px 0}.lf-demo-filters{padding:15px 10px;border-left:1px solid #e0ebe3;font-size:11px;background:#fbfdfb}.lf-demo-filters p{font-size:10px;line-height:1.5;margin:6px 0 14px}.lf-demo-filters hr{border:0;border-top:1px solid #dce8df;margin:12px 0}.lf-demo-range{height:5px;background:linear-gradient(90deg,#d9e9df 15%,#36ad71 15%,#36ad71 85%,#d9e9df 85%);border-radius:9px;margin-top:10px}.lf-demo-button{display:block;text-align:center;font-size:10px}
#login .lf-demo-table table{font-size:10px}#login .lf-demo-table th{font-size:9px}#login .lf-demo-table td{padding:8px 4px}
.app .chat-layout:has(#welcome:not([hidden])){grid-template-columns:minmax(0,1fr)}.app .chat-layout:has(#welcome:not([hidden])) .preview{display:none}.app .chat-layout:has(#welcome:not([hidden])) .conversation{justify-content:center}.app .chat-layout:has(#welcome:not([hidden])) .chat-scroll{flex:0 1 auto}.app .chat-layout:has(#welcome:not([hidden])) .composer-wrap{width:min(780px,100%);margin:0 auto}.app .welcome{max-width:780px}.app .composer-wrap{padding-inline:24px}.app .sidebar .new{border-radius:8px}.app .sidebar .nav{border-radius:7px}.app #composer{background:white;border-radius:14px}.app #prompt{min-height:75px}.app .preview{background:white;border-left:1px solid #dce8df}.app .result-row{border-radius:8px}
@media(max-width:1050px){.lf-showcase{grid-template-columns:minmax(0,1fr)}.lf-callouts{display:none}}@media(max-width:700px){#login .lf-demo-body{grid-template-columns:minmax(0,1fr)}.lf-demo-filters{display:none}#login .lf-demo-side{display:none}#login .lf-demo-table{overflow:auto}}

/* Keep the approved emerald arc behind the live page and product illustration. */
#login .lf-hero {
  padding: clamp(36px, 5vw, 66px) clamp(16px, 3.5vw, 54px) clamp(38px, 5vw, 74px);
  gap: clamp(24px, 3.5vw, 48px);
  background: radial-gradient(ellipse at 81% 105%, #b2f3c8 0, #3eac75 22%, transparent 53%),
    linear-gradient(145deg, #082e25 18%, #0b4836 75%, #125b42);
}
#login .lf-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 42% -21% -45% 12%;
  border: 1px solid #a2ffd398;
  border-radius: 50%;
  background: linear-gradient(146deg, #14714d18, #b2ffd44a 70%);
  box-shadow: 0 -18px 70px #6bffc647;
  transform: rotate(-17deg);
  pointer-events: none;
}
#login .lf-copy { max-width: 780px; }
#login .lf-copy p { color: #daf5e6; }
#login .lf-demo { border-color: #cce4d8; }
#login .lf-demo-top { min-height: 44px; padding: 8px 13px; }
#login .lf-demo-table { margin-block: 8px; overflow: auto; }
#login .lf-demo-result small { line-height: 1.4; }
.lf-callouts article { box-shadow: 0 7px 20px #082e2530; }
.app .creator-initials { background: #e1f3e8; color: #15523a; }
.app .result-row { padding-inline: 8px; }
.app .chat-layout:has(#welcome:not([hidden])) .welcome { margin-top: 0; }
#filters { width: min(660px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
#filters .filter-groups { max-height: min(56dvh, 460px); overscroll-behavior: contain; }
#filters .filter-group summary:focus-visible { border-radius: 8px; }

@media (max-width: 1050px) {
  .lf-callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .lf-showcase > .lf-callouts:first-child { order: 2; }
}
@media (max-width: 700px) {
  #login .lf-hero { min-height: auto; }
  #login .lf-nav { padding-inline: 16px; }
  #login .lf-nav-actions > a:not(.lf-cta) { padding-block: 8px; }
  #login .lf-nav-actions .lf-cta { white-space: nowrap; }
  #login .lf-demo-result { padding: 9px; }
  #login .lf-demo-table table { min-width: 390px; }
  .lf-callouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lf-callouts article { padding: 9px; }
  .lf-callouts b { font-size: 11px; }
  .lf-callouts p { display: none; }
  .app .composer-wrap { padding-inline: 12px; }
  #filters .filter-grid { grid-template-columns: minmax(0, 1fr); }
}
.builder-report{margin:24px 0;padding:clamp(16px,3vw,28px);background:#f8fbf7;border:1px solid #dbe8dd;border-radius:18px;color:#0c3222}
.builder-report h2,.report-breakdown h3{margin:0 0 12px}.builder-report .shortlist-stats{margin:12px 0 20px}
.builder-report .shortlist-stats small{font-size:.75rem;color:#516961}.report-breakdowns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.report-breakdown{min-width:0;padding:16px;background:#fff;border:1px solid #dbe8dd;border-radius:13px}.report-breakdown select{max-width:100%}
.report-bars{list-style:none;padding:0;margin:14px 0;font-size:.8rem}.report-bars li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:8px;margin:7px 0;overflow-wrap:anywhere}
.report-bars meter{width:100%;height:12px;accent-color:#147846}.report-bars meter::-webkit-meter-optimum-value{background:#147846}
.report-breakdown details,.report-method{font-size:.85rem;color:#335b48}.report-method{margin-top:16px}.report-breakdown details summary,.report-method summary{cursor:pointer}
.overview-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;margin:22px 0}
.overview-kpi{display:grid;gap:8px;text-align:left;background:#eef7f0;color:#14532d;border:1px solid #dae9dd;padding:18px;border-radius:14px}
.overview-kpi strong{font-size:clamp(1.5rem,4vw,2.3rem)}.overview-section,.commercial-results{margin:24px 0}
.overview-list{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #dbe8dd}
.overview-list h3,.overview-list p{margin:0}.overview-list p{font-size:.8rem;color:#516961}
.commercial-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;align-items:end;margin:16px 0}
.commercial-filters label{display:grid;gap:5px;font-size:.8rem}.commercial-filters input,.commercial-filters select{min-width:0;width:100%}
.commercial-results td,.commercial-results th{text-align:left;padding:8px}.profile-evidence{margin:16px 0}
#creator-detail .creator-cell .creator-initials{width:48px;height:48px;font-size:18px}#creator-detail .creator-cell h2,#creator-detail .creator-cell p{margin:0}
.creator-photo{object-fit:cover;padding:0;display:block;background:#e1f3e8}
.profile-evidence ul{margin:8px 0 0;padding-left:18px;display:grid;gap:4px}

/* Chat visuals: analysis tables, charts and entity cards inside assistant messages. */
:root { --chart-1:#14532d; --chart-2:#3a9b6c; --chart-3:#9fdcb8; --chart-4:#6b8f84; --chart-5:#c9b37a; }
.message.assistant:has(.chat-visuals) { max-width:100%; width:100%; }
.chat-visuals { white-space:normal; display:grid; gap:12px; margin-top:10px; min-width:0; }
.analysis-block { min-width:0; padding:14px; background:var(--paper); border:1px solid var(--line); border-radius:12px; color:var(--ink); }
.analysis-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.analysis-head h3 { margin:0; font-size:15px; line-height:1.3; }
.analysis-head .result-meta { margin:3px 0 0; }
.view-switch { display:inline-flex; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.app .view-switch .quiet { border:0; border-radius:0; min-height:32px; padding:5px 11px; font-size:13px; }
.app .view-switch .quiet + .quiet { border-left:1px solid var(--line); }
.app .view-switch .quiet[aria-pressed="true"] { background:var(--accent); color:#fff; }
.analysis-chart { margin:10px 0 0; }
.analysis-chart figcaption { color:var(--muted); font-size:12px; margin-top:4px; }
.chart-svg { display:block; width:100%; height:auto; overflow:visible; font-family:inherit; }
.chart-svg text { fill:var(--ink); font-size:11px; }
.chart-svg .chart-value { font-weight:650; }
.chart-svg .chart-tick, .chart-svg .chart-axis-label { fill:var(--muted); }
.chart-svg .chart-axis-label { font-size:11px; font-weight:650; }
.chart-svg .chart-total { font-size:18px; font-weight:700; }
.chart-svg .chart-mark { fill:var(--chart-1); }
.chart-svg .chart-mark:hover, .chart-svg .chart-point:hover { fill:var(--chart-2); }
.chart-svg .chart-axis { stroke:var(--muted); stroke-width:1; }
.chart-svg .chart-grid { stroke:var(--line); stroke-width:1; }
.chart-svg .chart-line { fill:none; stroke:var(--chart-1); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.chart-svg .chart-point { fill:var(--paper); stroke:var(--chart-1); stroke-width:2; }
.chart-svg .chart-series-0 { fill:var(--chart-1); } .chart-svg .chart-series-1 { fill:var(--chart-2); } .chart-svg .chart-series-2 { fill:var(--chart-3); }
.chart-svg .chart-series-3 { fill:var(--chart-4); } .chart-svg .chart-series-4 { fill:var(--chart-5); }
.chart-svg .chart-slice { stroke:var(--paper); stroke-width:2; }
.analysis-table { margin-top:10px; max-height:420px; overflow:auto; }
.analysis-table table { font-size:13px; }
.app .analysis-table th, .app .analysis-table td { padding:7px 9px; min-width:0; max-width:240px; }
.analysis-table thead th { position:sticky; top:0; z-index:1; padding:0; }
.analysis-table tbody th { background:transparent; color:var(--ink); font-weight:600; white-space:normal; }
.analysis-table .numeric { text-align:right; font-variant-numeric:tabular-nums; }
.sort-button { display:flex; align-items:center; gap:4px; width:100%; padding:7px 9px; border:0; background:transparent; color:inherit; font:inherit; font-weight:700; text-align:inherit; white-space:nowrap; cursor:pointer; }
.analysis-table th.numeric .sort-button { justify-content:flex-end; }
.sort-mark { color:var(--muted); font-size:11px; }
.share-cell { display:inline-flex; align-items:center; gap:7px; justify-content:flex-end; }
.share-cell meter { width:64px; height:9px; accent-color:var(--chart-2); }
.analysis-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr)); gap:8px; margin-top:10px; }
.analysis-kpis div { display:grid; gap:4px; padding:10px; background:var(--mint); border-radius:9px; }
.analysis-kpis strong { color:var(--accent); font-size:18px; overflow-wrap:anywhere; }
.analysis-kpis span { color:var(--muted); font-size:12px; }
.analysis-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-top:10px; }
.analysis-foot .paging { margin:0; flex:1; min-width:220px; }
.analysis-foot .actions { margin-left:auto; }
.analysis-scope { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.analysis-status { margin:6px 0 0; color:var(--muted); font-size:12px; }
.analysis-status:empty { display:none; }
.csv-fallback { display:block; width:100%; margin-top:6px; font:12px/1.4 ui-monospace,Consolas,monospace; }
.entity-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr)); gap:8px; margin-top:10px; }
.entity-card { display:grid; align-content:start; gap:7px; min-width:0; padding:11px; text-align:left; background:var(--paper); border:1px solid var(--line); border-radius:10px; color:var(--ink); font:inherit; }
.app button.entity-card { cursor:pointer; min-height:44px; }
.app button.entity-card:hover { background:#eaf6ed; border-color:#b9dac3; }
.entity-card strong, .entity-card small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.entity-card small { color:var(--muted); font-size:12px; }
.card-facts { display:flex; gap:14px; }
.card-facts strong { font-size:14px; color:var(--accent); }
.card-badge { justify-self:start; border-radius:5px; padding:3px 6px; background:var(--mint); color:var(--accent); font-size:11px; font-weight:650; }
.card-deals { display:block; font-size:12px; color:var(--muted); line-height:1.4; overflow-wrap:anywhere; }
.card-deals b { color:var(--ink); font-weight:650; }
.contact-list { list-style:none; margin:10px 0 0; padding:0; }
.contact-row { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:9px 0; border-bottom:1px solid var(--line); }
.contact-row:last-child { border-bottom:0; }
.contact-row strong, .contact-row small { display:block; }
.contact-row small { color:var(--muted); font-size:12px; }
.contact-links { display:flex; gap:12px; align-items:center; font-size:13px; overflow-wrap:anywhere; }
.contact-email { user-select:all; }
@media (max-width:650px) {
  .analysis-block { padding:11px; }
  .analysis-head { flex-direction:column; }
  .entity-grid { grid-template-columns:minmax(0,1fr); }
  .analysis-foot .paging { min-width:0; }
}

/* Research steps: a live list while the assistant works, folded into a summary once the answer arrives. */
.research-steps { white-space:normal; margin:0 0 8px; font-size:13px; color:var(--muted); }
.research-steps summary { display:flex; align-items:center; gap:7px; cursor:pointer; list-style:none; min-height:28px; color:var(--ink); font-weight:600; }
.research-steps summary::-webkit-details-marker { display:none; }
.research-steps summary::before { content:'›'; display:inline-block; width:12px; color:var(--muted); transition:transform .15s ease; }
.research-steps[open] summary::before { transform:rotate(90deg); }
.step-title { overflow:hidden; text-overflow:ellipsis; }
.step-list { list-style:none; margin:4px 0 0; padding:0 0 0 4px; display:grid; gap:5px; }
.step { display:flex; align-items:flex-start; gap:8px; line-height:1.4; }
.step-mark { flex:none; display:inline-grid; place-items:center; width:16px; height:16px; margin-top:1px; border-radius:50%; font-size:10px; font-weight:700; }
.step.done .step-mark { background:var(--mint); color:var(--accent); }
.step.failed .step-mark { background:#fbeee6; color:#8a3b12; }
.step.active { color:var(--ink); }
.step.active .step-mark { border:2px solid var(--line); border-top-color:var(--accent); animation:step-spin .9s linear infinite; }
.step.transient .step-label { font-style:italic; }
@keyframes step-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .step.active .step-mark { animation:none; border-top-color:var(--line); background:var(--accent); } }

/* Written reports */
.report-block { min-width:0; padding:18px 18px 14px; background:var(--paper); border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:12px; color:var(--ink); white-space:normal; }
.report-head { margin-bottom:6px; }
.report-eyebrow { display:block; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.report-block h3 { margin:4px 0 6px; font:600 21px/1.25 Georgia,serif; color:var(--accent); }
.report-summary { margin:0; font-size:15px; }
.report-section { margin-top:16px; }
.report-section > h4 { margin:0 0 6px; font-size:16px; color:var(--accent); }
.report-section .analysis-block { margin-top:10px; }
.report-text p, .report-text li { margin:0 0 8px; line-height:1.55; }
.report-text ul, .report-text ol { margin:0 0 8px; padding-left:22px; }
.report-text h3, .report-text h4, .report-text h5 { margin:12px 0 6px; color:var(--accent); font-size:14px; }
.report-text table { border-collapse:collapse; width:100%; font-size:13px; margin:6px 0 10px; }
.report-text th, .report-text td { border-bottom:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; }
.report-text th { background:var(--mint); color:var(--accent); }
.claim { border-left:3px solid var(--line); padding-left:10px; }
.claim-label { font-weight:700; color:var(--accent); }
.claim-data { border-color:var(--accent); }
.claim-calculated { border-color:var(--chart-2); }
.claim-interpretation { border-color:var(--chart-5); font-style:italic; }
.claim-interpretation .claim-label { font-style:normal; }
@media (max-width:650px) { .report-block { padding:14px 12px 12px; } }
/* Brand and agency logos: one square tile style, real logo or letter fallback */
.logo-tile { flex:none; display:inline-grid; place-items:center; width:24px; height:24px; border-radius:6px; background:#e1f3e8; color:#15523a;
  font-weight:700; font-size:11px; border:1px solid #d5e6dc; overflow:hidden; vertical-align:middle; }
.logo-image { object-fit:contain; background:#fff; padding:2px; }
.logo-tiny { width:18px; height:18px; border-radius:4px; font-size:9px; }
.logo-medium { width:36px; height:36px; border-radius:8px; font-size:14px; }
.logo-strip { display:inline-flex; gap:3px; margin-right:6px; vertical-align:middle; }
.brand-head { display:flex; align-items:center; gap:10px; }
.deal-list li { display:flex; align-items:center; gap:8px; }
.contact-row { display:flex; align-items:flex-start; gap:10px; }

/* Launch: sidebar. High-contrast dark emerald, line icons, grouped sections, settings pinned at the bottom. */
.app .sidebar { background:#062419; padding:20px 14px 14px; gap:4px; overflow-y:auto; }
.app .sidebar .brand { padding:0 6px 14px; }
.app .sidebar .new { min-height:44px; font-weight:700; gap:8px; margin-bottom:12px; background:#86efac; color:#062419; }
.app .sidebar .new:hover { background:#a7f3c4; }
.ico { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.side-nav { display:grid; gap:2px; }
.app .sidebar .nav { min-height:40px; gap:12px; padding:8px 12px; font-size:14px; font-weight:600; color:#e8f5ed; border-radius:8px; }
.app .sidebar .nav[hidden] { display:none; }
.app .sidebar .nav .ico { color:#8fd8ac; }
.app .sidebar .nav:hover { background:#0f3a2a; color:#fff; }
.app .sidebar .nav.current { background:#14532d; color:#fff; box-shadow:inset 3px 0 0 #86efac; }
.app .sidebar .nav.current .ico { color:#bbf7d0; }
.app .sidebar .nav:focus-visible, .app .sidebar .new:focus-visible, .app .sidebar .recent button:focus-visible { outline:2px solid #86efac; outline-offset:2px; }
.app .sidebar .lf-nav-label, .app .sidebar .side-label { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#9cc8b0; padding:16px 12px 6px; margin:0; }
.app .sidebar .recent { margin-top:6px; flex:1 1 auto; min-height:60px; overflow-y:auto; }
.app .sidebar .recent button { color:#cfe6d8; font-size:13px; font-weight:500; min-height:34px; padding:7px 12px; border-radius:7px; }
.app .sidebar .recent button.selected { background:#0f3a2a; color:#fff; }
/* Conversation history: one row per conversation, options appear on hover or focus. */
.app .sidebar .recent-head { display:flex; align-items:center; justify-content:space-between; padding-right:4px; }
.app .sidebar .recent-item { position:relative; display:flex; align-items:center; border-radius:7px; }
.app .sidebar .recent-item:hover, .app .sidebar .recent-item.selected, .app .sidebar .recent-item:focus-within { background:#0f3a2a; }
.app .sidebar .recent-item .recent-open { flex:1; min-width:0; background:transparent; padding-right:34px; }
.app .sidebar .recent-item .recent-open:hover { background:transparent; }
.app .sidebar .recent-item.selected .recent-open { color:#fff; }
.app .sidebar .row-menu-button { width:26px; height:26px; min-height:26px; padding:0; display:grid; place-items:center; border-radius:6px; background:transparent; color:#9cc8b0; flex:none; }
.app .sidebar .recent-item .row-menu-button { position:absolute; right:4px; opacity:0; }
.app .sidebar .recent-item:hover .row-menu-button, .app .sidebar .recent-item:focus-within .row-menu-button, .app .sidebar .row-menu-button[aria-expanded="true"] { opacity:1; }
.app .sidebar .row-menu-button:hover, .app .sidebar .row-menu-button[aria-expanded="true"] { background:#1d4a38; color:#fff; }
.app .sidebar .row-menu-button .ico { width:16px; height:16px; }
.app .sidebar .recent-head .row-menu-button { opacity:.7; }
.app .sidebar .recent-head .row-menu-button:hover { opacity:1; }
#recent-search { padding:0 4px 6px; }
#recent-search input, .app .sidebar .recent-rename { width:100%; height:32px; border-radius:7px; border:1px solid #2d6b52; background:#0b2e21; color:#fff; padding:0 10px; font-size:13px; }
#recent-search input::placeholder { color:#8fb9a3; }
.app .sidebar .recent-empty { color:#9cc8b0; font-size:12.5px; padding:6px 12px; margin:0; }
@media (hover:none) { .app .sidebar .recent-item .row-menu-button { opacity:1; } }
.row-menu { position:fixed; z-index:60; min-width:180px; padding:6px; background:#fff; border:1px solid #dbe7df; border-radius:10px; box-shadow:0 12px 32px rgba(10,40,28,.18); display:grid; gap:2px; }
.row-menu[hidden] { display:none; }
.row-menu .menu-item { display:block; width:100%; text-align:left; background:transparent; border:0; border-radius:7px; padding:8px 10px; font-size:14px; color:#14281f; min-height:0; }
.row-menu .menu-item:hover, .row-menu .menu-item:focus-visible { background:#eef6f1; outline:none; }
.row-menu .danger-text { color:#b42318; }
#confirm-dialog { max-width:420px; }
#confirm-dialog h2 { font-size:19px; margin:0 0 8px; }
#confirm-dialog p { color:#4b5d54; margin:0 0 18px; line-height:1.5; }
.confirm-actions { justify-content:flex-end; }
button.danger { background:#b42318; color:#fff; border:0; border-radius:8px; padding:9px 16px; font-weight:600; }
button.danger:hover { background:#912018; }
.app .sidebar .side-foot .avatar.has-logo { background:#fff; padding:3px; overflow:hidden; }
.app .sidebar .side-foot .avatar.has-logo img { width:100%; height:100%; object-fit:contain; display:block; }
.invite-form { display:flex; gap:8px; flex-wrap:wrap; }
.invite-form input { flex:1 1 240px; }
.invite-list { display:grid; gap:4px; margin-top:8px; }
.invite-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 10px; border:1px solid #e3ece6; border-radius:8px; }
.brand-logo-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.brand-preview { width:44px; height:44px; border-radius:10px; display:grid; place-items:center; background:#14532d; color:#fff; font-weight:700; flex:none; }
.brand-preview.has-logo { background:#fff; border:1px solid #dbe7df; padding:4px; }
.brand-preview img { width:100%; height:100%; object-fit:contain; }
.side-bottom { margin-top:auto; padding-top:8px; border-top:1px solid #1d4a38; display:grid; gap:6px; }
.app .sidebar .side-foot { margin:0; padding:8px 4px 0; border:0; }
.app .sidebar .side-foot button { width:36px; height:36px; display:grid; place-items:center; border-radius:8px; color:#cfe6d8; }
.app .sidebar .side-foot button:hover { background:#0f3a2a; color:#fff; }

/* Loading, empty and error states */
.loading-state { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:14px; padding:6px 0; }
.spinner { width:16px; height:16px; border-radius:50%; border:2px solid #cfe3d6; border-top-color:#14532d; animation:step-spin .8s linear infinite; flex:none; }
.skeleton-list { display:grid; gap:10px; margin-top:8px; }
.skeleton-row { display:flex; align-items:center; gap:12px; }
.skeleton-dot { width:32px; height:32px; border-radius:8px; background:#e6efe9; flex:none; }
.skeleton-line { display:inline-block; height:12px; border-radius:6px; flex:1; background:linear-gradient(90deg,#e6efe9,#f3f8f4,#e6efe9); background-size:200% 100%; animation:shimmer 1.3s linear infinite; }
.skeleton-line.short { width:70px; height:22px; }
@keyframes shimmer { to { background-position:-200% 0; } }
@media (prefers-reduced-motion:reduce) { .skeleton-line, .spinner { animation:none; } }
.loading-block { padding:4px 0; }
.error-state { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 14px; border:1px solid #f0d9cf; background:#fdf6f2; border-radius:10px; color:#7a3420; font-size:14px; }
.error-state p { margin:0; }
.form-hint { color:#69532a; background:#f7f0df; border:1px solid #eadcbc; border-radius:8px; padding:8px 11px; font-size:13px; }
.section-intro { color:var(--muted); font-size:14px; margin:4px 0 0; }
.placeholder { gap:10px; }

/* Pages: wider layout for dashboards and directories */
#overview-view, #brands-view, #agencies-view, #partnerships-view, #aor-view, #library-view { max-width:1180px; }
.collection h1 { font-family:inherit; font-weight:750; letter-spacing:-.04em; color:#062419; font-size:clamp(28px,3vw,36px); }
.dash-hero { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:22px 24px; border-radius:16px;
  background:radial-gradient(ellipse at 100% 0,#1f7a4f55,transparent 60%),linear-gradient(135deg,#062419,#0d3f2c); color:#effaf3; margin:14px 0 16px; }
.dash-hero h2 { margin:0; font-size:22px; color:#fff; }
.dash-hero p { margin:6px 0 0; color:#cfe9da; font-size:14px; }
.dash-hero .quiet { background:#ffffff14; color:#fff; border-color:#ffffff40; }
.dash-hero .primary { background:#86efac; border-color:#86efac; color:#062419; }
.stat-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:10px; margin:0 0 16px; }
.stat-tile { display:grid; gap:4px; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:12px; min-width:0; }
.stat-tile span { color:var(--muted); font-size:13px; font-weight:600; }
.stat-tile strong { font-size:26px; color:#0d3f2c; letter-spacing:-.02em; overflow-wrap:anywhere; }
.stat-tile small { color:var(--muted); font-size:12px; }
.stat-row.compact .stat-tile strong { font-size:20px; }
.dash-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr)); gap:14px; margin-bottom:14px; }
.dash-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; min-width:0; margin-bottom:14px; }
.dash-grid .dash-card { margin:0; }
.dash-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px; }
.dash-head h2 { margin:0; font-size:17px; color:#062419; }
.dash-card .analysis-block { border:0; padding:0; }
.ranked-list { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.ranked-list li { display:grid; grid-template-columns:22px minmax(0,1fr) minmax(110px,40%); align-items:center; gap:10px; min-height:38px; }
.rank { color:var(--muted); font-size:12px; font-weight:700; text-align:right; }
.ranked-label { display:flex; align-items:center; gap:9px; min-width:0; }
.ranked-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.app .ranked-open { display:block; min-width:0; text-align:left; border:0; background:transparent; padding:4px 6px; border-radius:8px; color:var(--ink); min-height:36px; }
.app .ranked-open:hover { background:#eaf6ed; }
.ranked-value { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 8px; font-size:13px; }
.ranked-value small { grid-column:2; color:var(--muted); font-size:11px; text-align:right; }
.ranked-value strong { grid-column:2; grid-row:1; text-align:right; color:#0d3f2c; }
.ranked-bar { grid-column:1; grid-row:1 / span 2; height:8px; border-radius:4px; background:linear-gradient(90deg,#14532d calc(var(--share) * 100%),#e6efe9 0); }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.app .chip-button { border:1px solid #cfe3d6; background:#f3faf5; color:#14532d; border-radius:999px; padding:7px 13px; font-size:13px; font-weight:600; min-height:36px; text-align:left; display:inline-flex; gap:6px; align-items:center; }
.app .chip-button:hover { background:#e3f4e8; border-color:#a8d5b6; }
.market-chip small { color:var(--muted); font-weight:500; }
.brief-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:10px; }
.app .brief-card { display:grid; gap:4px; text-align:left; padding:14px 34px 14px 14px; border:1px solid var(--line); background:#f8fcf9; border-radius:12px; color:var(--ink); position:relative; min-height:76px; }
.app .brief-card:hover { border-color:#a8d5b6; background:#eef8f1; }
.brief-card span:not(.suggestion-arrow) { color:var(--muted); font-size:13px; }
.brief-card .suggestion-arrow { position:absolute; right:12px; top:12px; color:#14532d; }
.landing-search { display:grid; gap:10px; margin:10px 0 16px; }
.suggest-box { position:relative; max-width:560px; }
.suggest-box input { min-height:46px; padding:10px 14px; border-radius:12px; font-size:15px; border-color:#b9d4c3; }
.suggestions-pop { position:absolute; z-index:5; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 40px #062a1c22; padding:6px; display:grid; }
.app .suggestion { display:flex; align-items:center; gap:10px; text-align:left; border:0; background:transparent; padding:8px 10px; border-radius:8px; min-height:40px; color:var(--ink); }
.app .suggestion:hover, .app .suggestion:focus-visible { background:#eaf6ed; }
.suggestion span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.suggestion small { color:var(--muted); }
.brand-detail-head { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.brand-detail-head > div { flex:1; min-width:0; }
.brand-detail-head h2 { margin:0; }
.brand-detail h3 { font-size:15px; margin:14px 0 4px; }
.logo-large { width:56px; height:56px; border-radius:12px; font-size:22px; }
.agency-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:10px; }
.app .agency-card { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; column-gap:10px; align-items:center; text-align:left; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); min-height:64px; }
.agency-card .logo-tile { grid-row:1 / span 2; }
.agency-card strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.agency-card small { color:var(--muted); font-size:12px; }
.app .agency-card:hover { border-color:#a8d5b6; background:#f3faf5; }
.directory-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.directory-main { flex:1 1 220px; min-width:0; }
.directory-main h3 { margin:0; font-size:15px; }
.directory-main p { margin:2px 0 0; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.directory-side { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.directory-stats { display:flex; gap:16px; }
.directory-stats span { display:grid; text-align:right; }
.directory-stats strong { color:#0d3f2c; }
.directory-stats small { color:var(--muted); font-size:11px; }
.entity-name { display:inline-flex; align-items:center; gap:8px; }
.empty-feature { max-width:640px; margin:20px auto; text-align:center; padding:34px 28px; background:#fff; border:1px solid var(--line); border-radius:18px; }
.empty-icon { width:64px; height:64px; margin:0 auto 14px; border-radius:16px; display:grid; place-items:center; background:#e7f6eb; color:#14532d; font-weight:800; }
.empty-feature h2 { margin:0 0 8px; color:#062419; }
.empty-feature p { color:var(--muted); line-height:1.55; }
.empty-points { text-align:left; display:inline-grid; gap:6px; margin:6px auto 14px; padding-left:20px; color:var(--ink); }
.library-switch { margin:0 0 14px; }
.library-item { align-items:flex-start; }
.library-item > div:nth-child(2) { flex:1 1 260px; min-width:0; }
.library-kind { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:4px 8px; border-radius:6px; background:#e7f6eb; color:#14532d; }
.library-kind.kind-analysis { background:#eef1fb; color:#33407a; }
.library-kind.kind-list { background:#fbf3e4; color:#7a5418; }
.focused { outline:3px solid #86efac; outline-offset:4px; border-radius:12px; transition:outline-color .6s; }

.landing-row { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin:6px 0 12px; }
.landing-row .suggest-box { flex:1 1 320px; }
.market-picker { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
.market-picker select { min-height:42px; width:auto; min-width:180px; border-radius:10px; }
.dash-hero .market-picker { color:#cfe9da; }
.dash-hero .market-picker select { background:#ffffff14; color:#fff; border-color:#ffffff40; }
.dash-hero .market-picker option { color:#0b0f0e; }
.chart-brand { font-size:14px; margin-bottom:2px; }
.app .market-chip[aria-pressed="true"] { background:#14532d; color:#fff; border-color:#14532d; }
.app input:focus-visible, .app select:focus-visible, .app textarea:focus-visible, dialog input:focus-visible, dialog select:focus-visible { outline:2px solid #22c55e; outline-offset:1px; border-color:#16a34a; }
.app button:focus-visible, dialog button:focus-visible { outline:2px solid #22c55e; outline-offset:2px; }
#builder-table td, #builder-table th { white-space:nowrap; max-width:280px; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
#builder-table .creator-initials { width:28px; height:28px; font-size:11px; flex:none; }

/* Delivery: Google Sheets first, files as a quiet fallback */
.secondary-downloads { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:8px 0; font-size:13px; }
.app .text-link { background:none; border:0; padding:4px 0; min-height:32px; color:#14532d; text-decoration:underline; text-underline-offset:3px; font-weight:600; font-size:13.5px; cursor:pointer; white-space:nowrap; flex:none; }
/* Launch polish: readable secondary text, compact empty states, no wrapped header links. */
.app .section-intro, .app .dash-card .section-intro { font-size:14.5px; color:#4b5d54; line-height:1.5; }
.app .result-meta { font-size:13.5px; color:#4b5d54; }
.app .creator-card .creator-info small { font-size:12.5px; color:#53645b; }
.app .card-facts small { font-size:12px; color:#5b6b62; }
.app .overview-section .placeholder, .app .dash-card .placeholder { min-height:0; padding:18px 16px; }
.app .commercial-filters.explorer-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.app .commercial-filters.explorer-filters label { flex:0 1 260px; font-size:13px; }
.app .commercial-filters.explorer-filters button[type=submit] { flex:none; padding-inline:22px; }
.data-only summary { cursor:pointer; color:var(--muted); min-height:32px; display:flex; align-items:center; }
.data-only[open] summary { margin-bottom:2px; }
.builder-exports { display:grid; gap:6px; margin:10px 0; }

/* Assistant answers rendered from Markdown */
.message.assistant > span.md { display:block; white-space:normal; }
.message.assistant .report-text > :first-child { margin-top:0; }
.message.assistant .report-text h3, .message.assistant .report-text h4, .message.assistant .report-text h5 { font-size:15px; margin:12px 0 6px; color:#0d3f2c; }
.message.assistant .report-text code { font:12px/1.4 ui-monospace,Consolas,monospace; background:#eef4f0; padding:1px 5px; border-radius:4px; }
.message.assistant .report-text .table-wrap { overflow-x:auto; max-width:100%; }

/* Phones */
@media (max-width:850px) {
  .app .sidebar.open { width:min(86vw,300px); }
  .app .preview-heading .quiet, #hide-preview { min-width:40px; min-height:40px; }
  .collection { padding:22px 16px; }
  .ranked-list li { grid-template-columns:18px minmax(0,1fr) 96px; gap:6px; }
  .directory-stats { width:100%; justify-content:flex-start; }
  .directory-stats span { text-align:left; }
  .dash-hero { padding:18px; }
  .stat-tile strong { font-size:22px; }
}
.chat-layout:has(#welcome[hidden]) #suggestions { display:none; }
.app .chat-layout:has(#welcome:not([hidden])) .conversation { justify-content:flex-start; padding-top:clamp(28px,16vh,164px); }
.app .chat-layout:has(#welcome:not([hidden])) .welcome { padding-top:0; padding-bottom:8px; }
.app #suggestions { margin:14px 0 0; }
.sheet-card { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; margin-top:14px;
  border:1px solid #b9dcc4; border-radius:12px; background:#f0f9f2; }
.sheet-card p { margin:4px 0 0; color:#416955; font-size:.88rem; }
.sheet-link { display:inline-flex; margin:3px; padding:7px 10px; border-radius:8px; background:#14532d; color:#fff;
  font-weight:700; white-space:nowrap; text-decoration:none; }
.sheet-link:hover { background:#0b3925; color:#fff; }
@media(max-width:700px){.app .chat-layout:has(#welcome:not([hidden])) .conversation{padding-top:clamp(16px,7vh,56px)}}
