.topbar .account-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .account-create { background: #263342; color: #fffdf8; border-color: #263342; font-weight: 700; }
.topbar .account-create:hover { background: #3a4a5b; }
.topbar .account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.account-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-detail { position: relative; }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 7px; background: var(--paper); border: 1px solid #becbb0; border-radius: 5px; box-shadow: 0 8px 25px #17292326; z-index: 30; }
.account-menu button { display: block; width: 100%; text-align: left; border: 0; border-radius: 3px; background: transparent; padding: 11px 13px; font-size: 12px; }
.account-menu button:hover, .account-menu button:focus-visible { background: #e9efdf; }
.account-detail .quiet-button { color: #263342; }
.account-switch { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 15px; }
.portal-view { max-width: 940px; }
.portal-view h1 { font-size: 48px; margin-bottom: 16px; }
.portal-card { background: var(--paper); border: 1px solid #cfd7c4; border-radius: 7px; padding: 24px; margin-bottom: 20px; min-width: 0; }
.portal-card h2 { font-size: 21px; letter-spacing: -.4px; margin: 0 0 13px; }
.portal-card > p { font-size: 13px; line-height: 1.75; color: var(--muted); }
.portal-card label { display: block; font-size: 12px; margin: 16px 0 8px; }
.portal-card input { width: 100%; min-width: 0; border: 1px solid #becbb0; border-radius: 4px; padding: 12px; background: #fffef9; color: var(--ink); font-size: 16px; }
.portal-card input[readonly] { background: #f0f1e9; color: #626b64; }
.portal-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portal-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.portal-status { font-size: 12px; line-height: 1.6; color: #526747; min-height: 1.6em; }
.portal-library { display: grid; gap: 12px; margin-top: 18px; }
.portal-library-link { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 16px; border: 1px solid #cbd5bf; border-radius: 5px; background: #f4f5ed; }
.portal-library-link strong { font-size: 13px; }
.portal-library-link span { font-size: 13px; font-weight: 700; }
.portal-library-link small { grid-column: 1 / -1; font-size: 11px; line-height: 1.6; color: var(--muted); }
.portal-library-link:hover { background: #e9efdf; }
.portal-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.payment-section .payment-note { background: #eef0e8; border-left: 3px solid #8f5e58; padding: 12px 15px; font-size: 12px; }
.payment-shortcuts { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.payment-shortcut { background: #edf1e5; border: 1px solid #c6d0b9; border-radius: 4px; padding: 10px 13px; color: #243e65; font-size: 12px; text-decoration: none; }
.payment-shortcut:hover { text-decoration: underline; background: #e3ead8; }
.payment-browser { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.payment-browser summary { font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 16px; }
.payment-catalogue { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.payment-platform { border: 1px solid #d7dece; border-radius: 5px; padding: 17px; min-width: 0; }
.payment-platform h3 { margin: 0 0 9px; font-size: 15px; }
.payment-platform p { font-size: 12px; line-height: 1.6; color: #586651; margin: 7px 0; }
.payment-platform .payment-region { font-size: 10px; color: #766057; }
.payment-platform-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.payment-platform-actions .quiet-button { font-size: 11px; }
.payment-platform-actions .text-button { font-size: 11px; }
.payment-platform-actions [aria-pressed="true"] { background: #e3ead8; border-color: #7d9369; }
@media (max-width: 650px) {
  .portal-overview, .payment-catalogue { grid-template-columns: 1fr; gap: 0; }
  .payment-catalogue { gap: 12px; }
  .portal-card { padding: 19px; }
  .portal-view h1 { font-size: 40px; }
}
.account-submit { width: 100%; }
.account-notice { border: 1px solid #d8c2ba; background: #f0e3de; border-radius: 5px; padding: 12px 15px; }
.account-error { color: #913e33; min-height: 1.5em; }
.library-toolbar { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 21px; }
.library-toolbar p { margin: 0; }
.history-list { display: grid; gap: 12px; margin-bottom: 25px; }
.history-card { padding: 19px; border: 1px solid #cfd7c4; border-radius: 6px; background: var(--paper); }
.history-card h2 { font-size: 17px; line-height: 1.5; letter-spacing: -.25px; margin: 0 0 9px; overflow-wrap: anywhere; }
.history-meta { font-size: 11px; color: var(--muted); line-height: 1.6; }
.history-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.history-replay-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin: 20px 0; }
.history-replay-heading h2 { font-size: 24px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.history-replay-heading .quiet-button { flex-shrink: 0; }
.history-replay .result-card { margin-bottom: 16px; }
.library-private-note { color: #766057; }
.admin-alerts { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 25px; }
.admin-alerts h3 { font-size: 17px; margin-bottom: 10px; }
.security-alert { margin-top: 12px; background: #fffdf8; padding: 13px; border: 1px solid #d7c5bd; border-left: 3px solid #8f5e58; border-radius: 4px; }
.security-alert strong { display: block; font-size: 12px; margin-bottom: 6px; }
.security-alert p { font-size: 11px; line-height: 1.6; margin: 4px 0; overflow-wrap: anywhere; }
#accountDialog { max-width: 480px; }
#accountDialog input { font-size: 16px; }
#accountDialog .fine-print { margin-top: 8px; }
.privacy-details { margin: 12px 0 22px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.privacy-details summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy-details p { margin: 8px 0; }
.search-settings { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.compact .hero h1 em { margin-left: .15em; }
.answer-limit { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #526747; }
.answer-limit select { border: 1px solid #bcc5b3; border-radius: 4px; padding: 7px; background: #f4f5ed; color: #263342; font-size: 11px; }
.search-mode-help { margin: 12px 2px 0; font-size: 11px; color: #626b64; line-height: 1.6; }
.discovery-badge { background: #ede3ef; border: 1px solid #b9a1c2; color: #61416d; border-radius: 3px; padding: 4px 6px; font-size: 10px; }
.automatic-providers { color: var(--muted); font-size: 10px; margin-left: auto; }
.provider-choices span.provider-chip { cursor: default; }
.ranked-summary h2 { font-size: 24px; margin: 7px 0 8px; letter-spacing: -.6px; }
.ranked-summary .fine-print { margin: 0 0 4px; }
.ranked-answers { counter-reset: answer; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ranked-answer { position: relative; padding: 22px 22px 18px 64px; background: var(--paper); border: 1px solid #cfd7c4; border-radius: 6px; counter-increment: answer; min-width: 0; }
.ranked-answer:before { content: counter(answer, decimal-leading-zero); position: absolute; left: 20px; top: 23px; font-size: 13px; font-weight: 700; color: #8f5e58; }
.ranked-text { font-size: 14px; line-height: 1.75; margin: 0 0 11px; overflow-wrap: anywhere; white-space: pre-wrap; }
.ranked-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.ranked-provider { background: #e8ece3; border-radius: 3px; color: #3d5543; padding: 4px 6px; font-size: 10px; }
.ranked-agreement { color: #6f5b52; font-size: 10px; }
.ranked-answer .sources { margin-top: 12px; }
.ranked-answer .source { padding: 6px 9px; }
.ranked-answer .result-actions { margin-top: 13px; padding-top: 10px; }
.provider-errors { border: 1px solid #d7c5bd; border-radius: 5px; padding: 15px; font-size: 12px; }
.provider-errors summary { cursor: pointer; }
@media (max-width: 1050px) { .topbar .breadcrumb { display: none; } .topbar { justify-content: flex-end; } }
@media (max-width: 820px) { .topbar { height: auto; min-height: 66px; padding-top: 10px; padding-bottom: 10px; } .topbar .account-actions { width: 100%; gap: 8px; } .topbar .network-badge { margin-right: auto; } .topbar .account-name { max-width: 125px; } }
@media (max-width: 540px) { .sidebar nav .nav-item { padding-left: 8px; padding-right: 8px; } .topbar .account-actions { gap: 7px; } .topbar .quiet-button { font-size: 11px; padding: 8px 10px; } .library-toolbar { align-items: flex-start; } .library-toolbar button { flex-shrink: 0; } .history-card { padding: 16px; } .history-replay-heading { flex-direction: column; } .account-detail { gap: 7px; } .search-settings { gap: 6px; flex-direction: column; align-items: flex-start; } .automatic-providers { width: 100%; margin-left: 0; text-align: center; } .ranked-answer { padding: 17px 16px 16px 47px; } .ranked-answer:before { left: 14px; top: 20px; font-size: 12px; } .ranked-text { font-size: 13px; } }
@media (max-width: 359px) { .brand { font-size: 20px; } .sidebar nav .nav-item { padding-left: 7px; padding-right: 7px; } .topbar .quiet-button { padding: 8px; } }

/* Brand outlines stay in the stylesheet; provider text cannot inject styles. */
.ranked-answer { --outline-1: #7d8b82; --outline-2: var(--outline-1); --outline-3: var(--outline-2); border: 1px solid var(--outline-1); background: #fffdf9; box-shadow: inset 0 .7px 0 #ffffff, 0 .7px .7px #17292324, 0 4px 12px #17292309; transform: translateY(-.7px); }
.ranked-answer.multi-provider-card { border-color: transparent; background: linear-gradient(#fffdf9,#fffdf9) padding-box, linear-gradient(110deg,var(--outline-1),var(--outline-2),var(--outline-3)) border-box; }
.result-origin { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; width: fit-content; max-width: 100%; text-decoration: none; }
.result-origin-icon { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; background: #edf0eb; border: 1px solid #d6ded4; border-radius: 50%; font-size: 11px; color: #465e4b; }
.result-origin-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.result-origin-domain { font-size: 12px; font-weight: 600; color: #263342; overflow-wrap: anywhere; }
.result-origin-title { font-size: 10px; color: #626b64; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 58ch; }
.result-origin:hover .result-origin-domain { text-decoration: underline; }
.ranked-answer .ranked-text { font-size: 16px; line-height: 1.65; color: #243e65; }
.ranked-provider { border: 1px solid transparent; background: #f0f2ed; color: #263342; }
@media (max-width: 540px) { .ranked-answer .ranked-text { font-size: 14px; } .result-origin-title { max-width: 31ch; } }
.outline-1-openai { --outline-1: #25836b; }
.outline-2-openai { --outline-2: #25836b; }
.outline-3-openai { --outline-3: #25836b; }
.ranked-provider.badge-openai { border-color: #25836b; }
.outline-1-anthropic { --outline-1: #b76d50; }
.outline-2-anthropic { --outline-2: #b76d50; }
.outline-3-anthropic { --outline-3: #b76d50; }
.ranked-provider.badge-anthropic { border-color: #b76d50; }
.outline-1-gemini { --outline-1: #4b72c7; }
.outline-2-gemini { --outline-2: #4b72c7; }
.outline-3-gemini { --outline-3: #4b72c7; }
.ranked-provider.badge-gemini { border-color: #4b72c7; }
.outline-1-perplexity { --outline-1: #297e84; }
.outline-2-perplexity { --outline-2: #297e84; }
.outline-3-perplexity { --outline-3: #297e84; }
.ranked-provider.badge-perplexity { border-color: #297e84; }
.outline-1-xai { --outline-1: #535a64; }
.outline-2-xai { --outline-2: #535a64; }
.outline-3-xai { --outline-3: #535a64; }
.ranked-provider.badge-xai { border-color: #535a64; }
.outline-1-mistral { --outline-1: #c67a17; }
.outline-2-mistral { --outline-2: #c67a17; }
.outline-3-mistral { --outline-3: #c67a17; }
.ranked-provider.badge-mistral { border-color: #c67a17; }
.outline-1-deepseek { --outline-1: #536ac7; }
.outline-2-deepseek { --outline-2: #536ac7; }
.outline-3-deepseek { --outline-3: #536ac7; }
.ranked-provider.badge-deepseek { border-color: #536ac7; }
.outline-1-groq { --outline-1: #c65d3c; }
.outline-2-groq { --outline-2: #c65d3c; }
.outline-3-groq { --outline-3: #c65d3c; }
.ranked-provider.badge-groq { border-color: #c65d3c; }
.outline-1-together { --outline-1: #7960bb; }
.outline-2-together { --outline-2: #7960bb; }
.outline-3-together { --outline-3: #7960bb; }
.ranked-provider.badge-together { border-color: #7960bb; }
.outline-1-cohere { --outline-1: #467c65; }
.outline-2-cohere { --outline-2: #467c65; }
.outline-3-cohere { --outline-3: #467c65; }
.ranked-provider.badge-cohere { border-color: #467c65; }

