:root {
    --ink: #202020;
    --ink-2: #333333;
    --canvas: #f5f2ec;
    --paper: #ffffff;
    --paper-soft: rgba(255, 255, 255, .78);
    --soft: #f7f4ed;
    --muted: #746f66;
    --line: #e7dfd0;
    --mint: #e9a426;
    --mint-dark: #a96800;
    --violet: #d97706;
    --orange: #f59e0b;
    --red: #ef5c69;
    --blue: #3182f6;
    --shadow: 0 18px 50px rgba(40, 32, 18, .09);
    --small-shadow: 0 8px 22px rgba(40, 32, 18, .07);
}

* { box-sizing: border-box; }
html { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; background: var(--canvas); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 12% 4%, rgba(233, 164, 38, .13), transparent 29%), radial-gradient(circle at 83% 89%, rgba(217, 119, 6, .09), transparent 31%), var(--canvas); transition: background .25s, color .25s; }
body.dark { --ink: #fffaf0; --ink-2: #f0e7d6; --canvas: #181818; --paper: #282828; --paper-soft: rgba(40, 40, 40, .9); --soft: #33302b; --muted: #b8ad9b; --line: #4b4234; --shadow: 0 18px 50px rgba(0, 0, 0, .28); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 108px minmax(0, 1fr); }

.rail { position: sticky; top: 0; height: 100vh; background: #1a1a1a; color: white; padding: 21px 13px; display: flex; flex-direction: column; align-items: center; z-index: 30; border-inline-start: 1px solid rgba(233, 164, 38, .18); }
.brand { width: 72px; min-height: 76px; border: 1px solid rgba(233, 164, 38, .28); border-radius: 22px; background: linear-gradient(145deg, #2c2c2c, #171717); display: grid; place-items: center; align-content: center; gap: 2px; color: #f7c75f; text-decoration: none; box-shadow: 0 12px 35px rgba(0, 0, 0, .28); transition: .2s; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand span { font: 800 .7rem Alexandria, sans-serif; letter-spacing: .02em; }
.brand:hover { border-color: var(--mint); transform: translateY(-1px); }
.rail-nav { display: grid; gap: 9px; margin-top: 34px; width: 100%; }
.rail-btn { height: 62px; border: 0; border-radius: 18px; background: transparent; color: #8fa3b0; display: grid; place-items: center; align-content: center; gap: 4px; font-size: .72rem; font-weight: 700; transition: .2s; }
.rail-btn svg { width: 21px; height: 21px; }
.rail-btn:hover, .rail-btn.active { background: #2d2922; color: white; }
.rail-btn.active { box-shadow: inset -3px 0 0 var(--mint); }
.rail-footer { margin-top: auto; display: grid; justify-items: center; gap: 5px; color: #8fa3b0; font-size: .7rem; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(233, 164, 38, .14); }
.profile-dot { margin-top: 12px; width: 48px; height: 48px; border-radius: 16px; background: #332d22; display: grid; place-items: center; font-weight: 800; color: var(--mint); }

.workspace { padding: 26px 30px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 18px; margin-bottom: 23px; }
.page-title { min-width: 225px; }
.eyebrow { display: block; color: var(--mint-dark); font-size: .78rem; font-weight: 800; margin-bottom: 4px; }
.page-title h1, h2 { font-family: Alexandria, sans-serif; letter-spacing: -.035em; }
.page-title h1 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1.25; margin: 0; }
.global-search { flex: 1; max-width: 620px; position: relative; }
.global-search input { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 18px; padding: 0 48px 0 62px; background: var(--paper-soft); color: var(--ink); outline: none; transition: .2s; }
.global-search input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(45, 212, 191, .13); }
.global-search > svg { position: absolute; right: 17px; top: 16px; width: 20px; height: 20px; color: var(--muted); }
.global-search kbd { position: absolute; left: 13px; top: 12px; direction: ltr; padding: 4px 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .73rem; }
.top-actions { margin-right: auto; display: flex; gap: 9px; align-items: center; }
.company-link { min-height: 48px; display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--small-shadow); transition: .2s; }
.company-link span { font: 900 .84rem Alexandria, sans-serif; line-height: 1; direction: ltr; }
.company-link span b { color: var(--mint-dark); }
.company-link small { grid-column: 1; color: var(--muted); font-size: .56rem; letter-spacing: .11em; text-transform: uppercase; }
.company-link svg { grid-column: 2; grid-row: 1 / 3; width: 17px; height: 17px; color: var(--mint-dark); }
.company-link:hover { border-color: var(--mint); transform: translateY(-1px); }
.icon-btn, .close-btn { width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); display: grid; place-items: center; transition: .2s; }
.icon-btn:hover, .close-btn:hover { transform: translateY(-1px); border-color: #bfcfcb; }
.icon-btn svg, .close-btn svg { width: 20px; height: 20px; }
.notification-btn { position: relative; }
.notification-btn span { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 2px solid var(--paper); }
.menu-toggle { display: none; }
.menu-lines, .menu-lines::before, .menu-lines::after { width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; display: block; }
.menu-lines::before { transform: translateY(-6px); }.menu-lines::after { transform: translateY(4px); }

.view { display: none; animation: viewIn .28s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--paper-soft); border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; padding: 17px 18px; display: flex; align-items: center; gap: 13px; box-shadow: var(--small-shadow); position: relative; }
body.dark .stat { border-color: var(--line); }
.stat-icon { flex: 0 0 43px; width: 43px; height: 43px; border-radius: 15px; display: grid; place-items: center; background: #dffaf5; color: var(--mint-dark); }
.stat:nth-child(2) .stat-icon { background: #ebe9ff; color: var(--violet); }.stat:nth-child(3) .stat-icon { background: #fff3d6; color: #b76b00; }.stat:nth-child(4) .stat-icon { background: #e4f0ff; color: #2563eb; }
.stat-icon svg { width: 21px; height: 21px; }
.stat strong { display: block; font: 800 1.4rem Alexandria, sans-serif; }
.stat span { color: var(--muted); font-size: .84rem; }
.stat em { margin-right: auto; align-self: flex-start; background: var(--soft); border-radius: 9px; padding: 4px 7px; color: var(--mint-dark); font-size: .69rem; font-style: normal; font-weight: 800; }
.surface { background: var(--paper-soft); border: 1px solid rgba(255, 255, 255, .72); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
body.dark .surface { border-color: var(--line); }
.surface-head { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.surface-head h2, .inventory-toolbar h2, .map-list h2, .chat-list-head h2, .report-card h2 { font-size: 1.08rem; margin: 0; }
.surface-head p { color: var(--muted); margin: 3px 0 0; font-size: .82rem; }
.head-controls { margin-right: auto; display: flex; align-items: center; gap: 9px; }
.segmented { padding: 4px; border: 1px solid var(--line); background: var(--soft); border-radius: 14px; display: flex; }
.segmented button { border: 0; background: transparent; border-radius: 10px; padding: 8px 13px; color: var(--muted); font-weight: 700; }
.segmented button.active { background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px rgba(12, 23, 33, .08); }
.primary, .secondary, .filter-button, .sort-button, .map-chip { border-radius: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.primary { min-height: 43px; border: 0; background: var(--ink); color: var(--paper); padding: 9px 16px; box-shadow: 0 8px 20px rgba(12, 23, 33, .12); }
body.dark .primary { background: var(--mint); color: #171104; }
.primary:hover { transform: translateY(-1px); }
.primary svg, .filter-button svg, .sort-button svg { width: 18px; height: 18px; }
.secondary { min-height: 43px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 9px 16px; }
.filter-button, .sort-button { min-height: 42px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); padding: 8px 13px; }
.filter-button span:not(:empty) { width: 20px; height: 20px; border-radius: 7px; background: var(--mint); color: #063d38; display: grid; place-items: center; font-size: .7rem; }
.text-btn { border: 0; background: none; color: var(--mint-dark); font-weight: 800; }

.filter-row { padding: 13px; margin-bottom: 15px; border: 1px solid var(--line); background: var(--soft); border-radius: 18px; display: flex; align-items: end; gap: 10px; }
.filter-row[hidden] { display: none; }
.filter-row label { color: var(--muted); font-size: .73rem; font-weight: 700; }
.filter-row select { display: block; min-width: 155px; height: 38px; margin-top: 4px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); }
.filter-row .text-btn { margin-right: auto; height: 38px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 13px; overflow-x: auto; padding: 1px 1px 7px; scrollbar-width: thin; }
.lane { background: var(--soft); border: 1px solid var(--line); border-radius: 21px; padding: 11px; min-height: 320px; transition: border-color .2s, background .2s; }
.lane.drag-over { border-color: var(--mint); background: rgba(45, 212, 191, .08); }
.lane-title { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 12px; }
.lane-title strong { font-size: .85rem; display: flex; align-items: center; gap: 7px; }
.lane-title strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.lane[data-stage="contacted"] .lane-title strong::before { background: var(--orange); }.lane[data-stage="visit"] .lane-title strong::before { background: var(--violet); }.lane[data-stage="negotiation"] .lane-title strong::before { background: var(--mint-dark); }
.lane-title span { min-width: 28px; height: 26px; padding: 0 8px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--muted); font-size: .77rem; }
.lane-empty { height: 120px; border: 1px dashed var(--line); border-radius: 15px; display: grid; place-items: center; color: var(--muted); font-size: .78rem; text-align: center; padding: 20px; }
.lead-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 9px; box-shadow: 0 7px 18px rgba(12, 23, 33, .04); cursor: grab; transition: transform .2s, box-shadow .2s; }
.lead-card:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(12, 23, 33, .08); }.lead-card.dragging { opacity: .45; }
.lead-top { display: flex; gap: 10px; align-items: flex-start; }
.avatar { flex: 0 0 41px; width: 41px; height: 41px; border-radius: 14px; background: linear-gradient(145deg, #dffaf5, #c9e8ff); display: grid; place-items: center; font-weight: 800; color: #155e75; }
.avatar.purple { background: #ebe9ff; color: #5546cf; }.avatar.orange { background: #fff0d4; color: #9a5b00; }
.lead-name { font-weight: 800; font-size: .91rem; }.lead-project { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.score { margin-right: auto; border-radius: 999px; background: #dffaf5; color: var(--mint-dark); padding: 5px 8px; font-size: .69rem; font-weight: 800; direction: ltr; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: #597078; font-size: .72rem; }
.lead-meta span { padding: 5px 7px; background: var(--soft); border-radius: 9px; }
.lead-next { margin-top: 9px; font-size: .73rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }.lead-next::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.lead-actions { display: flex; gap: 7px; border-top: 1px solid var(--line); margin-top: 11px; padding-top: 10px; }
.mini { min-height: 33px; border: 0; border-radius: 11px; padding: 0 10px; background: var(--soft); color: var(--ink-2); font-weight: 700; font-size: .72rem; }.mini.whatsapp { background: #dcfce7; color: #15803d; }.mini:hover { filter: brightness(.97); }
.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }.table-shell[hidden] { display: none; }
.data-table { width: 100%; min-width: 900px; border-collapse: collapse; background: var(--paper); font-size: .8rem; }.data-table th { color: var(--muted); background: var(--soft); text-align: right; font-size: .72rem; }.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); }.data-table tbody tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: rgba(45, 212, 191, .045); }.person-cell { display: flex; align-items: center; gap: 9px; }.person-cell .avatar { width: 35px; height: 35px; flex-basis: 35px; border-radius: 11px; font-size: .75rem; }.person-cell small { display: block; color: var(--muted); }.stage-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #e4f0ff; color: #2563eb; font-size: .69rem; font-weight: 800; }.stage-pill.contacted { background: #fff3d6; color: #9a5b00; }.stage-pill.visit { background: #ebe9ff; color: #5546cf; }.stage-pill.negotiation { background: #dffaf5; color: var(--mint-dark); }

.inventory-toolbar { padding: 22px; display: flex; align-items: end; gap: 24px; }.inventory-toolbar > div:first-child { min-width: 225px; }.inventory-filters { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)) auto; gap: 10px; align-items: end; }.inventory-filters label span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; margin-bottom: 5px; }.inventory-filters select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 13px; padding: 0 11px; background: var(--paper); color: var(--ink); }.inventory-summary { display: flex; align-items: center; margin: 18px 2px 12px; }.inventory-summary p { margin: 0; color: var(--muted); font-size: .84rem; }.inventory-summary .sort-button { margin-right: auto; }.sort-button svg { transform: rotate(90deg); }
.property-grid { display: grid; grid-template-columns: repeat(4, minmax(225px, 1fr)); gap: 15px; }.property-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--small-shadow); transition: transform .2s, box-shadow .2s; }.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }.property-visual { height: 152px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: #15333a; background-image: linear-gradient(30deg, rgba(45,212,191,.22) 12%, transparent 12.5%, transparent 87%, rgba(45,212,191,.22) 87.5%), linear-gradient(150deg, rgba(45,212,191,.15) 12%, transparent 12.5%, transparent 87%, rgba(45,212,191,.15) 87.5%), linear-gradient(30deg, rgba(255,255,255,.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.05) 87.5%); background-size: 48px 84px; }.property-card:nth-child(2n) .property-visual { background-color: #27305d; }.property-card:nth-child(3n) .property-visual { background-color: #5d3f25; }.property-visual::after { content: ""; position: absolute; inset: auto -10% -55px; height: 110px; background: rgba(255,255,255,.07); transform: rotate(-6deg); border-top: 1px solid rgba(255,255,255,.18); }.project-monogram { position: relative; z-index: 1; font: 800 1.55rem Alexandria, sans-serif; color: white; letter-spacing: -.04em; }.favorite { position: absolute; left: 12px; top: 12px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 11px; background: rgba(255,255,255,.9); color: #41535b; font-size: 1.1rem; }.favorite.active { color: var(--red); }.delivery { position: absolute; right: 12px; bottom: 11px; z-index: 2; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.9); color: #40555e; font-size: .68rem; font-weight: 800; direction: ltr; }.property-body { padding: 15px; }.property-topline { display: flex; align-items: flex-start; gap: 8px; }.property-topline h3 { margin: 0; font: 800 1rem Alexandria, sans-serif; }.property-topline span { margin-right: auto; background: #dffaf5; color: var(--mint-dark); padding: 4px 7px; border-radius: 8px; font-size: .66rem; font-weight: 800; }.property-location { color: var(--muted); font-size: .75rem; margin: 5px 0 12px; }.property-price { font: 800 1.05rem Alexandria, sans-serif; margin-bottom: 12px; }.property-specs { display: flex; gap: 6px; flex-wrap: wrap; }.property-specs span { background: var(--soft); padding: 6px 8px; border-radius: 9px; font-size: .7rem; color: var(--muted); }.property-footer { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; }.property-footer small { color: var(--muted); }.property-footer button { margin-right: auto; border: 0; background: none; color: var(--mint-dark); font-weight: 800; }
.inventory-empty { grid-column: 1/-1; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; color: var(--muted); }

.map-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 15px; min-height: calc(100vh - 130px); }.map-list { padding: 18px; overflow: auto; max-height: calc(100vh - 130px); }.map-list-head, .chat-list-head { display: flex; align-items: center; margin-bottom: 15px; }.map-list-head .icon-btn { margin-right: auto; width: 42px; height: 42px; border-radius: 13px; }.map-search { position: relative; display: block; }.map-search svg { position: absolute; right: 13px; top: 13px; width: 18px; height: 18px; color: var(--muted); }.map-search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--ink); padding: 0 42px 0 10px; outline: none; }.project-list-item { width: 100%; margin-top: 9px; padding: 12px; display: grid; grid-template-columns: 42px 1fr auto; gap: 9px; align-items: center; text-align: right; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 15px; }.project-list-item:hover, .project-list-item.active { background: var(--soft); border-color: var(--line); }.project-list-item .project-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #dffaf5; color: var(--mint-dark); font-weight: 800; }.project-list-item strong, .project-list-item small { display: block; }.project-list-item small { color: var(--muted); margin-top: 2px; }.project-list-item b { color: var(--mint-dark); font-size: .75rem; }
.project-map { position: relative; overflow: hidden; min-height: 620px; background-color: #dfe9df; background-image: linear-gradient(90deg, rgba(61,108,91,.08) 1px, transparent 1px), linear-gradient(rgba(61,108,91,.08) 1px, transparent 1px); background-size: 52px 52px; }.project-map::before { content: "القاهرة الجديدة"; position: absolute; left: 11%; top: 12%; color: rgba(34,68,58,.14); font: 800 clamp(2.4rem,7vw,7rem) Alexandria,sans-serif; transform: rotate(-8deg); white-space: nowrap; }.map-toolbar { position: absolute; z-index: 5; right: 18px; top: 18px; display: flex; gap: 7px; }.map-chip { border: 1px solid rgba(34,68,58,.14); background: rgba(255,255,255,.9); color: #53675d; padding: 8px 12px; }.map-chip.active { background: #10271e; color: white; }.map-road { position: absolute; height: 17px; background: rgba(255,255,255,.8); border: 1px solid rgba(45,81,68,.12); box-shadow: 0 0 0 6px rgba(255,255,255,.22); }.road-one { width: 130%; left: -15%; top: 49%; transform: rotate(-11deg); }.road-two { width: 90%; left: 19%; top: 28%; transform: rotate(43deg); }.road-three { width: 65%; left: -4%; top: 75%; transform: rotate(22deg); }.map-ring { position: absolute; border: 12px solid rgba(255,255,255,.62); border-radius: 50%; box-shadow: 0 0 0 1px rgba(45,81,68,.12); }.ring-one { width: 190px; height: 190px; right: 12%; top: 15%; }.ring-two { width: 240px; height: 150px; left: 9%; bottom: 9%; transform: rotate(-16deg); }.map-pin { position: absolute; z-index: 6; transform: translate(-50%, -100%); border: 0; background: transparent; display: grid; justify-items: center; color: #10271e; }.map-pin span { padding: 7px 10px; border-radius: 10px; background: #10271e; color: white; box-shadow: 0 7px 16px rgba(16,39,30,.24); font-size: .72rem; font-weight: 800; white-space: nowrap; }.map-pin::after { content: ""; width: 13px; height: 13px; background: var(--mint); border: 4px solid white; border-radius: 50% 50% 50% 0; transform: translateY(3px) rotate(-45deg); box-shadow: 0 5px 12px rgba(16,39,30,.23); }.map-pin.limited span { background: #9a5b00; }.map-pin.limited::after { background: var(--orange); }.map-pin:hover { z-index: 9; }.map-pin:hover span { transform: translateY(-2px); }.map-legend { position: absolute; z-index: 5; bottom: 18px; right: 18px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.9); color: #53675d; display: flex; gap: 12px; font-size: .71rem; font-weight: 700; }.map-legend span { display: flex; align-items: center; gap: 5px; }.map-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }.map-legend i.limited { background: var(--orange); }

.chat-shell { padding: 0; min-height: calc(100vh - 130px); display: grid; grid-template-columns: 330px minmax(0, 1fr); overflow: hidden; }.conversation-list { padding: 18px; border-left: 1px solid var(--line); max-height: calc(100vh - 130px); overflow: auto; }.live-badge { margin-right: auto; display: flex; align-items: center; gap: 6px; border: 1px solid #bbefd6; color: #18845a; border-radius: 999px; padding: 5px 8px; font-size: .68rem; font-weight: 800; }.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }.conversation { width: 100%; border: 0; border-radius: 16px; padding: 12px 10px; background: transparent; color: var(--ink); text-align: right; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; margin-top: 5px; }.conversation:hover, .conversation.active { background: var(--soft); }.conversation .avatar { width: 42px; height: 42px; flex-basis: 42px; }.conversation strong, .conversation small { display: block; }.conversation small { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 170px; }.conversation time { color: var(--muted); font-size: .66rem; direction: ltr; }.unread { margin-top: 5px; width: 20px; height: 20px; border-radius: 8px; background: var(--mint); color: #083a34; display: grid; place-items: center; font-size: .66rem; font-weight: 800; }.chat-room { min-width: 0; display: flex; flex-direction: column; background-color: var(--soft); background-image: radial-gradient(rgba(74,113,104,.08) 1px, transparent 1px); background-size: 22px 22px; }.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 25px; }.chat-empty svg { width: 45px; height: 45px; margin-bottom: 10px; }.chat-room-head { height: 76px; padding: 13px 18px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }.chat-room-head .status { color: #16845a; font-size: .7rem; }.chat-room-head .head-chat-actions { margin-right: auto; display: flex; gap: 7px; }.chat-room-head .icon-btn { width: 39px; height: 39px; border-radius: 12px; }.messages { flex: 1; padding: 25px; overflow: auto; display: flex; flex-direction: column; gap: 9px; min-height: 380px; max-height: calc(100vh - 290px); }.message { max-width: min(540px,78%); padding: 10px 13px 7px; border-radius: 16px; background: var(--paper); box-shadow: 0 4px 12px rgba(12,23,33,.05); line-height: 1.65; font-size: .84rem; }.message.out { margin-right: auto; background: #d7f8e9; color: #173f32; border-bottom-left-radius: 5px; }.message.in { border-bottom-right-radius: 5px; }.message time { display: block; direction: ltr; color: #789087; font-size: .62rem; text-align: left; margin-top: 3px; }.chat-compose { min-height: 76px; padding: 12px 16px; background: var(--paper); border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; }.chat-compose input { flex: 1; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--ink); padding: 0 14px; outline: none; }.chat-compose button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--mint); color: #073c36; display: grid; place-items: center; }.chat-compose svg { width: 20px; height: 20px; transform: rotate(180deg); }

.report-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 15px; }.report-card { min-height: 260px; padding: 23px; }.report-wide { grid-column: 1 / -1; min-height: 360px; }.report-head { display: flex; align-items: flex-start; }.report-head strong { margin-right: auto; font: 800 1.35rem Alexandria,sans-serif; }.bar-chart { height: 260px; display: flex; align-items: flex-end; gap: clamp(12px,4vw,48px); padding: 30px 30px 30px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 59px, var(--line) 60px); }.bar-chart > div { flex: 1; max-width: 75px; height: var(--h); min-height: 28px; border-radius: 14px 14px 4px 4px; background: linear-gradient(to top, #2a5260, #57b9aa); position: relative; }.bar-chart > div::before { content: attr(style); display: none; }.bar-chart .current { background: linear-gradient(to top, var(--violet), #9b8ff9); box-shadow: 0 10px 25px rgba(102,87,232,.2); }.bar-chart span { position: absolute; bottom: -27px; right: 50%; transform: translateX(50%); color: var(--muted); font-size: .7rem; white-space: nowrap; }.donut { width: 170px; aspect-ratio: 1; margin: 20px auto; border-radius: 50%; background: conic-gradient(var(--mint-dark) 0 24%, var(--line) 24%); position: relative; display: grid; place-items: center; align-content: center; }.donut::after { content: ""; position: absolute; inset: 19px; background: var(--paper); border-radius: 50%; }.donut strong, .donut span { position: relative; z-index: 1; }.donut strong { font: 800 1.8rem Alexandria,sans-serif; }.donut span { color: var(--muted); font-size: .7rem; }.funnel-list { list-style: none; padding: 0; margin: 0; }.funnel-list li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }.funnel-list b { color: var(--ink); }.agent-row { display: grid; grid-template-columns: 24px 41px 1fr auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }.agent-row:last-child { border: 0; }.agent-row .rank { color: var(--muted); font-weight: 800; }.agent-row small { display: block; color: var(--muted); }.agent-row > b { color: var(--mint-dark); }

dialog { color: var(--ink); }.modal, .property-modal { border: 0; padding: 0; background: transparent; max-width: min(680px, calc(100vw - 24px)); width: 100%; }.modal::backdrop, .property-modal::backdrop, .drawer::backdrop, .ai-modal::backdrop { background: rgba(5, 15, 22, .58); backdrop-filter: blur(5px); }.modal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 23px; box-shadow: 0 28px 80px rgba(3,12,18,.25); }.modal-head { display: flex; align-items: center; margin-bottom: 20px; }.modal-head h2 { margin: 0; font-size: 1.25rem; }.modal-head .close-btn { margin-right: auto; }.close-btn { width: 40px; height: 40px; border-radius: 13px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-grid label > span { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; margin-bottom: 6px; }.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--ink); padding: 11px 12px; outline: none; }.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(45,212,191,.12); }.form-grid .full { grid-column: 1/-1; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; width: min(520px, 94vw); max-height: 100%; background: transparent; }.drawer-panel { min-height: 100%; background: var(--paper); padding: 23px; box-shadow: -24px 0 60px rgba(3,12,18,.25); overflow: auto; }.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.drawer-head .avatar { width: 52px; height: 52px; flex-basis: 52px; border-radius: 18px; }.drawer-head h2 { margin: 0; font-size: 1.2rem; }.drawer-head p { color: var(--muted); margin: 4px 0 0; }.drawer-head .close-btn { margin-right: auto; }.drawer-actions { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; padding: 16px 0; }.drawer-actions button { min-height: 42px; }.drawer-section { border: 1px solid var(--line); border-radius: 18px; padding: 15px; margin-top: 12px; }.drawer-section-title { display: flex; align-items: center; margin-bottom: 12px; }.drawer-section-title h3 { margin: 0; font: 800 .9rem Alexandria,sans-serif; }.drawer-section-title span { margin-right: auto; color: var(--muted); font-size: .7rem; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.detail-grid div { background: var(--soft); border-radius: 12px; padding: 10px; }.detail-grid span, .detail-grid strong { display: block; }.detail-grid span { color: var(--muted); font-size: .68rem; }.detail-grid strong { margin-top: 3px; font-size: .83rem; }.stage-select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); }.ai-insight { background: linear-gradient(135deg, rgba(102,87,232,.1), rgba(45,212,191,.09)); border-color: rgba(102,87,232,.18); }.ai-insight p { margin: 0; color: var(--ink-2); line-height: 1.75; font-size: .81rem; }.ai-insight ul { padding-right: 18px; margin: 8px 0 0; color: var(--muted); font-size: .76rem; }.reminder-row { display: flex; gap: 8px; }.reminder-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); color: var(--ink); padding: 8px; }.timeline { list-style: none; padding: 0; margin: 0; }.timeline li { position: relative; padding: 0 22px 15px 0; color: var(--muted); font-size: .76rem; }.timeline li::before { content: ""; position: absolute; right: 3px; top: 5px; width: 8px; height: 8px; border: 3px solid var(--paper); border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1px var(--mint); }.timeline li:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 15px; bottom: 1px; width: 1px; background: var(--line); }.timeline strong, .timeline span { display: block; }.timeline strong { color: var(--ink); }.timeline span { font-size: .67rem; margin-top: 2px; }
.property-modal-card { padding: 0; overflow: hidden; }.property-modal-visual { height: 220px; background: #173a3f; color: white; display: grid; place-items: center; position: relative; background-image: radial-gradient(circle at 18% 30%, rgba(45,212,191,.3), transparent 30%), linear-gradient(140deg, transparent 45%, rgba(255,255,255,.08) 45% 48%, transparent 48%); }.property-modal-visual strong { font: 800 2.2rem Alexandria,sans-serif; }.property-modal-visual .close-btn { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.9); color: #173a3f; }.property-modal-content { padding: 22px; }.property-modal-title { display: flex; align-items: flex-start; }.property-modal-title h2 { margin: 0; }.property-modal-title b { margin-right: auto; color: var(--mint-dark); font: 800 1.15rem Alexandria,sans-serif; }.property-modal-content > p { color: var(--muted); line-height: 1.7; }.property-modal-specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }.property-modal-specs div { background: var(--soft); border-radius: 12px; padding: 11px; }.property-modal-specs span, .property-modal-specs strong { display: block; }.property-modal-specs span { color: var(--muted); font-size: .67rem; }.property-modal-actions { display: flex; gap: 9px; margin-top: 18px; }.property-modal-actions .primary { flex: 1; }

.ai-fab { position: fixed; left: 28px; bottom: 25px; z-index: 18; height: 52px; border: 0; border-radius: 18px; padding: 0 17px; display: flex; align-items: center; gap: 9px; color: white; background: linear-gradient(135deg, #5042ce, #7f6df0); font-weight: 800; box-shadow: 0 14px 34px rgba(80,66,206,.32); }.ai-fab svg { width: 20px; height: 20px; }.ai-fab:hover { transform: translateY(-2px); }
.ai-modal { border: 0; padding: 0; background: transparent; max-width: min(720px, calc(100vw - 24px)); width: 100%; }.ai-panel { height: min(680px, calc(100vh - 40px)); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); border: 1px solid var(--line); border-radius: 27px; overflow: hidden; box-shadow: 0 28px 80px rgba(3,12,18,.28); }.ai-head { padding: 15px 17px; display: flex; align-items: center; gap: 11px; color: white; background: linear-gradient(135deg, #242063, #594ccf); }.ai-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.15); }.ai-mark svg { width: 22px; height: 22px; }.ai-head span, .ai-head small { display: block; }.ai-head span { font-weight: 800; }.ai-head small { color: #d8d3ff; }.ai-head .close-btn { margin-right: auto; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: white; }.ai-body { overflow: auto; padding: 20px; background: radial-gradient(circle at top left, rgba(102,87,232,.08), transparent 33%), var(--soft); }.ai-message { width: fit-content; max-width: 83%; padding: 12px 14px; border-radius: 16px; margin-bottom: 9px; line-height: 1.75; font-size: .84rem; }.ai-message p { margin: 3px 0 0; }.ai-message.bot { background: var(--paper); border-bottom-right-radius: 5px; box-shadow: var(--small-shadow); }.ai-message.user { margin-right: auto; color: white; background: #2d2a69; border-bottom-left-radius: 5px; }.ai-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }.ai-suggestions button { border: 1px solid rgba(102,87,232,.2); border-radius: 999px; background: var(--paper); color: #5c50cf; padding: 8px 11px; font-weight: 700; font-size: .72rem; }.ai-compose { min-height: 75px; padding: 12px 15px; display: flex; align-items: end; gap: 9px; border-top: 1px solid var(--line); }.ai-compose textarea { flex: 1; resize: none; min-height: 47px; max-height: 100px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); color: var(--ink); padding: 12px 13px; outline: none; }.ai-compose button { width: 47px; height: 47px; border: 0; border-radius: 15px; background: var(--violet); color: white; display: grid; place-items: center; }.ai-compose svg { width: 20px; height: 20px; transform: rotate(180deg); }
.toast-stack { position: fixed; z-index: 100; left: 24px; top: 24px; display: grid; gap: 8px; }.toast { min-width: 260px; max-width: 360px; background: #10271e; color: white; padding: 12px 14px; border-radius: 14px; box-shadow: 0 16px 40px rgba(3,12,18,.22); animation: toastIn .25s ease both; display: flex; align-items: center; gap: 9px; }.toast::before { content: "✓"; width: 24px; height: 24px; border-radius: 8px; background: var(--mint); color: #063b35; display: grid; place-items: center; font-weight: 900; }.toast.out { animation: toastOut .25s ease both; }@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}}@keyframes toastOut{to{opacity:0;transform:translateY(-8px)}}
.ai-fab { color: #171104; background: linear-gradient(135deg, #d98f16, #f7c75f); box-shadow: 0 14px 34px rgba(217, 143, 22, .3); }
.ai-head { color: #fff9ed; background: linear-gradient(135deg, #1a1a1a, #3a2d19); }
.ai-head small { color: #ecd6aa; }
.ai-message.user { color: #fff9ed; background: #3a2d19; }
.ai-suggestions button { border-color: rgba(233, 164, 38, .28); color: var(--mint-dark); }
.mobile-scrim { display: none; }

@media (max-width: 1220px) {
    .property-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
    .inventory-toolbar { align-items: flex-start; flex-direction: column; }.inventory-filters { width: 100%; }
}
@media (max-width: 1050px) {
    .stats { grid-template-columns: repeat(2, 1fr); }.kanban { grid-template-columns: repeat(4, 290px); }.topbar { flex-wrap: wrap; }.global-search { order: 3; max-width: none; flex-basis: 100%; }
    .property-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }.map-layout { grid-template-columns: 280px minmax(500px,1fr); overflow-x: auto; }.report-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .app-shell { grid-template-columns: 1fr; }.rail { position: fixed; right: 0; transform: translateX(110%); transition: .25s; width: 108px; box-shadow: -18px 0 45px rgba(12,23,33,.22); }.rail.open { transform: none; }.workspace { padding: 18px 14px 78px; }.menu-toggle { display: grid; }.page-title { min-width: 0; }.top-actions { margin-right: auto; }.stats { grid-template-columns: 1fr 1fr; }.surface { padding: 13px; border-radius: 22px; }.surface-head { align-items: flex-start; flex-wrap: wrap; }.head-controls { margin-right: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; }.filter-row { flex-wrap: wrap; }.filter-row label { flex: 1 1 145px; }.filter-row select { width: 100%; min-width: 0; }.kanban { grid-template-columns: repeat(4, 270px); }.mobile-scrim.show { display: block; position: fixed; inset: 0; border: 0; background: rgba(12,23,33,.42); z-index: 20; }.inventory-filters { grid-template-columns: 1fr 1fr; }.property-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.property-visual { height: 125px; }.map-layout { grid-template-columns: 1fr; overflow: visible; }.map-list { max-height: none; }.project-map { min-height: 520px; }.chat-shell { grid-template-columns: 1fr; }.conversation-list { max-height: 270px; border: 0; border-bottom: 1px solid var(--line); }.chat-room { min-height: 520px; }.report-grid { grid-template-columns: 1fr; }.report-wide { grid-column: auto; }.form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.ai-fab { left: 15px; bottom: 15px; width: 50px; padding: 0; justify-content: center; }.ai-fab span { display: none; }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr; }.topbar { gap: 10px; }.page-title h1 { font-size: 1.32rem; }.icon-btn { width: 44px; height: 44px; }.top-actions .icon-btn:last-child { display: none; }.global-search kbd { display: none; }.global-search input { padding-left: 14px; }.surface-head p { max-width: 290px; }.segmented { order: 3; width: 100%; }.segmented button { flex: 1; }.property-grid { grid-template-columns: 1fr; }.inventory-filters { grid-template-columns: 1fr; }.inventory-toolbar { padding: 17px; }.property-visual { height: 160px; }.project-map { min-height: 480px; }.map-chip { padding: 7px 9px; font-size: .69rem; }.report-card { padding: 17px; }.bar-chart { padding-inline: 5px; gap: 10px; }.drawer-panel { padding: 16px; }.detail-grid { grid-template-columns: 1fr 1fr; }.property-modal-specs { grid-template-columns: 1fr 1fr; }.property-modal-title { display: block; }.property-modal-title b { display: block; margin-top: 8px; }.message { max-width: 88%; }
}

@media (max-width: 430px) {
    .company-link { padding-inline: 10px; }
    .company-link small { display: none; }
    .company-link svg { grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
