:root {
  color-scheme: light;
  --forest: #143d35;
  --forest-deep: #0c2924;
  --forest-soft: #e7f0ec;
  --coral: #d96e53;
  --coral-dark: #b84f38;
  --sand: #f4efe5;
  --paper: #fbfaf7;
  --ink: #1d2925;
  --muted: #6d7974;
  --line: #dfe5e0;
  --white: #fff;
  --shadow: 0 22px 60px rgba(18, 48, 41, .14);
  --radius-lg: 24px;
  --radius: 15px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.auth-screen {
  min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(217,110,83,.23), transparent 26%),
    radial-gradient(circle at 84% 90%, rgba(95,145,123,.3), transparent 32%),
    linear-gradient(145deg, #0b2c27, #174d41 58%, #0e352e);
}
.auth-screen::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(30deg, #fff 1px, transparent 1px), linear-gradient(120deg, #fff 1px, transparent 1px);
  background-size: 52px 52px;
}
.auth-card {
  position: relative; width: min(520px, 100%); padding: 48px; background: rgba(251,250,247,.97);
  border: 1px solid rgba(255,255,255,.55); border-radius: 30px; box-shadow: 0 30px 100px rgba(3,22,18,.38);
}
.auth-card h1 { margin: 10px 0 12px; font: 500 38px/1.12 Georgia, serif; letter-spacing: -.03em; }
.auth-copy { color: var(--muted); line-height: 1.55; margin: 0 0 30px; }
.auth-card label { display: block; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px; }
.token-row { display: flex; gap: 10px; }
.token-row input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: white; outline: none; }
.token-row input:focus { border-color: #6d9c89; box-shadow: 0 0 0 3px rgba(109,156,137,.15); }
.primary-button { border: 0; border-radius: 12px; padding: 0 20px; color: white; background: var(--coral); font-weight: 700; }
.primary-button:hover { background: var(--coral-dark); }
.form-error { min-height: 20px; color: #a93d2b; font-size: 13px; }
.privacy-note { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }

.app-shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: var(--forest-deep); color: white; padding: 25px 18px 18px; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 8px 28px; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.brand span { display: block; color: #9db8ae; font-size: 11px; margin-top: 2px; letter-spacing: .05em; }
.brand-mark { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: white; box-shadow: 0 8px 20px rgba(217,110,83,.28); }
.brand-mark.large { width: 48px; height: 48px; font-size: 22px; }
.new-chat { width: 100%; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: white; background: rgba(255,255,255,.07); padding: 12px; text-align: left; font-weight: 650; }
.new-chat:hover { background: rgba(255,255,255,.12); }
.new-chat span { color: #ef9b85; margin-right: 7px; }
.side-nav { margin-top: 24px; display: grid; gap: 6px; }
.nav-item { border: 0; background: transparent; color: #a9c0b7; border-radius: 10px; padding: 11px 12px; text-align: left; }
.nav-item span { display: inline-block; width: 24px; color: #7f9f92; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.09); }
.sidebar-spacer { flex: 1; }
.service-card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); border-radius: 12px; padding: 13px; margin-bottom: 8px; }
.service-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.service-card > span { display: block; color: #8fa99f; font-size: 10px; margin: 7px 0 0 18px; overflow: hidden; text-overflow: ellipsis; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5ec28d; box-shadow: 0 0 0 4px rgba(94,194,141,.12); }
.status-dot.offline { background: #d96e53; box-shadow: 0 0 0 4px rgba(217,110,83,.13); }
.quiet-button { border: 0; background: transparent; color: #8fa99f; padding: 10px; text-align: left; font-size: 12px; }
.quiet-button:hover { color: white; }

.main-column { min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.topbar { min-height: 93px; padding: 21px 30px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(251,250,247,.94); }
.eyebrow { margin: 0; color: #8b756b; letter-spacing: .13em; font-size: 9px; font-weight: 800; }
.topbar h1 { margin: 5px 0 0; font: 500 25px/1.1 Georgia, serif; letter-spacing: -.015em; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: white; color: var(--forest); font-size: 18px; }
.icon-button:hover { background: var(--forest-soft); }
.live-pill { display: flex; align-items: center; gap: 8px; border: 1px solid #cfe0d8; color: #356856; background: #edf6f2; border-radius: 20px; padding: 8px 12px; font-size: 11px; font-weight: 750; }

.workspace-view { min-height: 0; flex: 1; }
.chat-wrap { overflow: hidden; display: flex; flex-direction: column; }
.content-view { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.content-inner { width: min(1180px, 100%); min-height: 100%; margin: 0 auto; padding: 38px clamp(24px, 5vw, 64px) 52px; }
.view-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.view-heading h2 { margin: 5px 0 8px; font: 500 30px/1.15 Georgia, serif; letter-spacing: -.02em; }
.view-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.content-section { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); }
.discovery-grid { display: block; }
#view-discoveries .discovery-grid { width: 100%; max-width: none; margin: 0; padding: 16px 18px 24px; display: flex; }
#view-discoveries .properties-section { width: 100%; flex: 1; padding: 18px; border-radius: 14px; }
.messages { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-gutter: stable; padding: 30px clamp(22px, 5vw, 64px) 18px; }
.message { display: flex; gap: 13px; max-width: 760px; margin: 0 auto 26px; animation: rise .22s ease-out; }
.message.user { flex-direction: row-reverse; }
.message-avatar { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: white; font-size: 13px; }
.message.user .message-avatar { background: var(--coral); }
.message-name { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.message.user .message-name { text-align: right; }
.message-body { max-width: min(88%, 650px); }
.message-text { white-space: pre-wrap; line-height: 1.62; font-size: 14px; border-radius: 4px 17px 17px 17px; background: white; border: 1px solid var(--line); padding: 14px 16px; box-shadow: 0 4px 14px rgba(31,54,47,.045); }
.message.user .message-text { color: white; background: var(--forest); border-color: var(--forest); border-radius: 17px 4px 17px 17px; }
.message.pending .message-text::after { content: ""; display: inline-block; width: 16px; height: 5px; margin-left: 8px; border-radius: 5px; background: linear-gradient(90deg, #7fa695 30%, transparent 30% 42%, #7fa695 42% 70%, transparent 70% 82%, #7fa695 82%); animation: blink 1s infinite; }
.welcome { max-width: 640px; margin: 9vh auto 0; text-align: center; }
.welcome-symbol { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--forest); font-size: 22px; }
.welcome h2 { margin: 0 0 10px; font: 500 31px/1.2 Georgia, serif; }
.welcome p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.jump-latest { align-self: center; flex: 0 0 auto; margin: 3px 0 1px; border: 1px solid #cbd8d2; border-radius: 17px; padding: 7px 12px; color: var(--forest); background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(28,57,48,.12); font-size: 10px; font-weight: 750; }
.jump-latest:hover { border-color: #8fae9f; background: white; }
.suggestions { display: flex; flex: 0 0 auto; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px clamp(22px, 5vw, 64px) 12px; scrollbar-width: none; }
.suggestions button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 18px; padding: 8px 12px; color: #52635d; background: rgba(255,255,255,.74); font-size: 11px; }
.suggestions button:hover { border-color: #9fb8ad; color: var(--forest); background: white; }
.composer { position: relative; margin: 0 clamp(22px, 5vw, 64px) 23px; border: 1px solid #cfd8d3; background: white; border-radius: 18px; box-shadow: 0 12px 35px rgba(28,57,48,.08); padding: 7px 54px 25px 8px; }
.composer:focus-within { border-color: #7da391; box-shadow: 0 12px 35px rgba(28,57,48,.11), 0 0 0 3px rgba(105,153,132,.1); }
.composer textarea { width: 100%; max-height: 160px; resize: none; border: 0; outline: 0; padding: 10px 9px; background: transparent; color: var(--ink); line-height: 1.45; }
.send-button { position: absolute; right: 10px; top: 10px; width: 37px; height: 37px; border-radius: 11px; border: 0; background: var(--coral); color: white; font-size: 20px; }
.send-button:hover { background: var(--coral-dark); }
.send-button:disabled { opacity: .45; cursor: wait; }
.composer-meta { position: absolute; left: 17px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; color: #98a09d; font-size: 9px; }

.inspector { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; background: #f6f4ef; padding: 24px 21px; }
.inspector-section { padding-bottom: 24px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.inspector-section:last-child { border: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 13px; }
.section-heading h2 { margin: 4px 0 0; font: 500 18px/1.2 Georgia, serif; }
.count-badge { min-width: 26px; height: 24px; display: grid; place-items: center; border-radius: 12px; background: var(--coral); color: white; font-size: 10px; font-weight: 800; padding: 0 7px; }
.count-badge.muted { background: #dfe7e2; color: #496259; }
.profile-list, .property-list { display: grid; gap: 14px; }
.profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-card { cursor: pointer; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(31,54,47,.045); transition: border-color .15s, box-shadow .15s; }
.profile-card:hover { border-color: #a9bdb4; box-shadow: 0 10px 28px rgba(31,54,47,.075); }
.profile-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.profile-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.version { color: #8d9994; font-size: 10px; white-space: nowrap; }
.profile-card p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.profile-tags span { border-radius: 12px; padding: 5px 9px; font-size: 10px; background: var(--forest-soft); color: #376154; }
.profile-status { border-radius: 10px; padding: 4px 7px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.profile-status.active { color: #286449; background: #e2f2e9; }
.profile-status.paused { color: #876338; background: #f6ecd8; }
.profile-status.archived { color: #6f7774; background: #e9edeb; }
.profile-card.archived { opacity: .72; }
.profile-card .version { display: flex; align-items: center; gap: 7px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.profile-actions button { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--forest); background: white; font-size: 9.5px; font-weight: 750; }
.profile-actions button:hover { border-color: #9fb8ad; background: var(--forest-soft); }
.profile-actions button.profile-results { color: white; border-color: var(--forest); background: var(--forest); }
.profile-actions button.profile-results:hover { border-color: var(--forest-deep); background: var(--forest-deep); }
.profile-actions button.danger { color: #9b4434; }
.add-profile-button { min-height: 42px; padding: 0 16px; white-space: nowrap; }
.profile-dialog { width: min(820px, calc(100% - 32px)); max-height: min(92dvh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(3,22,18,.3); }
.profile-dialog::backdrop { background: rgba(7,35,29,.58); backdrop-filter: blur(3px); }
.profile-dialog form { max-height: min(92dvh, 900px); overflow-y: auto; padding: 25px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 21px; }
.dialog-heading h2 { margin: 5px 0 0; font: 500 26px/1.15 Georgia, serif; }
.dialog-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label, .stacked-field { display: grid; gap: 6px; color: var(--ink); font-size: 10.5px; font-weight: 750; }
.form-grid label > span, .stacked-field > span { color: var(--muted); font-size: 8.5px; font-weight: 500; }
.form-grid .full-field { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .stacked-field input, .stacked-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: white; font: inherit; font-size: 11px; outline: none; }
.form-grid input:focus, .form-grid select:focus, .stacked-field input:focus, .stacked-field textarea:focus { border-color: #7da391; box-shadow: 0 0 0 3px rgba(105,153,132,.1); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; margin: 18px 0; padding: 14px; border-radius: 12px; background: var(--forest-soft); }
.checkbox-grid label { color: #376154; font-size: 10.5px; }
.checkbox-grid input { accent-color: var(--forest); }
.stacked-field { margin-top: 14px; }
.profile-review-step > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-diff { display: grid; gap: 9px; }
.diff-row { display: grid; grid-template-columns: minmax(120px, .4fr) 1fr; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.diff-row strong { font-size: 10px; }
.diff-values { display: grid; gap: 5px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.diff-values del { color: #9b4434; }
.diff-values ins { color: #286449; text-decoration: none; }
.review-warning { margin-top: 15px !important; padding: 11px 12px; border-radius: 10px; color: #79562e !important; background: #f6ecd8; }
.dialog-actions { position: sticky; bottom: -25px; display: flex; justify-content: flex-end; gap: 9px; margin: 22px -25px -25px; padding: 15px 25px; border-top: 1px solid var(--line); background: rgba(251,250,247,.97); }
.dialog-actions button { min-height: 40px; border-radius: 10px; padding: 0 15px; text-align: center; font-size: 10.5px; font-weight: 750; }
.profile-dialog .quiet-button { border: 1px solid var(--line); color: var(--forest); background: white; }
.profile-dialog .quiet-button:hover { border-color: #9fb8ad; color: var(--forest-deep); background: var(--forest-soft); }
.source-summary { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.source-details { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(31,54,47,.04); }
.source-details summary { list-style: none; cursor: pointer; padding: 14px 16px; color: var(--forest); font-size: 12px; font-weight: 750; }
.source-details summary::-webkit-details-marker { display: none; }
.source-details summary::after { content: "+"; float: right; color: var(--coral); }
.source-details[open] summary::after { content: "−"; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.source-item { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; min-width: 0; padding: 15px 16px; border-bottom: 1px solid #edf0ee; }
.source-item:nth-child(odd) { border-right: 1px solid #edf0ee; }
.source-name { min-width: 0; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 750; }
.source-name:hover { color: var(--coral-dark); text-decoration: underline; }
.source-item span { grid-column: 1 / -1; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.source-status { align-self: start; border-radius: 10px; padding: 4px 7px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.source-status.live { color: #286449; background: #e2f2e9; }
.source-status.researching { color: #876338; background: #f6ecd8; }
.source-status.manual-only { color: #56645f; background: #e9edeb; }
.source-status.blocked { color: #9b4434; background: #f8e4de; }
.property-table-shell { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(31,54,47,.04); }
.properties-table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; font-size: 10.5px; }
.properties-table thead th { position: sticky; top: 0; z-index: 1; padding: 11px 10px; text-align: left; color: var(--forest); background: #f1f6f3; border-bottom: 1px solid var(--line); font-size: 8.5px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.properties-table thead th:first-child, .properties-table tbody td:first-child { padding-left: 14px; }
.properties-table thead th:last-child, .properties-table tbody td:last-child { padding-right: 14px; }
.properties-table td, .properties-table tbody th { padding: 12px 10px; vertical-align: top; text-align: left; border-bottom: 1px solid #edf0ee; font-weight: inherit; }
.property-row:last-child td, .property-row:last-child th { border-bottom: 0; }
.property-row:hover td, .property-row:hover th { background: #fbfdfc; }
.property-row.is-favorite td, .property-row.is-favorite th { background: #fffaf2; }
.property-row.is-favorite:hover td, .property-row.is-favorite:hover th { background: #fff7e8; }
.property-row.is-hidden { opacity: .62; }
.property-title-cell { width: 30%; min-width: 280px; }
.property-title { display: block; color: var(--ink); font-size: 12px; line-height: 1.4; }
.property-labels, .property-description, .property-seen { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.property-labels { color: #587269; font-size: 8.5px; font-weight: 750; text-transform: capitalize; }
.property-description { max-width: 390px; font-size: 9.5px; }
.property-source-cell { min-width: 130px; }
.property-source { display: inline-block; border-radius: 8px; padding: 4px 7px; color: #376154; background: var(--forest-soft); font-size: 7.5px; font-weight: 800; text-transform: uppercase; }
.property-seen { font-size: 8.5px; white-space: nowrap; }
.property-price { min-width: 112px; color: var(--coral-dark); font-weight: 850; white-space: nowrap; }
.property-land { min-width: 70px; color: var(--forest); font-weight: 750; white-space: nowrap; }
.property-details { min-width: 145px; color: var(--muted); }
.property-detail { display: block; margin-bottom: 3px; white-space: nowrap; }
.property-location { min-width: 150px; line-height: 1.45; }
.property-saved-cell { width: 94px; }
.property-row-actions { min-width: 150px; }
.property-action, .property-open { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; border-radius: 9px; padding: 6px 9px; font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.property-action { border: 1px solid var(--line); color: var(--forest); background: white; }
.property-action:hover { border-color: #9fb8ad; background: var(--forest-soft); }
.property-action.favorite-action.active { border-color: #e5b95b; color: #8a6115; background: #fff2ce; }
.property-action.hide-action.active { color: var(--coral-dark); background: #f8e4de; border-color: #efc4b9; }
.property-action:disabled { opacity: .5; cursor: wait; }
.property-open { margin-right: 6px; color: white; background: var(--forest); }
.property-open:hover { background: var(--forest-deep); }
.property-action-status { min-height: 17px; margin: -5px 0 8px; color: var(--muted); font-size: 9.5px; }
.property-empty-row td { padding: 22px 14px; }
.property-action:focus-visible, .property-open:focus-visible { outline: 3px solid rgba(105,153,132,.25); outline-offset: 2px; }
.activity-grid { display: grid; gap: 22px; align-content: start; }
.schedule-summary { color: var(--ink); font-size: 14px; line-height: 1.6; }
.schedule-summary strong { color: var(--forest); }
.status-chip { border-radius: 11px; padding: 5px 9px; color: #56645f; background: #e9edeb; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-chip.enabled, .status-chip.completed, .status-chip.accepted { color: #286449; background: #e2f2e9; }
.status-chip.queued, .status-chip.running { color: #876338; background: #f6ecd8; }
.status-chip.failed, .status-chip.blocked, .status-chip.rejected, .status-chip.cancelled { color: #9b4434; background: #f8e4de; }
.status-chip.warning { color: #876338; background: #f6ecd8; }
.run-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.run-actions button { min-height: 42px; padding: 0 16px; text-align: center; border-radius: 11px; font-size: 11px; font-weight: 750; }
.run-actions .quiet-button, .section-actions .quiet-button, .pagination .quiet-button { border: 1px solid var(--line); color: var(--forest); background: white; }
.run-actions .quiet-button:hover, .section-actions .quiet-button:hover, .pagination .quiet-button:hover { border-color: #9fb8ad; color: var(--forest-deep); background: var(--forest-soft); }
.run-actions button:disabled { opacity: .55; cursor: wait; }
.muted-note { margin: 13px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.runs-list { display: grid; gap: 12px; }
.run-card { border: 1px solid var(--line); border-radius: 13px; background: white; padding: 14px; }
.run-card summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.run-card summary::-webkit-details-marker { display: none; }
.run-title { min-width: 0; flex: 1; }
.run-title strong { display: block; font-size: 12px; }
.run-title span, .run-stats { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.run-source-list { display: grid; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.run-source { display: grid; grid-template-columns: minmax(100px, .5fr) auto minmax(120px, 1fr); gap: 8px; align-items: center; font-size: 9.5px; }
.run-source-detail { color: var(--muted); overflow-wrap: anywhere; }
.listing-request-form { display: grid; gap: 7px; margin-bottom: 4px; }
.listing-request-form > label { color: var(--ink); font-size: 10.5px; font-weight: 750; }
.listing-request-form select, .listing-request-form input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: white; font: inherit; font-size: 11px; outline: none; }
.listing-request-form select:focus, .listing-request-form input:focus { border-color: #7da391; box-shadow: 0 0 0 3px rgba(105,153,132,.1); }
.listing-request-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.listing-request-row button { min-width: 120px; }
.listing-request-card { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 13px 14px; }
.listing-request-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.listing-request-link { color: var(--forest); font-size: 9.5px; overflow-wrap: anywhere; }
.listing-request-card p { margin: 0; font-size: 9.5px; }
.section-actions { display: flex; align-items: center; gap: 8px; }
.quiet-button.compact { width: auto; min-height: 30px; padding: 6px 9px; font-size: 9px; text-align: center; }
.property-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(125px, auto)); gap: 10px; margin-bottom: 14px; }
.property-toolbar input, .property-toolbar select { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: white; font: inherit; font-size: 11px; outline: none; }
.property-toolbar input:focus, .property-toolbar select:focus { border-color: #7da391; box-shadow: 0 0 0 3px rgba(105,153,132,.1); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 10px; }
.pagination button:disabled { opacity: .45; cursor: default; }
.empty-state { color: var(--muted); font-size: 10.5px; line-height: 1.5; padding: 8px 1px; }
.skeleton { position: relative; overflow: hidden; background: #e4e8e5; border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
.skeleton.block { height: 72px; }
.skeleton.line { height: 24px; }

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise { from { transform: translateY(5px); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 1050px) {
  .property-toolbar { grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(125px, auto)); }
  #property-page-size { grid-column: auto; }
}
@media (max-width: 860px) {
  body { overflow: hidden; }
  .property-toolbar { grid-template-columns: 1fr 1fr; }
  #property-page-size { grid-column: auto; }
  .app-shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; grid-template-columns: 82px minmax(0, 1fr); }
  .sidebar { height: 100vh; height: 100dvh; padding: 20px 11px; }
  .main-column { height: 100vh; height: 100dvh; }
  .content-inner { padding-inline: 26px; }
  #view-discoveries .discovery-grid { padding: 14px 14px 22px; }
  .profile-list, .source-list { grid-template-columns: 1fr; }
  .source-item:nth-child(odd) { border-right: 0; }
  .brand { justify-content: center; padding: 0 0 25px; }
  .brand > div:last-child, .new-chat:not(:hover), .nav-item { font-size: 0; }
  .new-chat { text-align: center; }
  .new-chat span { font-size: 20px; margin: 0; }
  .nav-item { text-align: center; }
  .nav-item span { font-size: 18px; width: auto; }
  .service-card { display: none; }
  .sidebar > .quiet-button { display: block; width: 42px; min-height: 42px; padding: 0; font-size: 0; text-align: center; color: #9bb1a8; }
  .sidebar > .quiet-button::before { content: "◉"; font-size: 17px; }
  .sidebar > .quiet-button:hover { color: white; }
}
@media (max-width: 600px) {
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar { height: 62px; z-index: 5; flex-direction: row; align-items: center; gap: 3px; padding: 10px 10px; }
  .main-column { height: calc(100vh - 62px); height: calc(100dvh - 62px); min-height: 0; }
  .brand { display: none; }
  .new-chat { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; margin: 0; }
  .side-nav { display: flex; flex: 0 0 auto; gap: 2px; margin: 0; }
  .nav-item { width: 40px; height: 40px; padding: 0; text-align: center; font-size: 0; }
  .nav-item span { width: auto; font-size: 17px; }
  .sidebar-spacer { flex: 1; min-width: 0; }
  .topbar { min-height: 78px; padding: 17px 18px; }
  .topbar h1 { font-size: 20px; }
  .live-pill { display: none; }
  .messages { min-height: 0; padding: 22px 15px 12px; }
  .message-body { max-width: 90%; }
  .jump-latest { margin-top: 2px; }
  .suggestions { padding: 7px 15px 10px; }
  .composer { margin: 0 14px calc(12px + env(safe-area-inset-bottom)); }
  .composer-meta span:first-child { display: none; }
  .composer-meta { justify-content: flex-end; }
  .content-inner { padding: 24px 16px 36px; }
  #view-discoveries .discovery-grid { padding: 10px 8px 20px; }
  #view-discoveries .properties-section { padding: 14px 10px; border-radius: 12px; }
  .view-heading { margin-bottom: 18px; }
  .view-heading h2 { font-size: 25px; }
  .content-section { padding: 17px; }
  .view-heading { flex-direction: column; }
  .add-profile-button { width: 100%; }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .form-grid .full-field { grid-column: auto; }
  .profile-dialog { width: calc(100% - 18px); max-height: 94dvh; border-radius: 17px; }
  .profile-dialog form { max-height: 94dvh; padding: 18px; }
  .dialog-actions { bottom: -18px; margin: 20px -18px -18px; padding: 13px 18px; }
  .diff-row { grid-template-columns: 1fr; }
  .property-toolbar { grid-template-columns: 1fr; }
  .property-table-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .properties-table { display: block; min-width: 0; }
  .properties-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .properties-table tbody { display: grid; gap: 12px; }
  .property-row { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 7px 19px rgba(31,54,47,.04); }
  .properties-table .property-row td, .properties-table .property-row th { min-width: 0; padding: 10px 12px; border: 0; background: transparent; }
  .property-row:hover td, .property-row:hover th, .property-row.is-favorite td, .property-row.is-favorite th { background: transparent; }
  .property-title-cell { grid-column: 1 / -1; grid-row: 1; width: auto; border-bottom: 1px solid #edf0ee !important; }
  .property-saved-cell { grid-column: 1; grid-row: 2; width: auto; }
  .property-price { grid-column: 2; grid-row: 2; min-width: 0; }
  .property-source-cell { grid-column: 1; grid-row: 3; min-width: 0; }
  .property-land { grid-column: 2; grid-row: 3; min-width: 0; }
  .property-details { grid-column: 1 / -1; grid-row: 4; min-width: 0; }
  .property-location { grid-column: 1 / -1; grid-row: 5; min-width: 0; }
  .property-row-actions { grid-column: 1 / -1; grid-row: 6; min-width: 0; padding-top: 4px !important; border-top: 1px solid #edf0ee !important; }
  .property-row td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 7.5px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
  .property-description { max-width: none; }
  .property-detail { display: inline; white-space: normal; }
  .property-detail:not(:last-child)::after { content: " · "; }
  .property-empty-row { display: block; border: 1px solid var(--line); border-radius: 13px; background: white; }
  .property-empty-row td { display: block; }
  .run-source { grid-template-columns: 1fr auto; }
  .run-source-detail { grid-column: 1 / -1; }
  .run-actions { display: grid; }
  .run-actions button { width: 100%; }
  .listing-request-row { grid-template-columns: 1fr; }
  .listing-request-row button { width: 100%; }
  .auth-card { padding: 32px 24px; }
  .auth-card h1 { font-size: 31px; }
  .token-row { display: grid; }
  .primary-button { min-height: 46px; }
}
