:root {
  --ink: #171717;
  --muted: #6f6f6f;
  --line: #dedede;
  --soft: #f7f7f7;
  --page: #ffffff;
  --max: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.brand, .library-link {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
}
.brand { font-weight: 600; }
.library-link { color: var(--muted); letter-spacing: 0; }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 24px 64px;
}
.hero-inner {
  width: min(100%, var(--max));
  text-align: center;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}
.subtitle {
  max-width: 560px;
  margin: 8px auto 34px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}
.cover-photo {
  width: 225px;
  aspect-ratio: 2048 / 1469;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
}
.photo-caption {
  margin: 8px 0 28px;
  color: #878787;
  font-size: 12px;
  font-style: italic;
}
.ask-form { margin: 0 auto; max-width: 680px; }
.query-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 21px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .16s ease, border-color .16s ease;
  background: #fff;
}
.query-box:focus-within {
  border-color: #c8c8c8;
  box-shadow: 0 4px 16px rgba(0,0,0,.11);
}
textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  min-height: 24px;
  max-height: 132px;
  padding: 2px 0 0;
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
}
textarea::placeholder { color: #898989; }
button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #171717;
  display: grid;
  place-items: center;
  cursor: pointer;
}
button svg { width: 20px; height: 20px; fill: #fff; }
.status { min-height: 18px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.scroll-cue {
  display: inline-block;
  margin-top: 34px;
  text-decoration: none;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.35;
}
.scroll-cue .scroll-arrow {
  display: block;
  padding-left: 0;
  margin-top: 3px;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}

.library {
  border-top: 1px solid #f0f0f0;
  background: #fff;
  padding: 112px 24px 120px;
}
.library-inner { width: min(100%, 900px); margin: 0 auto; }
.section-heading { margin-bottom: 50px; }
h2 {
  margin: 0 0 13px;
  font-size: clamp(36px, 6vw, 54px);
  letter-spacing: -.04em;
  font-weight: 500;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 650px;
}
.library-list { border-top: 1px solid var(--line); }
.library-row {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
  padding: 0 4px;
}
.library-row span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
.library-row strong { display: inline-block; min-width: 33px; font-weight: 500; color: #a0a0a0; }
.library-row:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.prototype-note { margin: 28px 0 0; font-size: 12px; color: #999; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 34px 32px;
  border-top: 1px solid #efefef;
  color: #8b8b8b;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .site-header { height: 56px; padding: 0 18px; }
  .hero { padding: 88px 18px 54px; }
  .subtitle { margin-bottom: 28px; font-size: 15px; }
  .cover-photo { width: 190px; }
  .query-box { min-height: 55px; padding-left: 18px; }
  textarea { font-size: 16px; }
  .library { padding: 86px 19px 90px; }
  .library-row { align-items: flex-start; padding: 20px 2px; min-height: 0; flex-direction: column; gap: 7px; }
  footer { padding: 22px 19px; }
}

/* Password gate */
body.locked { overflow: hidden; }
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 32px 20px;
}
.gate[hidden] { display: none; }
.gate-inner {
  width: min(92vw, 430px);
  text-align: center;
  transform: translateY(-5vh);
}
.gate h1 {
  margin: 0 0 26px;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.gate-form {
  display: grid;
  gap: 12px;
}
.gate-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6d6d6;
  border-radius: 24px;
  padding: 13px 18px;
  font: inherit;
  font-size: 17px;
  outline: none;
  text-align: center;
}
.gate-form input:focus {
  border-color: #8d8d8d;
  box-shadow: 0 1px 6px rgba(32,33,36,.16);
}
.gate-form button {
  justify-self: center;
  border: 0;
  border-radius: 22px;
  background: #111;
  color: #fff;
  padding: 11px 28px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.gate-status {
  min-height: 20px;
  margin: 0;
  color: #777;
  font-size: 13px;
}
.site-shell[hidden] { display: none; }


/* v4 library index */
.library-index { border-top: 1px solid var(--line); }
.library-section { border-bottom: 1px solid var(--line); }
.library-section > summary {
  list-style: none;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 16px;
}
.library-section > summary::-webkit-details-marker { display: none; }
.library-section > summary:hover .section-name { text-decoration: underline; text-underline-offset: 4px; }
.section-code { display: inline-block; min-width: 33px; color: #a0a0a0; font-weight: 500; }
.section-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.section-chevron { color: #8a8a8a; font-size: 22px; line-height: 1; transition: transform .15s ease; }
.library-section[open] .section-chevron { transform: rotate(45deg); }
.section-body { padding: 0 4px 20px 37px; }
.doc-link {
  display: block;
  padding: 8px 0;
  color: #2d2d2d;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.doc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.manufacturer-group { border-top: 1px solid #efefef; padding: 12px 0 5px; }
.manufacturer-group:first-child { border-top: 0; }
.manufacturer-group h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.empty-note { margin: 5px 0 9px; color: #999; font-size: 13px; }

/* v4: ensure gate Enter label is truly centered */
.gate-form button {
  width: auto;
  min-width: 84px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .library-section > summary { min-height: 0; padding: 18px 2px; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start; }
  .section-count { grid-column: 1; padding-left: 33px; }
  .section-chevron { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .section-body { padding-left: 35px; padding-right: 4px; }
}

/* v5 Ask Lilia response area */
.ask-form button:disabled { opacity: .5; cursor: default; }
.answer-panel {
  max-width: 680px;
  margin: 18px auto 0;
  padding: 24px 26px;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  text-align: left;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.045);
}
.answer-panel[hidden] { display: none; }
.answer-text {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.58;
  color: #242424;
}
.answer-sources { margin-top: 20px; padding-top: 16px; border-top: 1px solid #ededed; }
.sources-label { margin-bottom: 9px; color: #777; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.source-links { display: flex; flex-wrap: wrap; gap: 7px; }
.source-chip {
  display: inline-block;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #dedede;
  border-radius: 999px;
  color: #555;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.source-chip:hover { border-color: #a9a9a9; color: #222; }
@media (max-width: 640px) {
  .answer-panel { padding: 20px 18px; border-radius: 16px; }
  .answer-text { font-size: 15px; }
}


/* V10 presentation and permission-flow refinements */
.answer-text { white-space: normal; }
.answer-text p { margin: 0 0 12px; }
.answer-text p:last-child { margin-bottom: 0; }
.answer-text ol, .answer-text ul { margin: 8px 0 14px 1.35em; padding: 0; }
.answer-text li { margin: 5px 0; padding-left: 3px; }
.answer-text strong { font-weight: 650; }
.answer-text em { font-style: italic; }
.answer-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: #f5f5f5; padding: 1px 4px; border-radius: 4px; }
.answer-text h3, .answer-text h4, .answer-text h5, .answer-text h6 { margin: 16px 0 8px; font-size: 16px; font-weight: 650; letter-spacing: 0; }
.source-links { display: grid; gap: 8px; }
.source-card {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 10px 14px;
  align-items: baseline;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  color: #444;
  text-decoration: none;
  background: #fff;
}
a.source-card:hover { border-color: #bdbdbd; color: #171717; }
.source-kind { color: #7a7a7a; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.source-title { min-width: 0; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.web-permission-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ededed;
}
.permission-button {
  appearance: none;
  width: 100%;
  min-height: 44px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.permission-button.primary { background: #111; color: #fff; border-color: #111; }
.permission-button.subtle { color: #666; }
.permission-button:hover { opacity: .86; }
@media (max-width: 640px) {
  .source-card { grid-template-columns: 1fr; gap: 3px; }
  .permission-button { font-size: 13px; }
}

/* V10.2 threaded conversation */
.conversation-toolbar {
  max-width: 680px;
  margin: 22px auto 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #777;
  font-size: 12px;
}
.conversation-toolbar[hidden], .conversation-thread[hidden] { display: none; }
.new-conversation-button {
  width: auto;
  height: auto;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #dedede;
  background: #fff;
  color: #555;
  padding: 7px 13px;
  font: inherit;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.conversation-thread { max-width: 720px; margin: 0 auto 14px; text-align: left; }
.chat-turn { margin: 12px 0; }
.user-turn { display: flex; justify-content: flex-end; }
.user-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  background: #f3f3f3;
  color: #222;
  font-size: 15px;
  line-height: 1.42;
  white-space: pre-wrap;
}
.assistant-card {
  padding: 22px 24px;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.assistant-card.error-card { border-color: #e6caca; background: #fffafa; }
.search-bubble {
  padding: 7px 2px;
  color: #7a7a7a;
  font-size: 12px;
  text-align: center;
}
.conversation-thread .answer-text { font-size: 16px; line-height: 1.58; color: #242424; }
.ask-form { margin-top: 16px; }
@media (max-width: 640px) {
  .conversation-toolbar { margin-top: 18px; }
  .user-bubble { max-width: 94%; font-size: 14px; }
  .assistant-card { padding: 19px 17px; border-radius: 16px; }
  .conversation-thread .answer-text { font-size: 15px; }
}

/* V11.2 presentation-only enhancements */
/* Make the library entry points easier to notice without changing navigation behavior. */
.library-link {
  color: #303030;
  font-size: 14px;
  font-weight: 600;
}
.library-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.scroll-cue {
  margin-top: 30px;
  padding: 10px 18px 8px;
  border-radius: 14px;
  color: #2c2c2c;
  font-size: 18px;
  font-weight: 600;
  transition: background .16s ease, transform .16s ease;
}
.scroll-cue:hover { background: #f5f5f5; transform: translateY(-1px); }
.scroll-cue .scroll-arrow {
  margin-top: 5px;
  font-size: 34px;
  font-weight: 500;
}

/* Prominent research state: same job, same timing, clearer feedback. */
.status-turn { display: flex; justify-content: center; }
.search-bubble {
  width: min(100%, 680px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 4px auto;
  padding: 13px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 15px;
  background: #fafafa;
  color: #4f4f4f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.research-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #d1d1d1;
  border-top-color: #222;
  border-radius: 50%;
  animation: asklilia-spin .8s linear infinite;
}
@keyframes asklilia-spin { to { transform: rotate(360deg); } }
.status:not(:empty) {
  margin-top: 9px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
}

/* Make evidence cards unmistakably clickable while retaining existing source taxonomy. */
a.source-card { cursor: pointer; }
.source-card {
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
}
a.source-card:hover {
  border-color: #a7a7a7;
  background: #fafafa;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
}
.source-open {
  color: #555;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .library-link { font-size: 13px; }
  .scroll-cue { font-size: 17px; padding-left: 12px; padding-right: 12px; }
  .search-bubble { min-height: 50px; padding: 12px 14px; font-size: 13px; }
  .source-card { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .source-kind { grid-column: 1 / -1; }
  .source-title { grid-column: 1; }
  .source-open { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .research-spinner { animation-duration: 1.8s; }
}

/* Photo upload checkpoint 2A: UI shell only. No image transport/model integration yet. */
.attach-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5d5d5d;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.attach-button:hover { background: #f2f2f2; color: #222; }
.attach-button svg { width: 21px; height: 21px; fill: currentColor; }

.image-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 2px 0;
  text-align: left;
}
.image-previews[hidden] { display: none; }
.image-preview-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fafafa;
}
.image-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #f1f1f1;
}
.image-preview-meta {
  min-width: 0;
  padding: 8px 9px 7px;
}
.image-preview-label {
  display: block;
  color: #333;
  font-size: 12px;
  font-weight: 600;
}
.image-preview-name {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #888;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-preview-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.image-preview-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  font-size: 19px;
  line-height: 1;
}
.image-preview-actions button:disabled { opacity: .35; cursor: default; }
.image-remove-button { font-size: 18px !important; }

@media (max-width: 640px) {
  .query-box { padding-left: 8px; }
  .attach-button { width: 38px; height: 38px; }
  .image-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .image-preview-card { border-radius: 11px; }
  .image-preview-meta { padding: 6px 7px; }
  .image-preview-name { display: none; }
  .image-preview-actions { top: 4px; right: 4px; gap: 3px; }
  .image-preview-actions button { width: 25px; height: 25px; font-size: 17px; }
}


/* Photo checkpoint 2B: client-side preparation state */
.image-preview-details {
  display: block;
  margin-top: 2px;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.25;
}
.image-preview-card.image-preparing img { opacity: .72; }
.image-preview-card.image-error { border-color: #d9a5a5; }
.image-preview-card.image-error .image-preview-details { color: #9b3f3f; }
@media (max-width: 640px) {
  .image-preview-details { font-size: 10px; }
}


.user-turn-content {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.user-turn-content .user-bubble { max-width: 100%; }
.user-turn-images {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.user-turn-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fafafa;
}
.user-turn-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #f1f1f1;
}
.user-turn-image figcaption {
  padding: 5px 7px 6px;
  color: #777;
  font-size: 10px;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .user-turn-content { max-width: 94%; }
  .user-turn-images { width: min(100%, 360px); gap: 5px; }
  .user-turn-image { border-radius: 10px; }
  .user-turn-image figcaption { padding: 4px 6px 5px; font-size: 9px; }
}


/* Photo drop zone: page-wide feedback; visual only, never captures pointer events. */
.photo-drop-overlay {
  position: fixed;
  inset: 76px 12px 12px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #8c8c8c;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  color: #333;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
}
.site-shell.photo-drop-active .photo-drop-overlay {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 640px) {
  .photo-drop-overlay { font-size: 14px; }
}

/* SHOW-EARLY Lilia map viewer: additive; preserves existing answer/source-card rules. */
.fuse-maps-inline { margin: 18px 0 22px; padding: 16px; border: 1px solid #dedede; border-radius: 12px; background: #fafafa; }
.fuse-maps-inline h4 { margin: 0 0 14px; font-size: 16px; font-weight: 650; letter-spacing: 0; }
.fuse-map-figure { margin: 0 0 16px; }
.fuse-map-figure:last-child { margin-bottom: 0; }
.fuse-map-figure figcaption { margin: 0 0 10px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.fuse-map-figure img { display: block; width: 100%; height: auto; max-height: 590px; object-fit: contain; border: 1px solid #e1e1e1; border-radius: 6px; background: white; }
.fuse-map-figure img:not([src]) { display: none; }
.fuse-map-loading,.fuse-map-note { color: #555; font-size: 12px; margin: 7px 0; }
.fuse-map-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 10px; }
.fuse-map-actions a { font-size: 13px; text-decoration: underline; }
.fuse-map-zoom,.fuse-map-close { width: auto; height: auto; min-height: 34px; flex: none; display: inline-block; padding: 7px 12px; background: #202020; color: white; border-radius: 6px; font: inherit; font-size: 13px; }
.fuse-map-zoom[hidden] { display: none; }
.fuse-map-dialog { width: min(96vw, 1200px); max-width: 96vw; max-height: 95vh; padding: 15px; border: none; border-radius: 9px; overflow: auto; }
.fuse-map-dialog::backdrop { background: rgba(0,0,0,.79); }
.fuse-map-dialog img { width: 100%; max-height: 82vh; height: auto; object-fit: contain; }
.fuse-map-dialog p { font-size: 13px; color: #444; }
.fuse-map-dialog .fuse-map-close { display: block; margin-left: auto; margin-bottom: 10px; }
@media (max-width: 640px) { .fuse-maps-inline { padding: 10px; margin: 14px 0 18px; } .fuse-map-figure img { max-height: 76vh; } }

/* SHOW-EARLY: row-scoped database troubleshooting information beneath each map. */
@media (max-width: 640px) { .fuse-map-db-details { padding: 10px; } }

/* Revision E.1: authoritative physical-access caption, attached to map metadata. */
.fuse-map-physical-access {font-size:.92rem;line-height:1.45;margin:.35rem 0 .7rem;font-weight:600;}

/* E.4 offline staging: source images with safe navigation back to originals. */
.assistant-turn .answer-image-source {display:block;max-width:360px;margin:10px 0;color:inherit;}
.assistant-turn .answer-image-source img {display:block;max-width:100%;max-height:260px;object-fit:contain;border:1px solid #ddd;border-radius:9px;}
.assistant-turn .answer-image-source span {display:inline-block;margin-top:4px;text-decoration:underline;}

.source-preview-image {grid-column:1/-1;display:block;max-width:100%;width:180px;max-height:135px;object-fit:contain;border-radius:6px;margin:5px 0;}

/* E.5.3: explicit catalog index freshness status. */
.library-index-freshness{font-size:.85rem;opacity:.8;margin:.5rem 0 1rem}
