:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #18201b; background: #f7f8fc; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
aside { position: sticky; top: 0; height: 100vh; padding: 24px 16px; background: rgba(255, 255, 255, .96); color: #111827; border-right: 1px solid #e8eaf0; box-shadow: 8px 0 30px rgba(17, 24, 39, .025); display: flex; flex-direction: column; }
.brand { color: #111827; text-decoration: none; display: flex; align-items: center; gap: 12px; margin: 0 10px 30px; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .24); font-weight: 800; }
.brand b { letter-spacing: -.02em; }
nav { display: grid; gap: 4px; }
nav a { padding: 11px 13px; border-radius: 11px; color: #667085; text-decoration: none; font-size: 14px; font-weight: 650; transition: background .16s ease, color .16s ease, transform .16s ease; }
nav a:hover { color: #4338ca; background: #f5f3ff; transform: translateX(2px); }
nav a.active { color: #4338ca; background: linear-gradient(135deg, #eef2ff, #f5f3ff); box-shadow: inset 3px 0 #6366f1; }
.nav-group { display: grid; gap: 3px; }
.nav-children { display: grid; gap: 2px; margin: 1px 0 5px 14px; padding-left: 10px; border-left: 1px solid #dfe3ec; }
.nav-children a { padding: 8px 10px; border-radius: 9px; font-size: 12px; }
.nav-children a.active { box-shadow: none; background: #f5f3ff; }
.user { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 15px 8px 0; border-top: 1px solid #eaecf0; }
.user > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); font-weight: 800; }
.user div { display: grid; gap: 2px; min-width: 0; }
.user b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user small { color: #98a2b3; font-size: 11px; }
main { width: min(1240px, 100%); padding: 40px clamp(24px, 4vw, 58px) 70px; }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h1, h2, h3, p { margin: 0; }
h1 { color: #101828; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
header p { margin-top: 10px; color: #6f7772; }
.eyebrow { display: block; margin-bottom: 8px; color: #7c3aed; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; margin-bottom: 34px; }
.metric { border: 1px solid #e6e8ef; background: rgba(255, 255, 255, .94); border-radius: 16px; padding: 17px; text-align: left; color: #667085; cursor: pointer; box-shadow: 0 8px 24px rgba(16, 24, 40, .045); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.metric span { display: block; margin-bottom: 6px; color: #172219; font-size: 25px; line-height: 1; font-weight: 800; }
.metric:hover { border-color: #c7d2fe; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99, 102, 241, .09); }
.metric.overdue span { color: #c74432; }
.business-overview { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr); gap: 20px; align-items: center; margin: -12px 0 34px; padding: 18px 20px; background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid #e0e7ff; border-radius: 18px; }
.business-overview h2 { font-size: 18px; letter-spacing: -.02em; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 8px; }
.overview-metric { display: grid; gap: 5px; padding: 12px; background: rgba(255, 255, 255, .72); border-radius: 11px; }
.overview-metric span { color: #6d786f; font-size: 10px; font-weight: 700; }
.overview-metric b { color: #172219; font-size: 18px; }
.queue-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.queue-head h2 { font-size: 21px; letter-spacing: -.02em; }
.queue-head p { margin-top: 4px; color: #7d8780; font-size: 13px; }
.queue { display: grid; gap: 12px; }
.work-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px; background: #fff; border: 1px solid #e6e8ef; border-radius: 18px; box-shadow: 0 10px 32px rgba(16, 24, 40, .045); }
.score { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #4338ca; background: #eef2ff; font-size: 15px; font-weight: 800; }
.work-topline { display: flex; justify-content: space-between; gap: 20px; }
.work-topline h3 { margin-top: 5px; font-size: 18px; letter-spacing: -.02em; }
.work-topline > strong { white-space: nowrap; font-size: 14px; }
.stage { color: #738078; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.client-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: #657068; font-size: 13px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge { padding: 5px 8px; border-radius: 999px; color: #56645a; background: #f0f3ef; font-size: 10px; font-weight: 700; }
.badge.danger { color: #9d2b20; background: #ffebe8; }
.next-action { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 13px 14px; border-radius: 12px; background: #f7f8f5; color: #566159; font-size: 13px; }
.next-action .eyebrow { display: inline; margin: 0 8px 0 0; }
.next-action > span { max-width: 45%; text-align: right; color: #7d857f; }
.card-actions { display: flex; gap: 9px; align-items: center; margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; text-decoration: none; cursor: pointer; font-weight: 750; font-size: 12px; }
.button.primary { color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed); box-shadow: 0 7px 17px rgba(99, 102, 241, .2); }
.button.primary:hover { background: linear-gradient(135deg, #4f46e5, #6d28d9); }
.button.secondary { color: #475467; background: #f2f4f7; }
.button.danger-soft { color: #b42318; background: #fef3f2; }
.button.success-soft { color: #027a48; background: #ecfdf3; }
.button:disabled { opacity: .55; cursor: wait; }
.text-link { margin-left: auto; color: #486052; background: none; border: 0; text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 700; }
.empty, .loading { min-height: 260px; display: grid; place-content: center; gap: 8px; text-align: center; color: #7b867e; }
.empty b, .loading b { color: #253229; font-size: 18px; }
.loading.error .button { margin: 14px auto 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #eef2ff, transparent 40%), #f8fafc; }
.login-card { width: min(100%, 420px); display: grid; gap: 28px; padding: 36px; background: #fff; border: 1px solid #e7e9ee; border-radius: 24px; box-shadow: 0 24px 70px rgba(42, 48, 66, .12); }
.login-card h1 { margin: 8px 0 6px; font-size: 32px; }
.login-card p { margin: 0; color: #7b8290; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand > span { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; font-weight: 800; border-radius: 14px; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.login-brand div { display: grid; gap: 2px; }
.login-brand small { color: #9298a5; }
.login-form { display: grid; gap: 16px; }
.login-form label:not(.login-remember) { display: grid; gap: 7px; color: #4d5563; font-size: 13px; font-weight: 700; }
.login-form input[type="email"], .login-form input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid #dfe3ea; border-radius: 12px; font: inherit; outline: none; }
.login-form input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px #eef2ff; }
.login-remember { display: flex; align-items: center; gap: 8px; color: #697180; font-size: 13px; }
.login-form .button { width: 100%; justify-content: center; min-height: 44px; }
dialog { width: min(480px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(14, 33, 23, .28); }
dialog::backdrop { background: rgba(11, 24, 17, .55); backdrop-filter: blur(3px); }
dialog form { display: grid; gap: 16px; padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head h2 { font-size: 21px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef1ed; cursor: pointer; font-size: 22px; }
label { display: grid; gap: 7px; color: #59655d; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; color: #1e2922; background: #fff; border: 1px solid #d8ded8; border-radius: 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
textarea { resize: vertical; }
.form-error { min-height: 16px; color: #b3372b; font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.today-entry { position: fixed; right: 18px; bottom: 18px; z-index: 9999; padding: 11px 16px; border-radius: 999px; color: #13261d; background: #d8f04d; box-shadow: 0 8px 30px rgba(19, 38, 29, .2); text-decoration: none; font: 700 13px Inter, sans-serif; }
.wide-main, .pipeline-main { width: 100%; max-width: none; }
.clients-layout { min-height: calc(100vh - 112px); display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 18px; }
.client-list, .client-detail { min-width: 0; padding: 22px; background: #fff; border: 1px solid #e0e5df; border-radius: 20px; box-shadow: 0 10px 34px rgba(28, 49, 37, .04); }
.client-detail { background: transparent; border: 0; box-shadow: none; padding: 4px 8px 40px 16px; }
.panel-head, .section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.panel-head h1 { font-size: 34px; }
.search-box { margin: 22px 0 12px; }
.client-rows { display: grid; gap: 7px; max-height: calc(100vh - 235px); overflow: auto; }
.client-row { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px; text-align: left; color: #26322a; background: transparent; border: 1px solid transparent; border-radius: 13px; cursor: pointer; }
.client-row:hover, .client-row.selected { background: #f3f6f1; border-color: #dce5d8; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #173223; background: #e8f7d0; font-weight: 800; }
.client-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.client-row small { color: #768079; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-meta { color: #7c867f; font-size: 10px; font-weight: 700; }
.client-detail header { margin-bottom: 22px; }
.section-title { margin: 28px 0 12px; }
.section-title h2, .history h2 { font-size: 20px; }
.section-title p { margin-top: 4px; color: #78827b; font-size: 12px; }
.requirement-form { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid #e0e5df; border-radius: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.form-actions .form-error { margin-right: auto; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.match-card { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e0e5df; border-radius: 16px; }
.match-card.interested { border-color: #a8c96c; box-shadow: inset 0 0 0 1px #c9e398; }
.match-check { display: block; }
.match-check input { position: absolute; opacity: 0; pointer-events: none; }
.match-check span { width: 40px; height: 40px; display: grid; place-items: center; color: #173223; background: #eef5e5; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; }
.match-check input:checked + span { background: #d8f04d; box-shadow: 0 0 0 2px #173223; }
.match-body { min-width: 0; }
.match-top { display: flex; justify-content: space-between; gap: 12px; }
.match-top h3 { margin-top: 4px; font-size: 16px; }
.match-top strong { white-space: nowrap; font-size: 12px; }
.match-body > p { margin-top: 7px; color: #68736b; font-size: 12px; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fact-strip span { padding: 6px 8px; color: #526057; background: #f4f6f2; border-radius: 8px; font-size: 10px; font-weight: 700; }
.text-action { padding: 6px; border: 0; color: #3d644a; background: none; cursor: pointer; font-size: 11px; font-weight: 750; }
.text-action.reject { color: #9d4b42; }
.share-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 12px 14px; color: #173223; background: #e8f7d0; border-radius: 13px; }
.share-bar b { margin-right: auto; }
.history { display: grid; gap: 8px; margin-top: 24px; padding: 16px; color: #667168; background: #fff; border-radius: 14px; font-size: 12px; }
.communication-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(360px, 1.28fr); gap: 12px; }
.action-plans, .timeline { min-width: 0; padding: 16px; background: #fff; border: 1px solid #e0e5df; border-radius: 17px; }
.section-title.compact { margin: 0 0 12px; align-items: flex-start; }
.section-title.compact h2 { font-size: 17px; }
.plan-start { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-start .button { grid-column: 1 / -1; }
.plan-list, .timeline-list { display: grid; gap: 8px; margin-top: 12px; }
.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; background: #f5f7f3; border-radius: 11px; }
.plan-card > div { display: grid; gap: 4px; }
.plan-card b { font-size: 12px; }
.plan-card small { color: #748078; font-size: 10px; }
.timeline-list { max-height: 480px; overflow: auto; }
.timeline-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid #e5e9e3; border-radius: 12px; }
.timeline-item.inbound { border-color: #b8d596; background: #fbfff7; }
.timeline-item.outbound { border-color: #d8e1d4; }
.timeline-item.internal { background: #f6f7f5; }
.timeline-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #173223; background: #e8f7d0; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.timeline-head { display: flex; align-items: center; gap: 7px; }
.timeline-head b { font-size: 11px; }
.timeline-head time { margin-left: auto; color: #818b84; font-size: 9px; }
.timeline-item h3 { margin-top: 7px; font-size: 12px; }
.timeline-item p { margin-top: 6px; color: #4f5c53; white-space: pre-wrap; font-size: 11px; line-height: 1.45; }
.timeline-item small { display: block; margin-top: 7px; color: #728078; }
.timeline-actions { display: flex; gap: 7px; margin-top: 10px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 20px; }
.kanban-column { min-height: 430px; padding: 10px; background: #e9ede7; border-radius: 16px; }
.kanban-head { display: flex; justify-content: space-between; padding: 8px 7px 14px; color: #4d5c52; font-size: 12px; }
.kanban-head span { min-width: 23px; padding: 3px 7px; text-align: center; background: #fff; border-radius: 999px; }
.transaction-main { min-width: 0; }
.deal-picker { min-width: 300px; }
.phase-track { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 22px; }
.phase-track span { flex: 0 0 auto; padding: 8px 12px; color: #6d786f; background: #e9ede7; border-radius: 999px; font-size: 12px; font-weight: 700; }
.phase-track span.done { color: #24613d; background: #d9ebdf; }
.phase-track span.current { color: #fff; background: #173f2a; }
.transaction-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.room-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.transaction-items { display: grid; gap: 10px; }
.transaction-item { display: flex; justify-content: space-between; gap: 16px; padding: 15px; background: #fff; border: 1px solid #dfe5df; border-radius: 14px; }
.transaction-item.complete, .transaction-item.waived { background: #f1f7f3; border-color: #c4dccb; }
.transaction-item > div:first-child { display: grid; gap: 5px; }
.transaction-item small { color: #6d786f; overflow-wrap: anywhere; }
.item-kind { width: max-content; padding: 3px 7px; color: #4d5c52; background: #edf0ed; border-radius: 5px; font-size: 10px; font-weight: 800; }
.item-actions { display: flex; align-items: center; gap: 8px; }
.financial-card, .transaction-empty { padding: 20px; background: #fff; border: 1px solid #dfe5df; border-radius: 16px; }
.financial-card form { display: grid; gap: 12px; }
.financial-card label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.finance-choice { display: flex; gap: 10px; margin-top: 18px; }
@media (max-width: 900px) { .transaction-grid { grid-template-columns: 1fr; } .deal-picker { min-width: 0; } .transaction-item { flex-direction: column; } }
.deal-list { display: grid; gap: 9px; }
.deal-card { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid #dfe5dd; border-radius: 13px; box-shadow: 0 7px 18px rgba(28, 49, 37, .035); }
.deal-card h3 { margin-top: 4px; font-size: 14px; }
.deal-client { color: #3d604a; font-size: 12px; font-weight: 700; }
.deal-card > strong { font-size: 12px; }
.deal-next { display: grid; gap: 3px; padding: 9px; background: #f5f7f3; border-radius: 9px; font-size: 10px; }
.deal-next span, .column-empty { color: #7c867f; }
.column-empty { display: block; padding: 28px 8px; text-align: center; font-size: 11px; }
@media (max-width: 980px) { .metrics { grid-template-columns: repeat(3, 1fr); } .business-overview { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .shell { display: block; }
  aside { position: static; height: auto; padding: 14px 16px; flex-direction: row; align-items: center; overflow: auto; }
  .brand { margin: 0 12px 0 0; flex: 0 0 auto; }
  .brand b, .user { display: none; }
  nav { display: flex; }
  .nav-group { display: flex; flex: 0 0 auto; }
  .nav-children { display: flex; margin: 0 0 0 3px; padding: 0 0 0 3px; border: 0; }
  nav a { white-space: nowrap; }
  main { padding: 28px 16px 50px; }
  header { align-items: center; }
  header p { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .overview-metrics { grid-template-columns: repeat(2, 1fr); }
  .work-card { grid-template-columns: 1fr; padding: 16px; }
  .clients-layout { grid-template-columns: 1fr; }
  .communication-grid { grid-template-columns: 1fr; }
  .client-rows { max-height: 280px; }
  .client-detail { padding: 10px 0 40px; }
  .match-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .score { width: auto; height: 6px; font-size: 0; }
  .next-action { display: grid; gap: 5px; }
  .next-action > span { max-width: none; text-align: left; }
}
@media (max-width: 430px) { .work-topline { display: grid; gap: 8px; } .card-actions { flex-wrap: wrap; } .text-link { width: 100%; margin: 6px 0 0; } }
.tasks-main { width: 100%; max-width: 1380px; }
.task-summary { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.task-summary article { display: grid; gap: 7px; padding: 18px; background: #fff; border: 1px solid #e6e8ef; border-radius: 16px; box-shadow: 0 8px 24px rgba(16, 24, 40, .04); }
.task-summary span { color: #667085; font-size: 11px; font-weight: 700; }
.task-summary b { color: #101828; font-size: 24px; }
.task-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.task-filter { min-height: 34px; padding: 0 13px; color: #667085; background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 750; }
.task-filter.active { color: #fff; background: #4338ca; border-color: #4338ca; }
.task-list { display: grid; gap: 10px; }
.task-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 17px 18px; background: #fff; border: 1px solid #e6e8ef; border-radius: 17px; box-shadow: 0 7px 22px rgba(16, 24, 40, .035); }
.task-card.complete { opacity: .66; }
.task-card.complete h3 { text-decoration: line-through; }
.task-check { width: 28px; height: 28px; color: #fff; background: #fff; border: 2px solid #cbd5e1; border-radius: 9px; cursor: pointer; font-weight: 900; }
.task-card.complete .task-check { background: #22a06b; border-color: #22a06b; }
.task-body { min-width: 0; }
.task-title { display: flex; align-items: center; gap: 8px; }
.task-title h3 { color: #101828; font-size: 15px; }
.task-body > p { margin-top: 6px; color: #667085; font-size: 12px; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: #98a2b3; font-size: 10px; }
.task-meta a { color: #4f46e5; text-decoration: none; }
.task-meta time { margin-left: auto; }
.task-meta time.overdue { color: #b42318; font-weight: 800; }
.priority-pill { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.priority-pill.high { color: #b42318; background: #fef3f2; }
.priority-pill.medium { color: #b54708; background: #fffaeb; }
.priority-pill.low { color: #475467; background: #f2f4f7; }
.status-pill.task-status { color: #4338ca; background: #eef2ff; }
.task-actions { display: flex; align-items: center; gap: 7px; }
@media (max-width: 720px) { .task-summary { grid-template-columns: repeat(2, 1fr); } .task-card { grid-template-columns: 30px minmax(0, 1fr); } .task-actions { grid-column: 2; } .task-meta time { margin-left: 0; } }
.insights-main { max-width: 1500px; }
.insight-metrics { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.insight-metric, .insight-panel { background: #fff; border: 1px solid #dfe5df; border-radius: 16px; box-shadow: 0 8px 22px rgba(28, 49, 37, .035); }
.insight-metric { display: grid; gap: 6px; padding: 17px; }
.insight-metric span, .insight-metric small, .definition { color: #6d786f; font-size: 11px; }
.insight-metric b { font-size: 21px; }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.insight-panel { padding: 18px; }
.insight-panel.wide { grid-column: 1 / -1; }
.insight-bar { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; align-items: center; margin: 12px 0; font-size: 11px; }
.insight-bar i { height: 8px; overflow: hidden; background: #edf1ed; border-radius: 999px; }
.insight-bar em { display: block; height: 100%; background: #88aa39; border-radius: inherit; }
.source-table > div { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0ed; font-size: 11px; }
.risk-list { display: grid; gap: 8px; }
.risk-list > div { display: grid; grid-template-columns: 90px minmax(150px, 1fr) minmax(130px, 1fr) 120px minmax(170px, 1fr); gap: 10px; align-items: center; padding: 10px; background: #f7f8f5; border-radius: 10px; font-size: 11px; }
.copilot form { display: flex; gap: 8px; }
.copilot form input { flex: 1; }
.copilot-answer { display: grid; gap: 8px; margin-top: 12px; }
.copilot-answer > div { display: flex; justify-content: space-between; }
.copilot-answer pre { max-height: 240px; overflow: auto; margin: 0; padding: 12px; color: #2f4337; background: #f5f7f3; border-radius: 10px; white-space: pre-wrap; font-size: 11px; }
.definition { margin-top: 16px; }
@media (max-width: 980px) { .insight-metrics { grid-template-columns: repeat(2, 1fr); } .insight-grid { grid-template-columns: 1fr; } .insight-panel.wide { grid-column: auto; } .risk-list > div, .source-table > div { grid-template-columns: 1fr 1fr; } }
.team-main { width: 100%; max-width: 1380px; }
.team-summary { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; margin-bottom: 24px; }
.team-summary article { display: grid; gap: 7px; padding: 18px; background: #fff; border: 1px solid #e6e8ef; border-radius: 16px; box-shadow: 0 8px 24px rgba(16, 24, 40, .04); }
.team-summary span { color: #667085; font-size: 11px; font-weight: 700; }
.team-summary b { color: #101828; font-size: 24px; }
.team-list { display: grid; gap: 10px; }
.team-card { display: grid; grid-template-columns: 46px minmax(220px, 1fr) auto auto; gap: 15px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid #e6e8ef; border-radius: 17px; box-shadow: 0 7px 22px rgba(16, 24, 40, .035); }
.team-card.inactive { opacity: .68; background: #f9fafb; }
.team-avatar { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-radius: 14px; font-weight: 800; }
.team-info { min-width: 0; }
.team-title { display: flex; align-items: center; gap: 8px; }
.team-title h3 { color: #101828; font-size: 15px; }
.team-info > a { display: inline-block; margin-top: 4px; color: #4f46e5; text-decoration: none; font-size: 12px; }
.team-info > p { margin-top: 4px; color: #98a2b3; font-size: 10px; }
.status-pill, .role-pill { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-pill.active { color: #027a48; background: #ecfdf3; }
.status-pill.inactive { color: #b42318; background: #fef3f2; }
.role-pill { color: #344054; background: #f2f4f7; }
.role-pill.admin { color: #6941c6; background: #f4f3ff; }
.team-actions { min-width: 226px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.self-label { padding: 0 8px; color: #98a2b3; font-size: 10px; font-weight: 700; }
#user-form small { color: #98a2b3; font-weight: 500; }
@media (max-width: 980px) { .team-card { grid-template-columns: 46px minmax(0, 1fr) auto; } .team-actions { grid-column: 2 / -1; justify-content: flex-start; } }
@media (max-width: 720px) { .team-summary { grid-template-columns: repeat(2, 1fr); } .team-card { grid-template-columns: 42px minmax(0, 1fr); } .role-pill { grid-column: 2; } .team-actions { grid-column: 1 / -1; min-width: 0; } }
.records-main, .analytics-main { width: 100%; max-width: 1450px; }
.record-summary, .analytics-summary { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 11px; margin-bottom: 22px; }
.record-summary.compact { grid-template-columns: repeat(3, minmax(150px, 220px)); }
.record-summary article, .analytics-summary article { display: grid; gap: 7px; padding: 17px; background: #fff; border: 1px solid #e6e8ef; border-radius: 16px; box-shadow: 0 8px 24px rgba(16, 24, 40, .04); }
.record-summary span, .analytics-summary span { color: #667085; font-size: 10px; font-weight: 750; }
.record-summary b, .analytics-summary b { color: #101828; font-size: 22px; }
.analytics-summary { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
.analytics-summary article:nth-last-child(-n+2) b { font-size: 17px; }
.record-toolbar { display: flex; gap: 9px; margin-bottom: 16px; }
.record-toolbar input { max-width: 430px; }
.record-toolbar select { width: 190px; }
.record-list { display: grid; gap: 10px; }
.record-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; gap: 15px; align-items: center; padding: 17px 18px; background: #fff; border: 1px solid #e6e8ef; border-radius: 17px; box-shadow: 0 7px 22px rgba(16, 24, 40, .035); }
.record-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #4338ca; background: #eef2ff; border-radius: 14px; font-weight: 850; text-transform: uppercase; }
.record-main { min-width: 0; }
.record-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.record-title h3 { color: #101828; font-size: 15px; }
.record-main > p { margin-top: 5px; color: #667085; font-size: 11px; }
.record-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.record-facts span, .source-pill { padding: 4px 7px; color: #475467; background: #f2f4f7; border-radius: 7px; font-size: 9px; font-weight: 700; }
.source-pill { color: #6941c6; background: #f4f3ff; }
.record-value { white-space: nowrap; color: #344054; font-size: 12px; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-panel { min-width: 0; padding: 18px; background: #fff; border: 1px solid #e6e8ef; border-radius: 17px; box-shadow: 0 8px 24px rgba(16, 24, 40, .035); }
.analytics-panel.wide { grid-column: 1 / -1; }
.analytics-bar { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(130px, 1.5fr) minmax(72px, auto); gap: 10px; align-items: center; margin: 12px 0; color: #475467; font-size: 10px; }
.analytics-bar i { height: 9px; overflow: hidden; background: #f2f4f7; border-radius: 999px; }
.analytics-bar em { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: inherit; }
.analytics-bar b { text-align: right; color: #344054; }
.analytics-table { display: grid; }
.analytics-table > div { display: grid; grid-template-columns: 1.2fr .5fr 1fr 1fr; gap: 9px; padding: 11px 0; border-bottom: 1px solid #f0f1f4; color: #667085; font-size: 10px; }
.analytics-table .table-head { color: #98a2b3; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.analytics-table b { color: #344054; }
.empty.compact { min-height: 100px; }
@media (max-width: 1050px) { .record-summary, .analytics-summary { grid-template-columns: repeat(3, 1fr); } .record-card { grid-template-columns: 46px minmax(0, 1fr) auto; } .record-actions { grid-column: 2 / -1; } }
@media (max-width: 720px) { .record-summary, .record-summary.compact, .analytics-summary { grid-template-columns: repeat(2, 1fr); } .record-toolbar { display: grid; } .record-toolbar input, .record-toolbar select { width: 100%; max-width: none; } .record-card { grid-template-columns: 42px minmax(0, 1fr); } .record-value { grid-column: 2; } .record-actions { grid-column: 1 / -1; justify-content: flex-start; } .analytics-grid { grid-template-columns: 1fr; } .analytics-panel.wide { grid-column: auto; } .analytics-bar { grid-template-columns: 90px 1fr 70px; } .analytics-table { overflow-x: auto; } .analytics-table > div { min-width: 520px; } }

.listings-main { width: 100%; max-width: 1540px; }
.listing-tabs { display: flex; gap: 0; overflow-x: auto; margin-bottom: 0; border-bottom: 1px solid #e4e7ec; }
.listing-tabs button { flex: 0 0 auto; padding: 12px 16px; color: #98a2b3; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.listing-tabs button:hover { color: #667085; }
.listing-tabs button.active { color: #4f46e5; border-bottom-color: #6366f1; }
.listing-filters { display: grid; gap: 9px; padding: 13px 0 12px; border-bottom: 1px solid #e7e9ee; }
.listing-filters > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.listing-filters input, .listing-filters select { width: auto; min-height: 35px; padding: 8px 10px; font-size: 11px; }
.listing-filters #listing-search { width: 250px; }
.listing-filters #minPrice, .listing-filters #maxPrice { width: 160px; }
.listing-filters > div > span { color: #c6cad2; }
.listing-count { padding: 12px 0 8px; color: #98a2b3; font-size: 11px; }
.listing-count b { color: #475467; }
.listing-table { min-width: 1080px; overflow: hidden; }
.listing-table-head, .listing-row { display: grid; grid-template-columns: 106px 28px 52px minmax(170px, 1.35fr) 52px 58px 75px minmax(115px, .8fr) minmax(120px, .9fr) 78px 78px; gap: 10px; align-items: center; }
.listing-table-head { padding: 9px 8px; color: #98a2b3; border-bottom: 2px solid #eaecf0; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.listing-row { width: 100%; min-height: 78px; padding: 8px; color: #475467; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #f0f1f4; cursor: pointer; font-size: 10px; }
.listing-row:hover { background: #f4f3ff; }
.listing-cover { width: 96px; height: 62px; display: grid; place-items: center; overflow: hidden; color: #667085; background: #f2f4f7; border-radius: 12px; font-size: 20px; }
.listing-cover img { width: 100%; height: 100%; object-fit: cover; }
.listing-index { color: #98a2b3; }
.listing-agent { color: #667085; font-weight: 800; }
.listing-location { min-width: 0; display: grid; gap: 5px; }
.listing-location b, .listing-price b { color: #101828; font-size: 11px; }
.listing-location small { overflow: hidden; color: #667085; text-overflow: ellipsis; white-space: nowrap; }
.listing-price { display: grid; gap: 2px; }
.listing-price small { color: #98a2b3; }
.listing-badge { width: max-content; padding: 5px 8px; color: #475467; background: #f2f4f7; border-radius: 999px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.listing-badge.ready, .listing-badge.vacant { color: #027a48; background: #ecfdf3; }
.listing-badge.offplan, .listing-badge.booked { color: #b54708; background: #fffaeb; }
.listing-badge.rented { color: #6941c6; background: #f4f3ff; }
.listing-badge.available { color: #027a48; background: #ecfdf3; }
.listing-badge.draft, .listing-badge.archived { color: #475467; background: #f2f4f7; }
.listing-badge.reserved { color: #b54708; background: #fffaeb; }
.listing-badge.sold { color: #175cd3; background: #eff8ff; }
.listing-editor { width: min(980px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; }
.listing-editor form { gap: 18px; }
.listing-form-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; color: #667085; background: #f2f4f7; border-radius: 11px; font-size: 10px; font-weight: 800; text-align: center; }
.listing-form-tabs span { padding: 7px; }
.listing-form-section { display: grid; gap: 13px; padding: 17px; border: 1px solid #e4e7ec; border-radius: 15px; }
.listing-form-section h3 { color: #344054; font-size: 13px; }
.listing-form-section label small { color: #98a2b3; font-size: 9px; font-weight: 500; }
.listing-form-section .listing-publish { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.listing-publish input { width: 16px; height: 16px; }
.listing-detail { width: min(620px, 100vw); max-width: none; height: 100vh; max-height: 100vh; margin: 0 0 0 auto; border-radius: 0; }
.listing-detail::backdrop { background: rgba(16, 24, 40, .28); }
.listing-drawer { min-height: 100%; padding-bottom: 26px; background: #fff; }
.listing-drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #eaecf0; }
.listing-drawer-head h2 { font-size: 17px; }
.listing-drawer-head p { margin-top: 5px; color: #667085; font-size: 11px; }
.listing-drawer-head > div:last-child { display: flex; gap: 6px; }
.listing-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82%, 1fr); gap: 8px; overflow-x: auto; padding: 18px 22px; }
.listing-gallery img, .listing-gallery > div { width: 100%; height: 250px; object-fit: cover; border-radius: 15px; }
.listing-gallery > div { display: grid; place-items: center; color: #98a2b3; background: #f2f4f7; }
.listing-price-block { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; padding: 4px 22px 18px; border-bottom: 1px solid #f0f1f4; }
.listing-price-block b { color: #101828; font-size: 26px; }
.listing-price-block span { margin-bottom: 3px; color: #667085; font-size: 12px; }
.listing-price-block small { width: 100%; color: #98a2b3; }
.listing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 22px; border-bottom: 1px solid #f0f1f4; }
.listing-facts div { display: grid; gap: 4px; }
.listing-facts span { color: #98a2b3; font-size: 9px; }
.listing-facts b { color: #344054; font-size: 11px; }
.listing-statuses { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 22px; border-bottom: 1px solid #f0f1f4; }
.listing-drawer section { display: grid; gap: 10px; padding: 18px 22px; border-bottom: 1px solid #f0f1f4; }
.listing-drawer section h3 { color: #475467; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.listing-drawer section p { color: #475467; white-space: pre-wrap; font-size: 11px; line-height: 1.6; }
.listing-drawer section a { color: #4f46e5; text-decoration: none; font-size: 11px; font-weight: 700; }
.listing-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-chips span { padding: 6px 9px; color: #4f46e5; background: #eef2ff; border-radius: 8px; font-size: 9px; font-weight: 750; }
.listing-chips.neutral span { color: #475467; background: #f2f4f7; }
.listing-links { display: flex !important; flex-direction: row; align-items: center; justify-content: space-between; }
@media (max-width: 1200px) { .listings-main { overflow-x: auto; } }
@media (max-width: 720px) {
  .listing-filters > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-filters input, .listing-filters select, .listing-filters #listing-search, .listing-filters #minPrice, .listing-filters #maxPrice { width: 100%; }
  .listing-filters #listing-search { grid-column: 1 / -1; }
  .listing-editor .form-grid, .listing-editor .form-grid.three { grid-template-columns: 1fr; }
  .listing-detail { width: 100vw; }
  .listing-drawer-head { padding: 14px; }
  .listing-drawer-head > div:last-child .button { display: none; }
  .listing-gallery, .listing-facts, .listing-statuses, .listing-drawer section, .listing-price-block { padding-left: 14px; padding-right: 14px; }
}
