@font-face { font-family: Spline Sans; src: url("/assets/spline-sans-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Cooper; src: url("/assets/cooper-medium.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  color: #1d302a;
  background: #f4f6f1;
  font: 400 16px/1.48 "Spline Sans", system-ui, sans-serif;
  --ink: #1d302a;
  --muted: #54665e;
  --forest: #183a32;
  --green: #215d49;
  --line: #dde5dd;
  --mint: #dff5e9;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input, textarea { font: inherit; color: inherit; }
:is(button, select) { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible, .history:focus-visible { outline: 2px solid #27775a; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { display: inline-block; flex-shrink: 0; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 0 max(24px, calc((100vw - 1380px) / 2)); min-height: 64px; background: var(--forest); color: #f4fff9; }
.brand { display: flex; gap: 9px; align-items: center; font-size: 1.35rem; font-weight: 650; letter-spacing: -.04em; }
.brand img { background: #aaffd4; border-radius: 10px; padding: 5px; }
.topbar-title { border-left: 1px solid #719088; padding-left: 18px; color: #d5e5de; font-size: .9rem; }
.demo-label { margin-left: auto; background: #2c4c42; color: #cdf9e3; border: 1px solid #658478; border-radius: 100px; padding: 5px 11px; font-size: .81rem; font-weight: 550; white-space: nowrap; }
.shell { width: min(calc(100% - 48px), 1380px); margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 29px 0 21px; }
h1 { font: 400 clamp(2.4rem, 4.5vw, 3.5rem)/1.04 Cooper, Georgia, serif; letter-spacing: -.052em; }
.page-heading p { margin-top: 5px; color: var(--muted); }
.quiet { display: inline-flex; justify-content: center; align-items: center; gap: 4px; min-height: 40px; padding: 6px 12px; border: 1px solid #c7d5cb; border-radius: 8px; background: #fff; color: var(--green); font-weight: 550; white-space: nowrap; font-size: .85rem; }
.quiet:hover { background: var(--mint); }
.workspace { display: grid; grid-template-columns: minmax(290px, 1.16fr) minmax(390px, 2.1fr) minmax(222px, .92fr); border: 1px solid #d3e0d6; border-radius: 16px; overflow: clip; background: white; box-shadow: 0 10px 36px #172f2010; }
.queue, .thread, .context { min-width: 0; }
.queue { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fcfdfa; }
.queue-head { padding: 16px 14px 0; }
.queue-head label, .composer label { display: block; font-size: .875rem; font-weight: 630; margin-bottom: 5px; }
select, input, textarea { min-height: 41px; background: #fff; border: 1px solid #cbd9ce; border-radius: 8px; padding: 7px 10px; font-size: .875rem; }
#property-filter { width: 100%; font-weight: 550; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 9px; }
.search-row input { min-width: 0; width: 100%; }
.search-row select { max-width: 117px; }
.tabs { display: grid; grid-template-columns: .65fr 1fr 1.1fr 1.15fr; gap: 5px; margin-top: 12px; padding-bottom: 13px; }
.tabs button { border: 1px solid transparent; min-height: 37px; padding: 2px 3px; border-radius: 8px; color: var(--muted); background: transparent; font-size: .83rem; font-weight: 590; }
.tabs button:hover { background: #eef4ee; }
.tabs [aria-pressed="true"] { background: var(--mint); color: #22543e; border-color: #cce8d8; }
.queue-label { padding: 9px 15px; border-block: 1px solid var(--line); color: var(--muted); background: #f3f6f0; font-size: .82rem; }
.threads { padding: 7px; }
.queue-item { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 8px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; }
.queue-item:hover { background: #f1f5ef; }
.queue-item.selected { background: #e7f3ea; border-color: #d3e7d9; }
.avatar, .property-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; font-size: .86rem; font-weight: 650; }
.cala { background: #d5efe7; color: #235d4c; }
.palm { background: #f0eadb; color: #795b2b; }
.queue-summary { display: grid; gap: 2px; min-width: 0; }
.name-row { display: flex; align-items: baseline; gap: 4px; justify-content: space-between; }
time, .queue-meta { color: var(--muted); font-size: .76rem; }
.name-row time { white-space: nowrap; }
.preview { color: var(--muted); font-size: .85rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-meta { display: flex; align-items: center; gap: 9px; }
.queue-meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.queue-meta svg { width: 13px; height: 13px; }
.dot { margin-left: auto; height: 8px; width: 8px; border-radius: 50%; flex: none; }
.dot.open { background: #248761; }
.dot.waiting { background: #aa761f; }
.dot.resolved { background: #74847d; }
.empty-list { color: var(--muted); padding: 18px; }
.thread { display: flex; flex-direction: column; }
.thread-head { display: flex; align-items: center; gap: 11px; min-height: 74px; padding: 13px clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.thread-head h2, .property-card h2 { font-weight: 680; font-size: 1.08rem; line-height: 1.2; }
.thread-identity p, .property-card p { margin-top: 4px; font-size: .825rem; color: var(--muted); }
.thread-identity { flex: 1; min-width: 0; }
#thread-status { margin-left: auto; min-width: 96px; font-weight: 600; }
#thread-status.open { color: #1f6849; background: #e6f6ec; border-color: #c6e0d0; }
#thread-status.waiting { color: #6c4f22; background: #fbf2dc; border-color: #e4d8be; }
#thread-status.resolved { color: #46594f; background: #f0f3ee; }
.mobile-back, .mobile-guide { display: none; }
.history { flex: 1; min-height: 270px; max-height: 56vh; overflow: auto; padding: 17px clamp(14px, 2vw, 24px) 24px; background: #fcfdfa; }
.date-separator { display: table; margin: 0 auto 15px; color: var(--muted); font-size: .78rem; background: #eef2ed; border-radius: 30px; padding: 4px 10px; }
.history ol { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; gap: 14px; }
.message { align-self: flex-start; width: fit-content; max-width: 86%; }
.message.team { align-self: flex-end; }
.message-author { display: flex; gap: 9px; align-items: center; margin: 0 4px 3px; color: var(--muted); font-size: .81rem; font-weight: 560; }
.message.team .message-author { justify-content: flex-end; }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 13px; border: 1px solid #e0e6de; border-radius: 4px 13px 13px 13px; background: #fff; font-size: .94rem; }
.message.team p { border-color: #d3e9db; border-radius: 13px 4px 13px 13px; background: var(--mint); }
.composer { padding: 14px clamp(14px, 2vw, 24px) 17px; border-top: 1px solid var(--line); }
.composer textarea { display: block; resize: vertical; width: 100%; min-height: 83px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.composer-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 11px; border-radius: 8px; font-size: .85rem; font-weight: 630; }
.draft-button { color: #235b45; border: 1px solid #b9d9c7; background: #e9f6ee; }
.draft-button:hover:not(:disabled) { background: #d6f0e1; }
.draft-button:disabled { opacity: .72; }
.send-button { margin-left: auto; color: #fff; background: var(--forest); border: 1px solid var(--forest); }
.send-button:hover:not(:disabled) { background: #245847; }
.send-button:disabled { background: #eef3ee; border-color: #dce6dd; color: #5e7065; }
.draft-source { margin-top: 6px; color: var(--green); font-size: .8rem; }
.context { border-left: 1px solid var(--line); background: #f7f9f4; padding: 18px 15px; }
.property-card { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.property-card .property-icon { flex: none; }
.guide-heading { margin: 14px 0 9px; display: flex; gap: 7px; align-items: center; color: var(--green); }
.guide-heading h3 { font-size: .92rem; }
.guide-list { display: grid; gap: 8px; }
.guide-list > div { padding: 9px 10px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.guide-list > .relevant { background: #e6f3eb; border-color: #c8e1d0; }
.guide-list dt { font-size: .85rem; font-weight: 660; }
.guide-list dd { margin-top: 3px; font-size: .82rem; line-height: 1.42; color: var(--muted); }
.footnote { margin: 12px 0 18px; font-size: .82rem; color: var(--muted); }
@media (min-width: 681px) {
  .workspace { height: min(680px, calc(100dvh - 230px)); min-height: 535px; }
  .queue, .thread { min-height: 0; }
  .threads, .context { overflow-y: auto; }
  .queue-head, .queue-label, .thread-head, .mobile-guide, .composer { flex-shrink: 0; }
  .history { min-height: 0; max-height: none; }
}
@media (max-width: 1020px) {
  .workspace { grid-template-columns: minmax(275px, .8fr) minmax(0, 1.5fr); }
  .context { display: none; }
  .mobile-guide { display: block; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #f5f9f4; color: var(--green); font-size: .87rem; }
  .mobile-guide summary { cursor: pointer; font-weight: 600; }
  .mobile-guide .property-card { display: none; }
  .mobile-guide[open] { padding-bottom: 14px; }
}
@media (max-width: 680px) {
  .topbar { min-height: 60px; padding-inline: 12px; }
  .topbar-title { display: none; }
  .shell { width: calc(100% - 24px); }
  .page-heading { padding: 19px 0 15px; align-items: start; }
  .page-heading p { font-size: .89rem; }
  .workspace { display: block; min-height: 0; }
  .queue { border: 0; }
  .thread { display: none; }
  .show-thread .thread { display: flex; }
  .show-thread .queue { display: none; }
  .mobile-back { display: inline-flex; padding-inline: 5px 8px; }
  .mobile-back svg { width: 13px; }
  .thread-head { gap: 7px; padding-inline: 9px; }
  #thread-status { min-width: 0; max-width: 86px; padding-inline: 4px; }
  .thread-identity h2 { font-size: .98rem; }
  .thread-head > .avatar { display: none; }
  .history { min-height: 235px; }
}
