:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #2a382f;
  background: #fafbf8;
  font-synthesis: none;
  --green: #355b45;
  --line: #e2e6dd;
  --muted: #788173;
  --paper: #fafbf8;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #7f9f64;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
.shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  overflow: hidden;
}
.shell.dock-open {
  grid-template-columns: 204px minmax(330px, 1fr) minmax(380px, 460px);
}
.sidebar {
  background: #f0f2eb;
  border-right: 1px solid var(--line);
  padding: 28px 17px;
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 650;
  padding-left: 9px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav a {
  padding: 11px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  color: #737c6d;
  display: flex;
  gap: 11px;
  align-items: center;
}
.sidebar nav a[aria-current] {
  background: #e2e8db;
  color: #35513b;
  font-weight: 550;
}
.sidebar nav a:hover {
  background: #e6eade;
}
.sidebar nav a > span {
  font-size: 17px;
  width: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: start;
  padding-left: 10px;
}
.quiet {
  background: transparent;
  border: 0;
  color: #74816e;
  padding: 7px 0;
  font-size: 11px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.quiet:hover {
  color: #2f513b;
}
.connection-dot,
.new-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: #b4ac80;
}
.connected .connection-dot,
.new-dot {
  background: #6b8c54;
}
.local-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: #909784;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
}
.conversation-header {
  height: 75px;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  color: #7e8877;
  font-size: 12px;
}
.conversation-header .quiet {
  font-size: 12px;
}
.conversation-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 35px 36px 24px;
  scroll-behavior: smooth;
}
.welcome {
  max-width: 720px;
  margin: clamp(20px, 10vh, 115px) auto 0;
}
.welcome-mark {
  color: #96a682;
  font-size: 52px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8b967f;
  font-weight: 600;
  margin: 0 0 10px;
}
.welcome h1 {
  font-family: Georgia, serif;
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -1.3px;
  margin: 0 0 34px;
}
.suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 660px;
}
.suggestions button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  padding: 13px 15px;
  color: #65715e;
  font-size: 11px;
  display: flex;
  gap: 18px;
}
.suggestions button:hover {
  background: #f0f3eb;
  border-color: #cbd5c2;
}
.messages,
.thinking {
  max-width: 710px;
  margin: 0 auto;
}
.turn {
  margin-bottom: 38px;
}
.user-message {
  background: #ecf0e6;
  border-radius: 15px 15px 3px 15px;
  padding: 13px 18px;
  font-size: 13px;
  line-height: 1.65;
  max-width: 83%;
  width: fit-content;
  margin-left: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-message {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  margin-top: 29px;
}
.agent-mark {
  font-size: 26px;
  color: #7e956b;
  line-height: 1;
}
.assistant-text {
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-message.failed {
  color: #8b7054;
}
.view-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7dfce;
  border-radius: 7px;
  background: #f2f5ed;
  color: #4f6b43;
  font-size: 11px;
  padding: 12px 15px;
  margin-top: 17px;
  max-width: 100%;
  text-align: left;
}
.view-link:hover {
  background: #eaf0e3;
}
.interrupted-note {
  font-size: 11px;
  color: var(--muted);
  margin-left: 36px;
}
.thinking {
  font-size: 11px;
  color: #859277;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 36px;
  margin-top: 15px;
}
.thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8da776;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.composer-zone {
  width: 100%;
  max-width: 790px;
  align-self: center;
  padding: 12px 36px 20px;
}
.composer {
  border: 1px solid #d4dccb;
  background: #fffefb;
  border-radius: 13px;
  padding: 15px 16px 11px;
  box-shadow: 0 3px 15px #31452b04;
}
.composer:focus-within {
  border-color: #a1b48e;
}
.composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 48px;
  max-height: 180px;
  border: 0;
  outline: none !important;
  background: transparent;
  color: #33402f;
  font-size: 13px;
  line-height: 1.6;
  padding: 0;
}
.composer textarea::placeholder {
  color: #a0a796;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 7px;
}
.composer-bottom > span {
  font-size: 9px;
  color: #9aa38d;
}
.send-button {
  height: 31px;
  width: 31px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #f7f9f2;
  font-size: 23px;
  line-height: 1;
}
.send-button:hover {
  background: #254b35;
}
.composer-footnote {
  font-size: 9px;
  color: #a0a794;
  text-align: center;
  margin: 13px 0 0;
}
.unseen-widget {
  background: #f0f4e9;
  border: 1px solid #e0e8d6;
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 11px;
  color: #647b50;
  text-align: left;
}
.widget-action {
  margin-left: auto;
  font-size: 10px;
  color: #889b74;
}
.chat-notice {
  font-size: 11px;
  padding: 10px 1px;
  color: #658253;
  line-height: 1.6;
}
.chat-notice.error,
.error-message {
  color: #a05d43;
}
.results-dock {
  background: #f4f6ef;
  border-left: 1px solid #dfe5d6;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  animation: slide-in 0.2s ease-out;
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
}
.dock-header {
  padding: 28px 25px 20px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.dock-header h2 {
  font-size: 21px;
  font-weight: 450;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 0;
  font-family: Georgia, serif;
}
.dock-header .eyebrow {
  font-size: 8px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #7c8b70;
  font-size: 24px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}
.dock-meta {
  font-size: 9px;
  color: #94a087;
  padding: 0 25px 17px;
  border-bottom: 1px solid #dfe5d6;
}
.dock-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 30px;
}
.property-brief,
.registry-brief {
  padding: 26px 0;
  border-bottom: 1px solid #dce3d4;
}
.property-brief .eyebrow,
.registry-brief .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.property-title {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}
.property-title h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}
.status-label {
  font-size: 8px;
  white-space: nowrap;
  display: inline-block;
  background: #e5eadc;
  color: #7b8967;
  padding: 5px 7px;
  border-radius: 3px;
  margin-top: 3px;
}
.brief-facts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 12px;
  margin: 23px 0 17px;
}
.brief-facts dt {
  font-size: 9px;
  color: #8b967e;
  margin-bottom: 8px;
}
.brief-facts dd {
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.6px;
  margin: 0;
}
.material-question {
  font-size: 11px;
  color: #8a805e;
  line-height: 1.65;
  margin: 0 0 13px;
}
.property-evidence {
  margin-bottom: 20px;
}
summary {
  cursor: pointer;
  font-size: 10px;
  color: #7e8b70;
  line-height: 1.6;
}
details[open] > summary {
  margin-bottom: 12px;
}
.property-evidence p,
.property-evidence li,
.registry-brief p,
.registry-brief small {
  font-size: 11px;
  color: #79856c;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.property-evidence ul {
  padding-left: 16px;
}
.dock-decision input {
  border: 0;
  border-bottom: 1px solid #d7dece;
  background: transparent;
  padding: 9px 0;
  font-size: 10px;
  width: 100%;
  color: #5e7051;
  margin-bottom: 10px;
}
.dock-decision input::placeholder {
  color: #a0aa92;
}
.dock-decision > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.small-button {
  border: 1px solid #c9d4bd;
  background: #eaf0e2;
  color: #4a6640;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 10px;
}
.small-button:hover {
  background: #e1e9d7;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 10px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #78866c;
}
th,
td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid #dce4d1;
}
td {
  color: #4a6042;
}
.table-property {
  font-size: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #45633d;
  padding: 0;
  max-width: 155px;
  white-space: normal;
}
.dock-footnote {
  font-size: 9px;
  color: #93a080;
  line-height: 1.8;
  margin-top: 18px;
}
.chart-item {
  margin-top: 27px;
}
.chart-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
}
.chart-item strong {
  font-weight: 500;
}
.chart-item > div span {
  font-size: 10px;
  color: #6e825d;
}
.chart-item svg {
  display: block;
  width: 100%;
  height: 12px;
}
.chart-item small {
  display: block;
  font-size: 9px;
  color: #99a58a;
  margin-top: 9px;
}
.registry-brief > small {
  display: block;
  margin: 15px 0;
}
.empty-dock {
  font-size: 12px;
  color: var(--muted);
  padding: 30px 0;
}
.profile-proposal {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 12px;
  padding: 17px 20px;
  border: 1px solid #dce4d1;
  border-radius: 7px;
  margin-top: 18px;
  font-size: 11px;
  background: #f3f6ee;
}
.profile-proposal .eyebrow {
  font-size: 8px;
  margin-bottom: 0;
}
.profile-proposal strong {
  font-size: 14px;
  font-weight: 500;
}
.profile-proposal details p {
  line-height: 1.6;
  color: #77876b;
}
.primary {
  background: var(--green);
  color: #fffefb;
  border: 1px solid var(--green);
  border-radius: 7px;
  padding: 11px 15px;
  font-size: 12px;
}
.primary:hover {
  background: #274b37;
}
.primary > span {
  margin-left: 24px;
}
dialog {
  background: var(--paper);
  color: #34482d;
  border: 1px solid #d4deca;
  border-radius: 12px;
  max-width: calc(100% - 28px);
  width: 480px;
  padding: 27px;
  box-shadow: 0 20px 100px #263f2a25;
}
dialog::backdrop {
  background: #283e2c55;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.dialog-heading h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 0;
}
dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: #7b8a70;
}
dialog code {
  font-size: 11px;
  background: #e9efdf;
  padding: 5px 7px;
  border-radius: 3px;
}
dialog details {
  margin: 20px 0;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.dialog-actions button:not(.primary) {
  border: 1px solid #d4deca;
  background: transparent;
  border-radius: 7px;
  padding: 10px;
  font-size: 10px;
  color: #768669;
}
.login-screen {
  height: 100dvh;
  display: grid;
  place-items: center;
}
.login-card {
  max-width: 350px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 18px;
}
.login-card h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 10px 0 12px;
}
.login-card label {
  font-size: 12px;
  color: #87957b;
}
.login-card input {
  width: 100%;
  padding: 13px;
  border: 1px solid #d4deca;
  border-radius: 6px;
  background: #fffefa;
}
.login-card button {
  margin-top: 8px;
}
.error-message {
  font-size: 11px;
  line-height: 1.6;
}
.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 (min-width: 1600px) {
  .shell.dock-open {
    grid-template-columns: 224px minmax(400px, 1fr) minmax(440px, 540px);
  }
}
@media (max-width: 1100px) {
  .conversation-scroll {
    padding: 25px 25px;
  }
  .composer-zone {
    padding: 12px 25px 18px;
  }
  .welcome h1 {
    font-size: 31px;
  }
  .dock-header {
    padding: 26px 20px 20px;
  }
  .dock-meta {
    padding-inline: 20px;
  }
  .dock-content {
    padding-inline: 20px;
  }
  .property-title h3 {
    font-size: 21px;
  }
  .brief-facts dd {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .shell,
  .shell.dock-open {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .conversation-header {
    height: 60px;
    min-height: 60px;
    padding: 0 21px;
  }
  .conversation-scroll {
    padding: 18px 22px;
  }
  .welcome {
    margin-top: 8vh;
  }
  .welcome h1 {
    font-size: 31px;
  }
  .suggestions {
    flex-direction: column;
    align-items: start;
  }
  .suggestions button {
    font-size: 12px;
    max-width: 100%;
    min-width: 230px;
    justify-content: space-between;
  }
  .composer-zone {
    padding: 10px 17px 14px;
  }
  .composer-footnote {
    font-size: 8px;
  }
  .composer-bottom > span {
    font-size: 8px;
  }
  .widget-action {
    font-size: 9px;
  }
  .user-message {
    max-width: 92%;
    font-size: 13px;
  }
  .assistant-text {
    font-size: 13px;
  }
  .assistant-message {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
  }
  .results-dock {
    position: fixed;
    right: 0;
    top: 0;
    width: min(100%, 460px);
    z-index: 5;
    box-shadow: -20px 0 80px #29462e20;
  }
  .dock-header {
    padding: 23px;
  }
  .dock-content {
    padding-inline: 23px;
  }
  .shell.dock-open .conversation {
    pointer-events: none;
  }
  .shell.dock-open .results-dock {
    pointer-events: auto;
  }
  #open-dock {
    font-size: 11px;
  }
  .brief-facts dd {
    font-size: 19px;
  }
  .conversation-header:before {
    content: "landsnag";
    font-size: 18px;
    color: #3d5940;
    font-weight: 600;
    letter-spacing: -0.8px;
  }
  .conversation-header > span {
    display: none;
  }
  .thinking {
    padding-left: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.mobile-only {
  display: none;
}
@media (max-width: 760px) {
  .mobile-only {
    display: inline-flex;
  }
}

.model-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 45px);
}
.model-controls select {
  border: 0;
  background: transparent;
  color: #7a876f;
  font: inherit;
  font-size: 10px;
  max-width: 210px;
  min-width: 0;
  padding: 5px 18px 5px 0;
  cursor: pointer;
}
.model-controls select:disabled {
  opacity: 0.55;
  cursor: default;
}
.model-controls #chat-effort {
  max-width: 115px;
  font-size: 9px;
}
.send-button.is-stop {
  font-size: 12px;
  background: #6e785e;
}
.activity {
  margin-top: 13px;
  color: #7b8970;
}
.activity > summary {
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.activity-items {
  border-left: 1px solid #dfe6d6;
  margin: 12px 0 0 3px;
  padding: 0 0 0 14px;
}
.activity-items > details {
  margin: 13px 0;
}
.activity-items summary {
  font-size: 10px;
}
.activity-items summary span {
  color: #a0a990;
  font-size: 9px;
  margin-left: 7px;
}
.activity-items pre {
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
  color: #7e8b72;
  line-height: 1.65;
  background: #f0f3eb;
  padding: 10px;
  border-radius: 4px;
}
.activity-items p,
.thinking-text {
  font-size: 11px;
  line-height: 1.75;
  color: #8b967e;
}
.thinking-text {
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply-model,
.stopped-label {
  display: block;
  font-size: 9px;
  color: #a2ab96;
  margin-top: 13px;
}
.stopped-label {
  color: #8d8266;
}
@media (max-width: 760px) {
  .model-controls select {
    max-width: 155px;
    font-size: 9px;
  }
  .model-controls #chat-effort {
    max-width: 90px;
    font-size: 9px;
  }
}

/* Property photos in conversation and the results dock. */
.assistant-message > div {
  min-width: 0;
}
.chat-property-preview {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  margin: 12px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}
.chat-photo-strip {
  display: flex;
  gap: 6px;
}
.chat-photo-thumb {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc((100% - 12px) / 3);
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #e8ede6;
}
.chat-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-photo-thumb .photo-failure {
  padding: 6px;
  font-size: 11px;
}
.chat-property-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px 0;
}
.chat-property-caption > div {
  flex: 1;
  min-width: 0;
}
.chat-property-caption strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat-property-caption small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.chat-property-open {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--green);
  font-size: 19px;
}
.chat-property-open:hover {
  background: #eef2e8;
}

.property-gallery {
  margin-bottom: 16px;
}
.photo-enlarge {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e8ede6;
}
.photo-enlarge img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo-expand-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  background: #1c2c23cc;
  font-size: 11px;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photo-controls button {
  min-width: 44px;
  min-height: 44px;
}
.photo-controls small {
  color: var(--muted, #677365);
}
.photo-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  padding: 16px;
}
.photo-dialog h2 {
  font-size: 16px;
}
.photo-stage {
  background: #e8ede6;
  border-radius: 6px;
  overflow: hidden;
}
.photo-stage img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}
.photo-failure {
  display: none;
  padding: 32px 16px;
  font-size: 13px;
}
.photo-unavailable > img {
  display: none;
}
.photo-unavailable > .photo-failure {
  display: block;
}

.research-section {
  margin: 24px 0;
}
.research-section h3 {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}
.research-section h3 span {
  color: var(--muted);
  margin-left: 6px;
}
.research-section ul {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
}
.research-section li {
  margin-bottom: 8px;
}
.research-finding {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.research-finding strong,
.research-finding small {
  display: block;
}
.research-finding small {
  margin-top: 4px;
  color: var(--muted);
}
.research-finding p,
.research-finding blockquote {
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.research-finding blockquote {
  margin-left: 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.research-finding summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
.research-place-note {
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.research-place-note p {
  white-space: pre-wrap;
  line-height: 1.6;
}
.research-property {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#place-form {
  display: grid;
  gap: 10px;
}
#place-form label {
  font-size: 12px;
}
#place-form input {
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
}

/* Conversation navigation */
.shell {
  grid-template-columns: 260px minmax(0, 1fr);
}
.shell.dock-open {
  grid-template-columns: 260px minmax(330px, 1fr) minmax(380px, 460px);
}
.shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.shell.sidebar-collapsed.dock-open {
  grid-template-columns: minmax(330px, 1fr) minmax(380px, 460px);
}
.shell.sidebar-collapsed .sidebar {
  display: none;
}
.sidebar {
  min-width: 0;
  height: 100dvh;
  padding: 22px 12px 18px;
  gap: 18px;
  overflow: hidden;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-heading .brand {
  font-size: 22px;
  padding-left: 7px;
}
.sidebar-heading .icon-button {
  width: 32px;
  height: 32px;
}
.sidebar-actions {
  display: grid;
  gap: 4px;
}
.sidebar-action {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  color: #53624e;
  font-size: 12px;
}
.sidebar-action:hover {
  background: #e5eadf;
}
.sidebar-action span {
  width: 18px;
  font-size: 17px;
}
.sidebar .workspace-links {
  gap: 2px;
}
.sidebar .workspace-links a {
  padding: 8px 10px;
  font-size: 11px;
}
.thread-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: transparent;
  font: inherit;
  font-size: 11px;
  color: inherit;
}
.sidebar .thread-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: block;
  margin-top: -5px;
  scrollbar-width: thin;
}
.thread-group {
  margin: 0 0 22px;
}
.thread-group h2,
.archived-threads > summary {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 500;
}
.thread-row {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 7px;
  margin: 2px 0;
}
.thread-row:hover,
.thread-row.active {
  background: #e2e8db;
}
.thread-link {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 10px;
  color: #52604b;
  text-align: left;
  font-size: 12px;
}
.thread-link > span:first-child {
  width: 14px;
  flex-shrink: 0;
  color: #829176;
}
.thread-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-link[aria-current] {
  color: #304d36;
  font-weight: 550;
}
.thread-menu {
  position: relative;
  flex-shrink: 0;
  margin-right: 4px;
}
.thread-menu > summary {
  list-style: none;
  width: 27px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #77846e;
  border-radius: 5px;
}
.thread-menu > summary::-webkit-details-marker {
  display: none;
}
.thread-menu > summary:hover {
  background: #d4ddcd;
}
.thread-menu[open] {
  z-index: 3;
}
.thread-menu-items {
  position: absolute;
  right: 0;
  top: 30px;
  width: 130px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 6px 20px #24332218;
}
.thread-menu-items button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  font-size: 12px;
}
.thread-menu-items button:hover {
  background: #e8eddf;
}
.archived-threads > summary {
  cursor: pointer;
  padding: 8px 10px;
}
.archived-threads > summary span {
  margin-left: 5px;
}
.no-threads {
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom {
  flex-shrink: 0;
  gap: 14px;
  margin-top: 0;
  padding: 10px 10px 0;
  border-top: 1px solid var(--line);
}
.sidebar-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7b8a70;
}
.sidebar-toggle:hover {
  background: #ecf0e6;
}
#conversation-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  color: #7b8573;
}
.sidebar-backdrop {
  display: none;
}
#rename-form {
  display: grid;
  gap: 12px;
}
#thread-name {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}
@media (max-width: 1100px) {
  .shell.dock-open {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .shell.sidebar-collapsed.dock-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .results-dock {
    position: fixed;
    right: 0;
    top: 0;
    width: min(460px, 100%);
    z-index: 5;
    box-shadow: -20px 0 80px #29462e20;
  }
}
@media (max-width: 760px) {
  .shell,
  .shell.dock-open,
  .shell.sidebar-collapsed,
  .shell.sidebar-collapsed.dock-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar,
  .shell.sidebar-collapsed .sidebar {
    display: none;
  }
  .shell.sidebar-mobile-open .sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: min(290px, 85vw);
    z-index: 21;
    box-shadow: 10px 0 40px #24332228;
  }
  .shell.sidebar-mobile-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #26342940;
    z-index: 20;
  }
  .conversation-header:before {
    content: none;
  }
  .conversation-header {
    padding-inline: 14px;
    gap: 5px;
  }
  #conversation-title {
    font-size: 12px;
    padding-inline: 6px;
  }
}

.attach-button {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #76876a;
  font-size: 22px;
}
.attach-button:hover {
  background: #edf1e7;
}
.composer-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 0 12px;
  align-items: center;
}
.attachment-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 240px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.attachment-chip img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
}
.attachment-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-chip button {
  flex-shrink: 0;
  padding: 4px;
  font-size: 16px;
}
.composer.dragging-files {
  outline: 2px dashed #81996e;
  outline-offset: 4px;
}
.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  white-space: normal;
}
.sent-attachment {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 160px;
  font-size: 11px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sent-attachment img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 760px) {
  .composer-bottom {
    gap: 6px;
  }
  .model-controls {
    min-width: 0;
    flex: 1;
  }
  .model-controls select {
    max-width: 100%;
  }
}

.property-feedback {
  margin: 14px 0;
  font-size: 12px;
}
.property-feedback summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
}
.property-feedback p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.browser-capture { margin: 18px 0; font-size: 13px; overflow-wrap: anywhere; }
.browser-capture summary { cursor: pointer; color: var(--muted); }

.listing-history { margin: 18px 0; font-size: 12px; }
.listing-history summary { cursor: pointer; }
.listing-history ol { padding: 0; list-style: none; }
.listing-history li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid #dce1d5; overflow-wrap: anywhere; }
.listing-history time { font-size: 11px; }
.listing-history small { text-align: right; opacity: .75; }
.listing-status { text-transform: capitalize; font-size: 12px; }
.property-check { margin-top: 8px; display: block; }

/* Saved-land geography stays inside the existing results dock. */
@media (min-width: 1101px) {
  .shell.dock-open.map-open { grid-template-columns: 260px minmax(330px,1fr) minmax(460px,620px); }
  .shell.sidebar-collapsed.dock-open.map-open { grid-template-columns: minmax(330px,1fr) minmax(460px,620px); }
}
@media (max-width: 1100px) { .shell.map-open .results-dock { width: min(620px,100%); } }
.saved-map-view { min-width: 0; }
.map-place-form { display: flex; gap: 8px; }
.map-place-form input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 12px; }
.map-place-form button { flex-shrink: 0; }
.map-place-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.map-place-choices:empty { display: none; }
.map-notice { font-size: 12px; color: #78603d; }
.map-filters { display: flex; gap: 5px; margin: 14px 0 8px; }
.map-filters button { padding: 6px 10px; border-radius: 5px; }
.map-filters button[aria-pressed="true"] { background: #e2e9da; color: #2d513b; font-weight: 600; }
.map-profile-filter { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 11px; color: var(--muted); }
.saved-map-canvas { height: clamp(280px,42vh,460px); width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #e4e8df; isolation: isolate; }
.saved-map-canvas button { color: #294b36; }
.saved-map-canvas .leaflet-control-attribution { font-size: 10px; background: #fffE; }
.saved-map-canvas .leaflet-control-attribution a { color: #355b45; }
.map-basemap-note, .map-footnote { font-size: 10px; line-height: 1.5; color: var(--muted); }
.map-area-pin { background: #fff; border: 2px solid #355b45; border-radius: 50%; color: #244b36; font-size: 23px; line-height: 23px; text-align: center; box-shadow: 0 2px 6px #233a2830; }
.map-area-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.map-area-controls strong, .map-area-controls small { display: block; overflow-wrap: anywhere; }
.map-area-controls strong { font-size: 13px; }
.map-area-controls small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.map-area-controls label { font-size: 11px; white-space: nowrap; }
#map-radius { width: 65px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.map-area-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.map-result-count { font-size: 12px; line-height: 1.6; }
.map-saved-property { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; text-align: left; }
.map-saved-property strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.map-saved-property small { display: block; font-size: 11px; margin-top: 5px; color: var(--muted); }
.map-property-popup { min-width: 180px; max-width: 260px; font-family: inherit; }
.map-property-popup strong { display: block; overflow-wrap: anywhere; }
.map-property-popup p { margin: 7px 0; }
.map-property-popup small { display: block; margin-bottom: 10px; }
.map-property-popup button { display: block; }
@media (max-width: 500px) { .saved-map-canvas { height: 310px; } .map-area-controls { align-items: flex-start; } }
