:root {
  color-scheme: light;
  --ink: #172c25;
  --forest: #153e32;
  --deep: #0f3026;
  --subtle: #5a6861;
  --line: #dde4dd;
  --white: #fff;
  --paper: #f9faf7;
  --sage: #e9efe7;
  --lime: #d4e7aa;
  --shell: min(1264px, calc(100% - 88px));
  --radius: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font: 400 15px/1.55 "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #38735a; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.038em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.72rem, 3.1vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 700; }
svg { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid #77a882; outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { background: #fff; position: relative; z-index: 10; border-bottom: 1px solid #edf0ec; }
.nav { display: flex; align-items: center; gap: 30px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 10px; font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.075em; }
.brand small { display: block; font-size: .54rem; font-weight: 800; letter-spacing: .20em; margin-top: 5px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--lime); background: var(--forest); }
.desktop-nav, .nav-actions { display: flex; align-items: center; gap: clamp(15px, 2vw, 28px); white-space: nowrap; font-weight: 600; }
.desktop-nav { margin-inline: auto; }
.nav-actions { gap: clamp(12px, 1.6vw, 23px); }
.dropdown { position: relative; }
.dropdown summary { display: flex; align-items: center; gap: 6px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.dropdown > div { z-index: 3; position: absolute; right: 0; top: calc(100% + 14px); min-width: 195px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 7px; box-shadow: 0 10px 40px #17382a22; }
.dropdown > div a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 7px; }
.dropdown > div a:hover { background: var(--sage); }
.mobile-nav { display: none; margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--forest); border: 1px solid transparent; border-radius: 9px; min-height: 44px; padding: 9px 17px; font-weight: 700; text-align: center; transition: background .18s ease, color .18s ease; }
.button:hover { color: white; background: #28624e; }
.button.secondary { color: var(--forest); background: white; border-color: #cdd9ce; }
.button.secondary:hover { background: var(--sage); }
.button.danger { background: #96362d; }
.nav-cta { font-size: .91rem; }
.hero { position: relative; isolation: isolate; background: #243c2d; color: white; }
.hero-image { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 57% 58%; inset: 0; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b2117ed 0%, #12291dbd 30%, #10271932 70%, #10271908 100%), linear-gradient(0deg, #0b1f1688, transparent 42%); }
.hero-inner { padding-top: 92px; padding-bottom: 54px; }
.hero-copy { max-width: 670px; }
.eyebrow { color: #e2f1c7; display: flex; align-items: center; gap: 9px; letter-spacing: .14em; font-size: .71rem; font-weight: 800; margin-bottom: 24px; }
.eyebrow i { background: var(--lime); width: 8px; height: 8px; border-radius: 50%; }
.hero h1 { font-size: clamp(3.55rem, 6.5vw, 6.4rem); line-height: .95; font-weight: 700; letter-spacing: -.067em; }
.hero h1 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: #dfedc0; letter-spacing: -.035em; }
.hero-description { color: #f0f3eb; font-size: clamp(1.02rem, 1.7vw, 1.24rem); margin-top: 24px; max-width: 445px; }
.hero-search { max-width: 995px; margin-top: 38px; background: white; color: var(--ink); border-radius: 14px; padding: 0 15px 15px; box-shadow: 0 13px 42px #081e1a35; }
.search-tabs { display: flex; gap: 8px; align-items: center; margin-inline: -15px; padding: 0 15px; border-bottom: 1px solid #e9ede7; }
.search-tabs label { position: relative; cursor: pointer; display: block; }
.search-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.search-tabs span { display: block; min-width: 65px; text-align: center; padding: 12px 14px 10px; font-weight: 700; color: #54665c; border-bottom: 2px solid transparent; }
.search-tabs input:checked + span { border-color: var(--forest); color: var(--forest); }
.search-tabs input:focus-visible + span { outline: 2px solid #77a882; outline-offset: -2px; }
.search-fields { padding-top: 14px; display: grid; grid-template-columns: 1.4fr 1fr 1.05fr auto; align-items: end; gap: 12px; }
label { min-width: 0; }
label > span:first-child { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
input:not([type=checkbox], [type=radio], [type=hidden]), select, textarea { display: block; background: white; color: var(--ink); border: 1px solid #dce4dc; border-radius: 8px; min-height: 44px; width: 100%; padding: 9px 11px; }
input:disabled, select:disabled { background: #f0f3ee; opacity: 1; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #64746b; }
.location-input { display: flex; align-items: center; gap: 8px; border: 1px solid #dce4dc; border-radius: 8px; padding-left: 11px; color: #577062; }
.location-input input:not([type=checkbox], [type=radio]) { border: 0; min-height: 42px; padding-left: 0; }
.market-strip { border-bottom: 1px solid var(--line); background: #f6f8f3; }
.market-inner { min-height: 87px; display: grid; grid-template-columns: 1.25fr repeat(5, 1fr); align-items: center; gap: 16px; }
.market-inner > div > span { color: #4c6256; font-size: .70rem; font-weight: 800; letter-spacing: .12em; }
.market-inner a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 6px; border-radius: 7px; font-weight: 700; white-space: nowrap; }
.market-inner a:hover { background: #e8eee4; }
.market-inner svg { color: #648073; }
.flag { display: inline-block; width: 21px; height: 15px; border-radius: 3px; border: 1px solid #172c2525; flex: none; overflow: hidden; position: relative; }
.flag-kenya { background: linear-gradient(#181717 0 28%,white 28% 34%,#bf1d30 34% 65%,white 65% 71%,#087338 71%); }
.flag-kenya::after { content: ""; position: absolute; top: 2px; left: 7px; width: 5px; height: 9px; border: 1px solid #fff; border-radius: 50%; background: #bf1d30; }
.flag-tanzania { background: linear-gradient(145deg,#1eb453 0 37%,#fbd343 37% 42%,#17191b 42% 59%,#fbd343 59% 64%,#1195df 64%); }
.flag-uganda { background: linear-gradient(#191919 0 16.7%,#f6d224 16.7% 33.4%,#d92633 33.4% 50%,#191919 50% 66.7%,#f6d224 66.7% 83.4%,#d92633 83.4%); }
.flag-uganda::after { content: ""; position: absolute; inset: 4px 7px; border-radius: 50%; background: #fff; }
.flag-rwanda { background: radial-gradient(circle at 80% 20%, #ffe05b 0 9%, transparent 10%), linear-gradient(#3aabe1 0 50%, #ffd83b 50% 73%, #229746 73%); }
.flag-burundi { background: radial-gradient(circle,white 0 24%,transparent 25%),linear-gradient(35deg,transparent 44%,white 45% 55%,transparent 56%),linear-gradient(145deg,transparent 44%,white 45% 55%,transparent 56%),conic-gradient(#cc1f38 0 55deg,#1d963b 55deg 125deg,#cc1f38 125deg 235deg,#1d963b 235deg 305deg,#cc1f38 305deg); }
.section { padding-block: 65px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 27px; }
.section-head p, .page-head p { color: var(--subtle); margin-top: 9px; }
.text-link { color: var(--forest); display: inline-flex; align-items: center; gap: 7px; font-weight: 800; flex: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.quiet-link { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.category-grid, .city-grid, .property-grid { display: grid; gap: 20px; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.city-grid, .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.category-card img { aspect-ratio: 1.7; width: 100%; object-fit: cover; transition: transform .25s ease; }
.category-card:hover img, .city-card:hover img { transform: scale(1.035); }
.category-card span { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 5px; background: #fff; padding: 15px; }
.category-card strong { font-size: 1.12rem; }
.city-section { background: var(--paper); border-block: 1px solid #ebefea; }
.city-card { position: relative; min-height: 230px; display: flex; align-items: end; justify-content: space-between; padding: 22px; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: #fff; background: var(--deep); }
.city-card img, .city-card::before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city-card img { z-index: -2; transition: transform .25s ease; }
.city-card::before { content: ""; background: linear-gradient(0deg,#0c261bdc,transparent 70%); z-index: -1; }
.city-card:hover { color: white; }
.city-card strong, .city-card small { display: block; }
.city-card strong { font-size: 1.85rem; line-height: 1.2; }
.city-card i, .round-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e4edd7; color: var(--forest); }
.bottom-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bottom-section article { border-radius: var(--radius); padding: 30px; background: #f0f4ed; }
.bottom-section h2 { margin-top: 18px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.bottom-section p { margin: 9px 0 19px; }
.bottom-section .list-panel { background: var(--forest); color: white; }
.list-panel .button { background: var(--lime); color: var(--deep); }
.list-panel .button:hover { background: #e2efc6; }
.newsletter { background: #eaf0e6; padding-block: 32px; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.newsletter h2 { font-size: 1.65rem; }
.newsletter p { margin-top: 5px; color: var(--subtle); }
.newsletter form { display: flex; align-items: end; gap: 9px; width: min(100%, 450px); }
.newsletter label { flex: 1; }
.site-footer { background: var(--deep); color: #edf3e9; padding: 48px 0 15px; }
.site-footer a:hover { color: var(--lime); }
.site-footer p { color: #bdd0c2; margin-top: 16px; max-width: 240px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 25px; padding-bottom: 36px; }
.footer-grid h2 { font-size: .91rem; letter-spacing: 0; margin-bottom: 13px; }
.footer-grid > div > a:not(.brand) { display: block; color: #d1e0d5; margin: 6px 0; }
.footer-end { display: flex; justify-content: space-between; gap: 18px; color: #bbd0c0; border-top: 1px solid #3d5a4c; padding-top: 15px; font-size: .85rem; }
.footer-end div { display: flex; gap: 18px; }
.page { min-height: 54vh; padding-block: 34px 72px; }
.narrow { max-width: 520px; }
.narrow-wide { max-width: 850px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--subtle); font-size: .87rem; margin-bottom: 22px; }
.crumbs a { color: var(--forest); font-weight: 700; }
.page-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.form-panel, .detail-panel, .dashboard-section, .directory-card { padding: clamp(20px, 3vw, 32px); }
.form-panel h1 { font-size: clamp(2rem, 4vw, 3rem); }
.form-panel > p, .dashboard-section > p { margin-top: 10px; color: var(--subtle); }
form .button { flex: none; }
.form-panel form, .enquiry form, .report form { display: grid; gap: 14px; margin-top: 19px; }
.form-panel form > .button, .enquiry form > .button, .report form > .button { justify-self: start; }
.form-panel > .button { margin-top: 16px; }
.form-panel a:not(.button) { text-decoration: underline; }
.fields-two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.shared-fields { border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 12px; }
.shared-fields[hidden] { display: none; }
.read-only-fields { border: 0; min-width: 0; padding: 0; margin: 0 0 15px; display: grid; gap: 14px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filters { padding: 18px; background: var(--paper); }
.filter-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.advanced { padding-top: 12px; }
.advanced summary { color: var(--forest); font-weight: 700; }
.advanced .filter-grid { margin-top: 10px; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
input[type=checkbox] { accent-color: var(--forest); }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 14px; font-weight: 700; }
.view-controls { display: none; }
.js .view-controls { display: flex; gap: 4px; }
.view-controls button { background: white; color: var(--forest); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; }
.view-controls button[aria-pressed=true] { background: var(--sage); font-weight: 700; }
.property-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.property-photo { display: block; aspect-ratio: 1.63; position: relative; background: var(--sage); }
.property-photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: grid; place-items: center; height: 100%; color: #608172; }
.badges { display: flex; gap: 5px; position: absolute; top: 12px; left: 12px; right: 12px; flex-wrap: wrap; }
.badge, .tag { display: inline-flex; align-items: center; gap: 4px; width: fit-content; border-radius: 6px; background: #fff; color: var(--forest); font-size: .72rem; font-weight: 800; padding: 4px 8px; }
.badge.muted { background: #e9e7e1; }
.badge.verified, .tag { background: #e6efd8; }
.page-head .tag { margin: 0 0 8px; }
.property-copy { padding: 17px; }
.property-location { display: flex; align-items: center; gap: 4px; font-size: .83rem; color: var(--subtle); margin-bottom: 7px; }
.price { margin: 10px 0 5px; font-size: 1.31rem; font-weight: 800; letter-spacing: -.04em; }
.price small { font-size: .79rem; color: var(--subtle); letter-spacing: 0; }
.property-specs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .85rem; }
.property-specs span { white-space: nowrap; }
.property-grid.list-view { grid-template-columns: 1fr; }
.list-view .property-card { display: grid; grid-template-columns: min(32%, 280px) 1fr; }
.list-view .property-photo { height: 100%; }
.empty { text-align: center; background: var(--paper); border-radius: var(--radius); border: 1px dashed #c9d6ca; padding: 40px 18px; }
.empty-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 12px; border-radius: 50%; color: var(--forest); background: var(--sage); }
.empty p { color: var(--subtle); margin: 8px 0 14px; }
.pager { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-actions form { margin: 0; }
.gallery { margin-bottom: 20px; }
.main-photo { width: 100%; max-height: 560px; aspect-ratio: 2.3; object-fit: cover; border-radius: var(--radius); background: var(--sage); }
.thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbnails button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; }
.thumbnails button[aria-pressed=true] { border-color: var(--forest); }
.thumbnails img { width: 84px; height: 58px; object-fit: cover; }
.no-photo { background: var(--sage); color: var(--forest); display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius); padding: 38px; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: 1.65fr 1fr; align-items: start; gap: 20px; }
.detail-grid h2, .dashboard-section h2 { font-size: 1.64rem; }
.detail-panel h3 { margin: 20px 0 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-grid div { background: var(--paper); padding: 10px; border-radius: 8px; }
.spec-grid dt { font-size: .78rem; color: var(--subtle); }
.spec-grid dd { margin: 2px 0 0; font-weight: 700; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-panel .detail-actions { margin-top: 18px; }
.enquiry .price { font-size: 2rem; margin-top: 0; }
.enquiry h2 { margin-top: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 8px; background: var(--sage); border-radius: 6px; }
.small { font-size: .86rem; }
.muted-text { color: var(--subtle); }
.detail-panel .small { margin-top: 14px; }
.report { padding: 15px; margin-top: 16px; }
.notice { border-radius: 8px; background: var(--sage); color: var(--deep); padding: 10px 13px; margin: 12px 0; }
.notice.error { background: #fcece9; color: #792d24; }
.dashboard-section { margin-bottom: 16px; }
.dashboard-section .property-grid { margin-top: 15px; }
.row { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.row p { color: var(--subtle); margin-top: 4px; }
.row form:not(.detail-actions form) { display: grid; gap: 5px; min-width: 140px; }
.directory-card h2 { font-size: 1.45rem; margin: 12px 0 7px; }
.directory-card p { margin-bottom: 10px; }
.editorial h2 { font-size: 1.5rem; margin-top: 20px; }
.editorial p + p { margin-top: 12px; }
.editorial p + .detail-actions { margin-top: 18px; }
@media (max-width: 1150px) {
  :root { --shell: min(100% - 56px, 1264px); }
  .nav { gap: 16px; }
  .desktop-nav { gap: 13px; font-size: .86rem; }
  .nav-actions { font-size: .86rem; }
}
@media (max-width: 960px) {
  .mobile-nav { display: block; }
  .desktop-nav { display: none; }
  .nav-actions { margin-left: auto; }
  .mobile-nav { margin-left: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .market-inner { grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 14px 0; }
  .market-inner > div { grid-column: 1 / -1; }
  .market-inner a { justify-content: start; padding: 7px 3px; }
  .hero-inner { padding-top: 76px; padding-bottom: 37px; }
}
@media (max-width: 680px) {
  :root { --shell: calc(100% - 32px); }
  .nav { min-height: 66px; gap: 11px; }
  .brand { font-size: 1.31rem; gap: 7px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand small { font-size: .47rem; }
  .nav-actions .market-menu, .sign-in { display: none; }
  .nav-cta { padding: 7px 9px; min-height: 37px; font-size: .79rem; }
  .mobile-nav > div { min-width: 206px; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .hero-image { object-position: 58% 0; }
  .hero::before { background: linear-gradient(90deg,#102519e5,#10251969), linear-gradient(0deg,#10251988,transparent); }
  .hero-inner { padding-top: 42px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(2.15rem, 10.6vw, 4.5rem); }
  .eyebrow { font-size: .64rem; letter-spacing: .10em; margin-bottom: 17px; }
  .hero-description { margin-top: 16px; }
  .hero-search { margin-top: 22px; padding: 0 10px 10px; }
  .search-tabs { margin-inline: -10px; padding: 0 8px; gap: 0; }
  .search-tabs label { flex: 1; }
  .search-tabs span { min-width: 0; padding: 9px 5px; font-size: .84rem; }
  .search-fields { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 9px; }
  .hero-location, .hero-button { grid-column: 1 / -1; }
  .market-inner { grid-template-columns: repeat(3, 1fr); }
  .market-inner a { font-size: .85rem; }
  .market-inner a svg { display: none; }
  .section { padding-block: 38px; }
  .section-head { flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
  .category-grid, .property-grid, .city-grid { gap: 12px; }
  .category-card span { padding: 9px; }
  .category-card strong { font-size: .95rem; }
  .property-grid, .city-grid, .bottom-section, .detail-grid { grid-template-columns: 1fr; }
  .city-card { min-height: 150px; padding: 15px; }
  .bottom-section article { padding: 22px; }
  .newsletter-inner { display: grid; gap: 14px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-end { flex-wrap: wrap; }
  .page { padding-block: 21px 42px; }
  .filter-grid, .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.crm-page { --crm-soft: #f5f8f3; --crm-line: #dce6db; }
.crm-path { margin: 4px 0 22px; color: var(--subtle); font-size: .86rem; }
.crm-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.crm-header h1 { font-size: clamp(2.15rem, 5vw, 3.35rem); }
.crm-header p { color: var(--subtle); margin-top: 7px; }
.crm-header .crm-kicker { color: var(--forest); text-transform: uppercase; letter-spacing: .095em; font-weight: 800; font-size: .71rem; margin: 0 0 7px; }
.crm-nav { display: flex; gap: 5px; flex-wrap: wrap; padding: 6px; background: var(--crm-soft); border: 1px solid var(--crm-line); border-radius: 10px; margin-bottom: 22px; }
.crm-nav-link { display: inline-block; padding: 7px 14px; border-radius: 7px; font-weight: 700; color: var(--forest); }
.crm-nav-link:hover, .crm-nav-link:focus-visible { background: var(--sage); }
.crm-workspaces, .crm-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.crm-workspaces { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.crm-workspace { padding: 20px; display: block; position: relative; color: var(--ink); }
.crm-workspace:hover { background: var(--crm-soft); color: var(--forest); }
.crm-workspace h2 { margin: 12px 0 4px; font-size: 1.4rem; }
.crm-workspace p { color: var(--subtle); }
.crm-workspace > svg { position: absolute; right: 20px; top: 25px; }
.crm-create { margin-top: 18px; }
.crm-panel { padding: clamp(15px, 2.3vw, 25px); margin-bottom: 16px; min-width: 0; }
.crm-panel h2 { font-size: 1.38rem; margin-bottom: 12px; }
.crm-panel > p + p { margin-top: 7px; }
.crm-panel > p { color: var(--subtle); }
.crm-panel .crm-form + .crm-form { margin-top: 15px; }
.crm-form { display: grid; align-items: start; gap: 10px; min-width: 0; }
.crm-form .button { justify-self: start; }
.crm-panel > .crm-form { margin-top: 14px; }
.crm-wide { max-width: 850px; }
.crm-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.crm-filters { background: var(--crm-soft); }
.crm-filters .crm-field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.crm-filters .crm-details .crm-field-grid { margin-top: 10px; }
.crm-inline { display: flex; align-items: end; gap: 8px; }
.crm-inline label { width: min(100%, 380px); }
.crm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.crm-stat { display: grid; gap: 4px; padding: 14px 17px; font-weight: 700; color: var(--forest); }
.crm-stat:hover { background: var(--crm-soft); }
.crm-stat span { font-size: .85rem; }
.crm-stat strong { font-size: 1.65rem; line-height: 1; letter-spacing: -.045em; }
.crm-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 17px 0 12px; }
.crm-toolbar > p { font-weight: 700; color: var(--subtle); }
.crm-toolbar .button { min-height: 38px; padding: 6px 11px; }
.crm-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.crm-table { border-collapse: collapse; width: 100%; min-width: 560px; text-align: left; }
.crm-table th { background: var(--crm-soft); color: var(--forest); font-size: .8rem; letter-spacing: .015em; }
.crm-table th, .crm-table td { padding: 11px 14px; vertical-align: top; }
.crm-table td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.crm-table td:first-child { min-width: 170px; }
.crm-table small, .crm-task small, .crm-member small, .crm-match small { display: block; margin-top: 3px; color: var(--subtle); }
.crm-tag { display: inline-block; border-radius: 5px; padding: 3px 7px; background: var(--sage); color: var(--forest); font-weight: 700; font-size: .77rem; }
.crm-tag.warning { background: #fff0e4; color: #814225; }
.crm-tag.today { background: #f4f1d5; color: #5b4e1c; }
.crm-empty { color: var(--subtle); padding: 13px 0; }
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr); gap: 10px; overflow-x: auto; padding: 3px 0 12px; }
.crm-column { background: var(--crm-soft); border: 1px solid var(--crm-line); padding: 10px; border-radius: 10px; min-height: 132px; }
.crm-column h2 { font-size: .94rem; letter-spacing: -.015em; display: flex; justify-content: space-between; align-items: center; gap: 4px; margin: 4px 0 10px; }
.crm-column h2 span { background: var(--sage); border-radius: 5px; padding: 2px 6px; font-size: .75rem; }
.crm-column-empty { color: var(--subtle); font-size: .8rem; }
.crm-board-card { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 10px; margin: 8px 0; overflow-wrap: anywhere; }
.crm-board-card p { font-size: .86rem; margin-top: 5px; }
.crm-board-card small { color: var(--subtle); }
.crm-lead-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; }
.crm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.crm-facts div { background: var(--crm-soft); border-radius: 7px; padding: 9px; overflow-wrap: anywhere; }
.crm-facts dt { font-size: .76rem; color: var(--subtle); }
.crm-facts dd { font-weight: 700; margin: 2px 0 0; }
.crm-lead-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.crm-details { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 9px; }
.crm-details summary { font-weight: 700; color: var(--forest); }
.crm-details .crm-form { margin-top: 8px; }
.crm-tasks, .crm-members, .crm-timeline { list-style: none; padding: 0; margin: 0; }
.crm-task, .crm-member, .crm-match { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.crm-task .button, .crm-member .button, .crm-match .button { min-height: 35px; padding: 5px 9px; font-size: .82rem; }
.crm-member .crm-form { display: flex; align-items: end; gap: 6px; }
.crm-member .crm-form select { min-height: 35px; padding: 5px; }
.crm-timeline { margin-top: 15px; padding-left: 13px; border-left: 2px solid var(--crm-line); }
.crm-timeline li { position: relative; border-bottom: 1px solid var(--line); padding: 10px 0 12px; }
.crm-timeline li:last-child { border-bottom: 0; }
.crm-timeline li::before { content: ""; background: var(--forest); border: 2px solid white; border-radius: 50%; width: 9px; height: 9px; position: absolute; left: -20px; top: 14px; }
.crm-timeline header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.crm-timeline time, .crm-timeline small { color: var(--subtle); font-size: .78rem; }
.crm-timeline p { margin-top: 5px; }
@media (max-width: 800px) {
  .crm-filters .crm-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-lead-layout { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .crm-header { align-items: start; flex-direction: column; }
  .crm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-settings-grid, .crm-lead-actions { grid-template-columns: 1fr; gap: 0; }
  .crm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-workspaces { grid-template-columns: 1fr; }
  .crm-path { margin-bottom: 14px; }
  .crm-panel h2 { font-size: 1.28rem; }
  .crm-match { align-items: start; flex-direction: column; }
}
