/* Answer tools: no-source answers do not leave an empty column. */
.ai-layout.without-sources { grid-template-columns: minmax(0, 1fr); }
.sources-card[hidden] { display: none !important; }
.answer-actions > button:disabled { opacity: .5; cursor: not-allowed; }
.answer-export-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #d5e4e0; border-radius: 20px; color: #183c3d; background: #fff; box-shadow: 0 30px 100px #082f3344; }
.answer-export-dialog::backdrop { background: #082f3377; backdrop-filter: blur(4px); }
.answer-export-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #dce7e5; }
.answer-export-heading h2 { margin: 0; font-size: 22px; }
.answer-export-heading button { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid #dce7e5; border-radius: 10px; background: #fff; cursor: pointer; font-size: 24px; }
.answer-export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 24px; background: #f5faf8; }
.answer-export-actions button { padding: 11px 16px; border: 1px solid #b9d9d1; border-radius: 10px; color: #076b59; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; }
.answer-export-actions button:first-child { color: #fff; border-color: #087662; background: #087662; }
.answer-export-actions button:disabled { opacity: .5; cursor: not-allowed; }
.answer-export-actions p { flex: 1 1 100%; margin: 0; color: #647b78; font-size: 12px; line-height: 1.5; }
.answer-export-dialog iframe { display: block; width: 100%; height: min(62dvh, 680px); border: 0; background: #fff; }
.answer-tools-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 28px;padding:16px;border:1px solid #c7e2da;border-radius:14px;background:#f3faf7}
.answer-tools-toolbar button,.answer-share-options button{min-height:44px;padding:11px 16px;border:1px solid #a9cec3;border-radius:10px;color:#075e50;background:#fff;cursor:pointer;font:inherit;font-size:14px;font-weight:750}
.answer-tools-toolbar button:last-child,.answer-share-options button:first-child{color:#fff;border-color:#087662;background:#087662}
.answer-tools-toolbar button:focus-visible,.answer-share-dialog button:focus-visible{outline:3px solid #45bfa3;outline-offset:3px}
.answer-share-dialog{width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #c7ddd6;border-radius:20px;color:#183c3d;background:#fff;box-shadow:0 25px 90px #082f3344;overflow:auto}
.answer-share-dialog::backdrop{background:#082f3377;backdrop-filter:blur(4px)}
.answer-share-content{padding:20px 24px}.answer-share-content>p{margin:0 0 18px;color:#47665f;font-size:14px;line-height:1.6}
.answer-share-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.answer-share-options button:first-child{grid-column:1/-1}
.answer-share-content label{display:block;margin:16px 0 8px;font-size:13px;font-weight:750}
.answer-share-content textarea{display:block;box-sizing:border-box;width:100%;min-height:150px;padding:12px;border:1px solid #cbded6;border-radius:10px;resize:vertical;color:#203f38;background:#fafdfb;font:14px/1.6 system-ui,Arial,sans-serif}
#answerShareStatus:not(:empty){padding:12px;border:1px solid #c9dfd4;border-radius:10px;background:#f1f8f4;color:#245346;font-weight:650}
.answer-share-content .answer-share-help{margin:14px 0 0;font-size:12px}
#shareAnswer{color:#076b59;border-color:#a6d5c7;background:#eef9f5}
@media (max-width: 560px) {
  .answer-export-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .answer-export-heading, .answer-export-actions { padding: 16px; }
  .answer-export-heading h2 { font-size: 18px; }
  .answer-export-actions button { flex: 1 1 auto; }
  .answer-tools-toolbar{display:grid;grid-template-columns:1fr;margin:20px 0;padding:12px}.answer-tools-toolbar button{width:100%}
  .answer-share-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px);border-radius:16px}
  .answer-share-content{padding:16px}.answer-share-options{gap:8px}.answer-share-options button{font-size:14px;padding:11px 8px}
}
