:root {
  --ink: #172a2b;
  --muted: #738181;
  --line: #e7ece9;
  --paper: #ffffff;
  --canvas: #f6f8f6;
  --green: #155e57;
  --green-dark: #0f4843;
  --green-soft: #e7f2ef;
  --coral: #e9705b;
  --coral-soft: #fff0ec;
  --blue: #4c77a6;
  --blue-soft: #ecf2f8;
  --gold: #bd872c;
  --gold-soft: #fbf3e4;
  --shadow: 0 12px 34px rgba(24, 46, 43, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 244px; padding: 27px 18px 20px; background: #102d2c; color: #dce8e4; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 32px; color: white; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; background: #f3ba59; color: #153130; border-radius: 11px; }
.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 2.2; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Manrope, sans-serif; font-size: 16px; letter-spacing: -.2px; }
.brand small { margin-top: 1px; color: #96afaa; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; border-radius: 9px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; color: #aac0bb; background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.8; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: rgba(255,255,255,.1); font-weight: 600; }
.nav-count { margin-left: auto; min-width: 23px; padding: 2px 6px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11px; text-align: center; }
.nav-count.accent { color: white; background: var(--coral); }
.unread-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--coral); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 3px; }
.profile-card { margin-top: 14px; padding: 14px 9px 2px; border-top: 1px solid rgba(255,255,255,.11); display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #183332; background: #d7b16d; font-size: 11px; font-weight: 700; }
.profile-card strong, .profile-card small { display: block; white-space: nowrap; }
.profile-card strong { color: white; font-size: 11px; }
.profile-card small { margin-top: 2px; color: #8da6a1; font-size: 9px; }
.profile-card button { padding: 5px 0; border: 0; color: #9cb2ae; background: none; cursor: pointer; letter-spacing: 1px; }

.main-content { min-width: 0; grid-column: 2; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 20; padding: 0 46px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-spacer { flex: 1; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; background: white; cursor: pointer; position: relative; }
.icon-button svg { width: 18px; }
.notification i { width: 6px; height: 6px; position: absolute; right: 7px; top: 7px; border: 1.5px solid white; border-radius: 50%; background: var(--coral); }
.topbar{position:relative}.partner-notification-panel{position:absolute;z-index:50;right:86px;top:58px;width:min(390px,calc(100vw - 24px));max-height:min(650px,calc(100vh - 80px));overflow:hidden;border:1px solid #d8e1dd;border-radius:14px;background:#fff;box-shadow:0 22px 65px #102d2440}.partner-notification-panel>header{display:flex;align-items:center;padding:15px 16px;background:#143e34;color:#fff}.partner-notification-panel>header span{flex:1}.partner-notification-panel>header small{color:#dfb95f;font-size:8px;font-weight:800;letter-spacing:.12em}.partner-notification-panel>header h2{margin:3px 0 0;font-size:19px}.partner-notification-panel>header button{border:0;background:transparent;color:#fff;font-size:24px}.partner-notification-list{max-height:540px;overflow:auto}.partner-notification-list article{display:flex;flex-direction:column;padding:13px 15px;border-bottom:1px solid #e6ebe8}.partner-notification-list article.unread{background:#f4faf7;box-shadow:inset 3px 0 #36715d}.partner-notification-list article.important{box-shadow:inset 3px 0 #be8629}.partner-notification-list article.urgent{box-shadow:inset 3px 0 #b84d43}.partner-notification-list article>small{color:#9b7025;font-size:7px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.partner-notification-list article>strong{margin-top:3px;color:#203b33;font-size:11px}.partner-notification-list article>p{margin:4px 0;color:#65766f;font-size:9px;line-height:1.5}.partner-notification-list article>time{color:#8b9792;font-size:7px}.partner-notification-list article>div{display:flex;gap:12px;margin-top:8px}.partner-notification-list article button,.partner-notification-list article a{border:0;padding:0;background:transparent;color:#2c6753;text-decoration:none;font-size:8px;font-weight:900}.partner-notification-empty{margin:0;padding:30px 22px;color:#71817a;text-align:center;font-size:10px;line-height:1.6}@media(max-width:620px){.partner-notification-panel{position:fixed;right:8px;left:8px;top:62px;width:auto}}
.partner-push-preference{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 13px;border-bottom:1px solid #e1e7e4;background:#f2f7f4;color:#65776f;font-size:8px}.partner-push-preference button{border:1px solid #bdd1c8;border-radius:7px;padding:5px 8px;background:#fff;color:#2b6652;font-size:8px;font-weight:900}
.add-listing-button { min-height: 40px; padding: 0 17px; border: 0; border-radius: 9px; color: white; background: var(--green); font-weight: 600; cursor: pointer; box-shadow: 0 4px 13px rgba(21, 94, 87, .18); transition: .18s ease; }
.add-listing-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.add-listing-button span { margin-right: 4px; font-size: 18px; font-weight: 400; }
.mobile-menu { display: none; }
.page { max-width: 1480px; margin: 0 auto; padding: 45px 46px 24px; }
.hidden { display: none !important; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.35px; }
h1, h2 { font-family: Manrope, sans-serif; }
h1 { margin: 0; font-size: clamp(27px, 3vw, 36px); letter-spacing: -1.25px; line-height: 1.2; }
.lede { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.portfolio-switcher { min-width: 235px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 10px; align-items: center; background: white; cursor: pointer; }
.mini-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.portfolio-switcher div { flex: 1; }
.portfolio-switcher small, .portfolio-switcher strong { display: block; }
.portfolio-switcher small { color: var(--muted); font-size: 9px; }
.portfolio-switcher strong { margin-top: 2px; font-size: 11px; }
.portfolio-switcher svg { width: 14px; }

.metrics-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.metric-card { min-height: 156px; padding: 19px 20px; }
.metric-top { min-height: 36px; display: flex; justify-content: space-between; align-items: flex-start; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.metric-icon svg { width: 17px; }
.green { color: var(--green); background: var(--green-soft); }
.coral { color: var(--coral); background: var(--coral-soft); }
.blue { color: var(--blue); background: var(--blue-soft); }
.gold { color: var(--gold); background: var(--gold-soft); }
.trend { padding: 4px 7px; border-radius: 12px; font-size: 9px; font-weight: 600; }
.trend.up { color: #39816f; background: #edf7f3; }
.trend.neutral { color: #657475; background: #f1f4f3; }
.metric-card > p { margin: 14px 0 3px; color: var(--muted); font-size: 11px; }
.metric-card > strong { display: block; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.5px; }
.metric-card > small { display: block; margin-top: 5px; color: #98a4a3; font-size: 9px; }

.dashboard-grid { margin-top: 15px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 15px; }
.panel { overflow: hidden; }
.panel-heading { min-height: 75px; padding: 19px 21px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 14px; letter-spacing: -.2px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.text-button { padding: 3px; border: 0; color: var(--green); background: none; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.text-button span { margin-left: 4px; }
.application { padding: 14px 20px; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.application:last-child { border: 0; }
.applicant-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 10px; font-weight: 700; }
.application h3 { margin: 0 0 3px; font-size: 11px; }
.application p { margin: 0; color: var(--muted); font-size: 9px; }
.match { text-align: right; }
.match strong { display: block; color: #347564; font-size: 10px; }
.match small { display: block; margin-top: 3px; color: #96a29f; font-size: 8px; }
.match-meter { width: 54px; height: 3px; margin-top: 5px; overflow: hidden; border-radius: 3px; background: #e8eeeb; }
.match-meter i { display: block; height: 100%; border-radius: inherit; background: #55a48c; }
.activity-list { padding: 2px 20px; }
.activity { padding: 13px 0; display: grid; grid-template-columns: 29px 1fr; gap: 11px; border-bottom: 1px solid var(--line); }
.activity:last-child { border: 0; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; }
.activity-icon svg { width: 13px; }
.activity p { margin: 0 0 3px; font-size: 9px; }
.activity p:nth-child(2) { color: var(--muted); }
.activity small { color: #9aa6a4; font-size: 8px; }

.properties-panel { margin-top: 15px; }
.properties-panel .panel-heading { align-items: center; }
.table-actions { display: flex; gap: 7px; }
.search-box { height: 32px; min-width: 185px; padding: 0 10px; display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; }
.search-box svg { width: 13px; color: #879493; }
.search-box input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); font-size: 9px; }
.filter-button { height: 32px; padding: 0 10px; display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; cursor: pointer; }
.filter-button svg { width: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 21px; color: #8c9896; background: #fafbf9; font-size: 8px; font-weight: 600; letter-spacing: .35px; text-align: left; text-transform: uppercase; }
td { padding: 13px 21px; border-top: 1px solid var(--line); font-size: 10px; white-space: nowrap; }
tbody tr { transition: .15s ease; }
tbody tr:hover { background: #fbfcfb; }
.property-cell { display: flex; align-items: center; gap: 10px; }
.property-thumb { width: 40px; height: 31px; border-radius: 6px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #b9c2b5, #53706a); font-size: 9px; font-weight: 700; }
.property-cell strong, .property-cell small { display: block; }
.property-cell strong { font-size: 10px; }
.property-cell small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 10px; font-size: 8px; font-weight: 600; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.live { color: #397967; background: #eaf5f1; }
.status.review { color: #9a762e; background: #faf2df; }
.status.synced { color: #4b6f92; background: #edf3f8; }
.status.synced::before { display: none; }
.status.synced i { display: inline-flex; }
.status.synced svg { width: 10px; }
.interest { display: flex; align-items: center; gap: 7px; }
.interest-bar { width: 46px; height: 4px; overflow: hidden; border-radius: 4px; background: #edf0ee; }
.interest-bar i { display: block; height: 100%; background: var(--green); }
.row-menu { border: 0; background: none; cursor: pointer; letter-spacing: 1px; }
footer { padding: 23px 2px 4px; display: flex; justify-content: space-between; color: #9aa5a3; font-size: 9px; }
footer a { margin-left: 18px; color: inherit; text-decoration: none; }

.placeholder-view { min-height: calc(100vh - 76px); display: grid; place-items: center; }
.empty-state { max-width: 430px; padding: 60px 25px; text-align: center; }
.empty-state .empty-icon { width: 64px; height: 64px; margin: 0 auto 21px; display: grid; place-items: center; border-radius: 20px; color: var(--green); background: var(--green-soft); }
.empty-state svg { width: 27px; }
.empty-state p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.empty-state .add-listing-button { margin-top: 13px; }

.documents-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.document-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.document-actions .add-listing-button, .document-actions .upload-button { white-space: nowrap; }
.document-actions .add-listing-button svg { width: 16px; vertical-align: middle; }
.upload-button { min-height: 40px; padding: 0 15px; display: flex; gap: 8px; align-items: center; border: 1px solid #cfdad6; border-radius: 9px; color: var(--green); background: white; font-weight: 600; cursor: pointer; }
.upload-button svg { width: 17px; }
.profile-documents { margin-top: 24px; padding: 22px; border: 1px solid #cfe0da; border-radius: 14px; background: linear-gradient(135deg, #f8fbf9, #edf5f1); }
.profile-documents-copy { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.profile-documents-copy .metric-icon { width: 40px; height: 40px; }
.profile-documents-copy .metric-icon svg { width: 19px; }
.profile-documents-copy .eyebrow { margin-bottom: 4px; }
.profile-documents-copy h2 { margin: 0; font-size: 16px; }
.profile-documents-copy p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.profile-document-types { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.profile-document-types span { padding: 6px 9px; border: 1px solid #d8e5e0; border-radius: 999px; color: #49615e; background: rgba(255,255,255,.8); font-size: 9px; font-weight: 600; }
.profile-files { margin-top: 17px; display: grid; gap: 8px; }
.profile-files-empty { min-height: 54px; padding: 13px 15px; border: 1px dashed #bdd0ca; border-radius: 9px; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.55); }
.profile-files-empty strong, .profile-files-empty small { display: block; }
.profile-files-empty strong { font-size: 10px; }.profile-files-empty small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profile-file { padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; border: 1px solid #dbe6e2; border-radius: 9px; background: white; }
.profile-file > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-style: normal; font-size: 8px; font-weight: 800; }
.profile-file strong, .profile-file small { display: block; }.profile-file strong { font-size: 10px; }.profile-file small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.profile-file .status { justify-self: end; }
.partner-esign-card { margin-top: 16px; padding: 14px; display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; border: 1px solid #ead9b9; border-radius: 10px; background: #fffaf0; }
.partner-esign-card .metric-icon svg { width: 18px; }.partner-esign-card > div { display: flex; flex-direction: column; }
.partner-esign-card > div > small { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .9px; }.partner-esign-card > div > strong { margin-top: 3px; font-size: 10px; }.partner-esign-card p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.partner-esign-card > em { padding: 5px 8px; border-radius: 999px; color: #956d24; background: #fbefd5; font-size: 8px; font-style: normal; font-weight: 800; }.partner-esign-card > em.complete { color: #397967; background: #eaf5f1; }
.partner-esign-card > button { min-height: 35px; padding: 0 12px; font-size: 9px; }.partner-esign-card > button:disabled { background: #4f7b6b; }
.document-tabs { margin-top: 30px; display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.document-tabs button { padding: 0 2px 13px; position: relative; border: 0; color: var(--muted); background: none; font-size: 11px; cursor: pointer; }
.document-tabs button.active { color: var(--green); font-weight: 700; }
.document-tabs button.active::after { content: ""; height: 2px; position: absolute; right: 0; bottom: -1px; left: 0; background: var(--green); }
.document-tabs span { margin-left: 5px; padding: 2px 6px; border-radius: 10px; background: #edf1ef; font-size: 8px; }
.template-feature { margin-top: 22px; overflow: hidden; display: grid; grid-template-columns: 40% 60%; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.template-preview { min-height: 375px; display: grid; place-items: center; background: linear-gradient(140deg, #e7f0ed, #d4e4df); }
.paper-sheet { width: 215px; height: 285px; padding: 24px; border-radius: 3px; background: white; box-shadow: 0 15px 35px rgba(31, 73, 67, .18); transform: rotate(-1.3deg); }
.paper-brand { display: flex; gap: 7px; align-items: center; color: var(--green); font: 700 7px Manrope, sans-serif; letter-spacing: .8px; }
.paper-brand .brand-mark { width: 17px; height: 17px; border-radius: 5px; }
.paper-brand .brand-mark svg { width: 11px; stroke-width: 2.5; }
.paper-sheet h3 { margin: 28px 0 19px; color: #213d3b; font-size: 14px; letter-spacing: .7px; line-height: 1.35; }
.paper-rule { height: 2px; margin-bottom: 22px; background: var(--green); }
.paper-line { width: 82%; height: 3px; margin: 8px 0; border-radius: 2px; background: #e4e9e7; }
.paper-line.wide { width: 100%; }.paper-line.short { width: 59%; }
.signature-lines { margin-top: 44px; display: flex; gap: 15px; }.signature-lines span { width: 50%; border-bottom: 1px solid #bfc9c5; }
.template-detail { padding: 45px clamp(30px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-label { padding: 5px 8px; display: flex; align-items: center; gap: 5px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.feature-label svg { width: 12px; }
.template-detail h2 { margin: 15px 0 8px; font-size: 24px; letter-spacing: -.6px; }
.template-detail > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.template-benefits { margin: 21px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 28px; }
.template-benefits span { display: flex; gap: 7px; align-items: center; color: #455957; font-size: 10px; }
.template-benefits i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.template-benefits svg { width: 10px; }
.feature-actions { display: flex; gap: 8px; }
.secondary-button { min-height: 40px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.feature-actions a.secondary-button { color: var(--ink); text-decoration: none; }
.secondary-button svg { width: 15px; }
.legal-note { margin-top: 14px; color: #99a4a2; font-size: 8px; }
.section-heading { margin: 31px 0 14px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-heading h2 { margin: 0; font-size: 14px; }.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.template-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.template-card-top { height: 125px; padding: 13px; position: relative; display: grid; place-items: center; color: #47625e; background: linear-gradient(145deg, #e9f0ec, #d6e3de); }
.template-card-top.rider { color: #665840; background: linear-gradient(145deg, #f3eee5, #e5dac8); }
.template-card-top > strong { width: 48px; height: 59px; display: grid; place-items: center; border-radius: 3px; background: white; box-shadow: 0 7px 16px rgba(27, 54, 51, .12); font: 800 13px Manrope, sans-serif; }
.file-badge { position: absolute; top: 12px; left: 12px; padding: 4px 6px; border-radius: 5px; color: #566b68; background: rgba(255,255,255,.75); font-size: 7px; font-weight: 700; }
.template-menu { position: absolute; top: 10px; right: 12px; font-size: 11px; letter-spacing: 1px; }
.template-card-body { padding: 16px; }
.template-card-body h3 { margin: 10px 0 4px; font-size: 11px; }.template-card-body > p { margin: 0; color: var(--muted); font-size: 8px; }
.template-card-body > div { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.template-card-body a.text-button { text-decoration: none; }
.icon-button.small { width: 28px; height: 28px; font-size: 8px; }
.add-template-card { min-height: 236px; border: 1px dashed #bdccc7; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); background: rgba(255,255,255,.55); cursor: pointer; }
.add-template-card > span { width: 38px; height: 38px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); }
.add-template-card svg { width: 18px; }.add-template-card strong { color: var(--ink); font-size: 11px; }.add-template-card small { margin-top: 5px; font-size: 8px; }
.upload-modal { max-height: calc(100vh - 30px); overflow-y: auto; }
.drop-zone { min-height: 145px; padding: 22px; border: 1.5px dashed #b8cbc5; border-radius: 10px; place-items: center; align-content: center; text-align: center; background: #f8fbf9; cursor: pointer; }
.drop-zone.dragging { border-color: var(--green); background: var(--green-soft); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone .drop-icon { width: 39px; height: 39px; margin-bottom: 7px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: white; box-shadow: 0 5px 15px rgba(20, 70, 63, .08); }
.drop-zone svg { width: 18px; }.drop-zone strong { font-size: 11px; }.drop-zone small { color: var(--muted); font-size: 9px; font-weight: 400; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: center; gap: 8px !important; }
.check-row input { width: 15px; height: 15px; accent-color: var(--green); }
.form-message { min-height: 16px; margin: -4px 0 0; color: #a13e32; font-size: 9px; }
.form-message.success { color: var(--green); }
.esign-document { padding: 17px; margin: 17px 0; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; }.esign-document small { color: var(--gold); font-size: 8px; font-weight: 800; }.esign-document h3 { margin: 6px 0 10px; }.esign-document p { color: var(--muted); font-size: 10px; line-height: 1.55; }.esign-document span { display: inline-block; padding: 5px 8px; border-radius: 999px; color: #956d24; background: #fbefd5; font-size: 8px; font-weight: 800; }
.typed-signature { min-height: 62px; padding: 10px; display: flex; align-items: center; border-bottom: 1px solid #9ba9a4; color: var(--green); font: italic 28px Georgia, serif; }.esign-note { color: var(--muted); font-size: 8px; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; padding: 20px; display: grid; place-items: center; background: rgba(9, 31, 29, .55); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: .2s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { width: min(490px, 100%); padding: 30px; position: relative; border-radius: 16px; background: white; box-shadow: 0 24px 80px rgba(8, 28, 26, .24); transform: translateY(10px); transition: .2s ease; }
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 17px; right: 17px; border: 0; background: none; color: #778381; font-size: 25px; cursor: pointer; }
.modal h2 { margin: 0; font-size: 25px; }
.modal > p:not(.eyebrow) { margin: 7px 0 23px; color: var(--muted); line-height: 1.5; }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 6px; color: #42514f; font-size: 11px; font-weight: 600; }
.modal input, .modal select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dce4e0; border-radius: 8px; outline: none; background: white; color: var(--ink); }
.modal input:focus, .modal select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-button { height: 44px; margin-top: 5px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 80; min-width: 300px; padding: 14px 17px; display: flex; gap: 11px; align-items: center; color: white; border-radius: 11px; background: #143a37; box-shadow: 0 16px 40px rgba(8, 34, 31, .25); transform: translateY(100px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #173b38; background: #b8ddce; }
.toast svg { width: 14px; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 11px; }
.toast small { margin-top: 2px; color: #b9cdca; font-size: 9px; }

@media (max-width: 1080px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .portfolio-switcher { display: none; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { width: 250px; transform: translateX(-105%); box-shadow: 16px 0 50px rgba(9, 30, 28, .25); transition: .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { min-height: 100vh; }
  .topbar { height: 66px; padding: 0 18px; }
  .mobile-menu { width: 38px; height: 38px; border: 0; border-radius: 8px; display: grid; align-content: center; gap: 4px; background: var(--green-soft); cursor: pointer; }
  .mobile-menu span { width: 17px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--green); }
  .topbar .icon-button:first-of-type { display: none; }
  .add-listing-button { padding: 0 13px; }
  .page { padding: 30px 18px 22px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
  .metric-card { min-height: 145px; padding: 16px; }
  .properties-panel .panel-heading { align-items: flex-start; flex-direction: column; }
  .table-actions { width: 100%; }
  .search-box { flex: 1; min-width: 0; }
  footer { align-items: center; gap: 10px; flex-direction: column; }
  .documents-hero { align-items: flex-start; flex-direction: column; }
  .document-actions { width: 100%; }
  .document-actions button { flex: 1; justify-content: center; }
  .template-feature { grid-template-columns: 1fr; }
  .template-preview { min-height: 315px; }
  .template-detail { padding: 30px 25px; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .profile-file { grid-template-columns: 34px 1fr; }
  .profile-file .status { grid-column: 2; justify-self: start; }
  .partner-esign-card { grid-template-columns: 40px 1fr; }
  .partner-esign-card > em, .partner-esign-card > button { grid-column: 2; justify-self: start; }
}

.auth-pending { display: none !important; }
.partner-signin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.partner-signin-story { padding: clamp(35px, 6vw, 76px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: linear-gradient(145deg, #0d3f3a, #17685f 76%, #b78357 150%); }
.partner-signin-story .brand { padding: 0; }.partner-signin-story .brand small { color: #bcd7d2; }.partner-signin-story > div { max-width: 580px; }.partner-signin-story h1 { margin: 14px 0 18px; font-size: clamp(42px, 6vw, 70px); line-height: 1.02; }.partner-signin-story > div > p:last-child { max-width: 520px; color: #d6e6e2; font-size: 15px; line-height: 1.7; }.partner-signin-story > small { color: #b9d0ca; }
.partner-signin-panel { padding: 30px; display: grid; place-items: center; }
.partner-signin-card { width: min(460px, 100%); padding: clamp(27px, 5vw, 43px); border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: 0 22px 65px rgba(18, 70, 64, .11); }
.portal-tabs { margin: -12px -12px 26px; padding: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 12px; background: #eef2ef; }
.portal-tabs button { min-height: 39px; padding: 7px 9px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.portal-tabs button.active { color: var(--green); background: white; box-shadow: 0 3px 10px rgba(20, 57, 53, .08); }
.brokerage-access-note { margin: 17px 0 0; padding: 12px 14px; border: 1px solid #d9c7a5; border-radius: 10px; background: #fffaf0; }
.brokerage-access-note strong, .brokerage-access-note span { display: block; }
.brokerage-access-note strong { color: #76521e; font-size: 11px; }
.brokerage-access-note span { margin-top: 3px; color: #806d52; font-size: 9px; line-height: 1.45; }
body[data-portal="brokerage"] .partner-signin-story { background: linear-gradient(145deg, #111f28, #274453 72%, #b88352 150%); }
body[data-portal="brokerage"] .sidebar { background: #12232d; }
.partner-signin-card h2 { margin: 8px 0 10px; font-size: 30px; }.partner-signin-card > p:not(.eyebrow, .partner-demo) { color: var(--muted); line-height: 1.55; }.partner-signin-card label { display: grid; gap: 7px; margin-top: 22px; color: #3c514f; font-size: 11px; font-weight: 700; }.partner-signin-card input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #cfd9d5; border-radius: 10px; outline: 0; }.partner-signin-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }.partner-signin-action { width: 100%; height: 46px; margin-top: 16px; }.partner-signin-back { width: 100%; margin-top: 14px; border: 0; background: transparent; color: var(--green); font-weight: 700; }.partner-demo { margin: 12px 0 0; padding: 9px; border-radius: 8px; background: #f8f2e7; color: #7f6446; text-align: center; font-size: 10px; }
@media (max-width: 760px) { .partner-signin { grid-template-columns: 1fr; }.partner-signin-story { min-height: 300px; padding: 28px 22px; }.partner-signin-story h1 { font-size: 40px; }.partner-signin-panel { padding: 24px 14px 40px; } }

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .welcome-row h1 { font-size: 28px; }
  .application { grid-template-columns: 34px 1fr; }
  .match { grid-column: 2; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .toast { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
  .template-benefits, .template-grid { grid-template-columns: 1fr; }
  .document-tabs { gap: 15px; overflow-x: auto; }
}

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

.messages-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.messages-heading h1 { margin: 0; }
.conversation-shell { min-height: 620px; display: grid; grid-template-columns: 300px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.conversation-list { border-right: 1px solid var(--line); background: #fafbf9; }
.conversation-search { margin: 12px; padding: 9px 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.conversation-search svg { width: 15px; }
.conversation-search input { width: 100%; border: 0; outline: 0; font-size: 10px; }
.conversation-item { width: 100%; padding: 13px; position: relative; display: grid; grid-template-columns: 39px 1fr auto; gap: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.conversation-item.active { background: var(--green-soft); }
.conversation-logo { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: #dcebe6; font-size: 9px; font-weight: 800; }
.conversation-logo.agency { background: #eee3d1; }.conversation-logo.partner { background: #e5ebcf; }
.conversation-item strong, .conversation-item small, .conversation-item em { display: block; }
.conversation-item strong { font-size: 10px; }.conversation-item small { margin: 2px 0; color: var(--coral); font-size: 7px; font-weight: 700; }.conversation-item em { max-width: 170px; overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.conversation-item time { color: var(--muted); font-size: 8px; }.conversation-item > i { width: 18px; height: 18px; position: absolute; right: 12px; bottom: 10px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-size: 8px; font-style: normal; }
.conversation-room { min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; }
.conversation-room > header { padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.conversation-room > header h2, .conversation-room > header p { margin: 0; }.conversation-room > header h2 { font-size: 14px; }.conversation-room > header p { margin-top: 2px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }.conversation-room > header p span { width: 7px; height: 7px; border-radius: 50%; background: #5aa084; }
.participant-stack { display: flex; }.participant-stack i { width: 29px; height: 29px; margin-left: -6px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; font-size: 7px; font-style: normal; font-weight: 800; }.participant-stack .kh { background: #dcebe6; }.participant-stack .client { background: #e8b9a7; }.participant-stack .partner { background: #e5ebcf; }.participant-stack .agency { background: #eee3d1; }
.participant-key { padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid var(--line); background: #f8f9f6; }.participant-key span { color: var(--muted); font-size: 7px; }.participant-key b { color: var(--green); }
.message-feed { padding: 18px; overflow-y: auto; background: #fbfaf7; }.message-feed article { max-width: 78%; margin-bottom: 15px; display: flex; align-items: flex-end; gap: 8px; }.message-feed article.mine { margin-left: auto; flex-direction: row-reverse; }.message-feed article > i { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; font-size: 7px; font-style: normal; font-weight: 800; }.message-feed article > i.kh { background: #dcebe6; }.message-feed article > i.partner { background: #e5ebcf; }.message-feed article > i.agency { background: #eee3d1; }.message-feed article small { color: var(--muted); font-size: 7px; }.message-feed article p { margin: 4px 0 0; padding: 10px 12px; border-radius: 3px 11px 11px 11px; background: #e7eeeb; font-size: 10px; }.message-feed article.mine p { border-radius: 11px 3px 11px 11px; color: white; background: var(--green); }
.message-compose { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border-top: 1px solid var(--line); }.message-compose textarea { resize: none; padding: 10px; border: 1px solid #cbd5d0; border-radius: 9px; outline: 0; font: 10px DM Sans, sans-serif; }.message-compose button { padding: 0 15px; border: 0; border-radius: 9px; color: white; background: var(--green); font-weight: 700; }.message-compose small { grid-column: 1 / -1; color: var(--muted); font-size: 7px; }

@media (max-width: 760px) {
  .messages-heading { align-items: flex-start; flex-direction: column; }
  .conversation-shell { min-height: 720px; grid-template-columns: 1fr; }
  .conversation-list { max-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-item:not(.active) { display: none; }
  .conversation-room { min-height: 525px; }
  .message-feed article { max-width: 92%; }
}

.brokerage-command { margin-top: 15px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 11px; overflow: hidden; border: 1px solid #d4dee2; border-radius: 14px; color: #eaf2f3; background: linear-gradient(120deg, #142b36, #244b58); box-shadow: var(--shadow); }
.brokerage-command-copy { min-width: 0; }
.brokerage-command .eyebrow { color: #efbd6d; }
.brokerage-command h2 { margin: 0; font-size: 18px; }
.brokerage-command p:not(.eyebrow) { max-width: 660px; margin: 5px 0 10px; color: #b9cbd0; font-size: 10px; line-height: 1.5; }
.brokerage-command-copy > div { display: flex; flex-wrap: wrap; gap: 14px; }
.brokerage-command-copy > div span { display: flex; align-items: center; gap: 5px; color: #cddade; font-size: 8px; }
.brokerage-command-copy > div i { width: 6px; height: 6px; border-radius: 50%; background: #e5ae59; }
.brokerage-command-copy > div span:last-child i { background: #79b59e; }
.brokerage-command .secondary-button { color: #f4f7f7; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.brokerage-command .secondary-button svg { width: 15px; }

.deal-studio-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: 16px; align-items: start; }
.deal-form-fields { padding: 20px; display: grid; gap: 13px; }
.deal-form label, .compose-modal label { display: grid; gap: 6px; color: #42514f; font-size: 10px; font-weight: 700; }
.deal-form input, .deal-form select, .compose-modal input, .compose-modal textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d7e0dc; border-radius: 8px; outline: 0; color: var(--ink); background: white; }
.deal-form input:focus, .deal-form select:focus, .compose-modal input:focus, .compose-modal textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.deal-output { position: sticky; top: 92px; }
.deal-math { padding: 15px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #fbfcfb; border-bottom: 1px solid var(--line); }
.deal-math span { padding: 10px; border-radius: 9px; background: white; border: 1px solid var(--line); }
.deal-math small, .deal-math strong { display: block; }
.deal-math small { color: var(--muted); font-size: 8px; }
.deal-math strong { margin-top: 4px; font-family: Manrope, sans-serif; font-size: 14px; }
.deal-output pre { min-height: 410px; margin: 0; padding: 24px; overflow: auto; white-space: pre-wrap; color: #253e3c; background: #fffdf8; font: 11px/1.7 "DM Sans", sans-serif; }
.compliance-boundary { margin: 0 20px 20px; padding: 13px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; border: 1px solid #e4d4b9; border-radius: 10px; background: #fff9ee; }
.compliance-boundary > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #8c641f; background: #f6e9cf; }
.compliance-boundary svg { width: 15px; }
.compliance-boundary p { margin: 0; color: #715e42; font-size: 8px; line-height: 1.5; }
.compliance-boundary strong { display: block; margin-bottom: 2px; color: #644719; }

.gmail-shell { min-height: 650px; margin-top: 24px; display: grid; grid-template-columns: 185px 330px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.gmail-folders { padding: 15px 10px; background: #f8faf9; border-right: 1px solid var(--line); }
.gmail-folders button { width: 100%; min-height: 36px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 8px; color: #5d6e6c; background: transparent; font-size: 9px; text-align: left; cursor: pointer; }
.gmail-folders button.active { color: var(--green); background: var(--green-soft); font-weight: 700; }
.gmail-folders button svg { width: 15px; }
.gmail-folders button b { margin-left: auto; }
.gmail-folders hr { border: 0; border-top: 1px solid var(--line); margin: 12px 7px; }
.gmail-folders > small { display: block; margin: 0 10px 7px; color: #9aa5a3; font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.label-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.label-dot.inventory { background: var(--blue); }
.label-dot.compliance { background: var(--gold); }
.gmail-list { min-width: 0; border-right: 1px solid var(--line); }
.inbox-search { margin: 12px; padding: 9px 10px; display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.inbox-search svg { width: 15px; }
.inbox-search input { width: 100%; border: 0; outline: 0; font-size: 10px; }
.gmail-thread { width: 100%; min-height: 90px; padding: 13px; display: grid; grid-template-columns: 35px 1fr auto; gap: 9px; align-items: start; border: 0; border-top: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.gmail-thread:hover { background: #f9fbfa; }
.gmail-thread.unread { background: #f3f8f6; }
.gmail-thread > span:nth-child(2) { min-width: 0; }
.gmail-thread strong, .gmail-thread b, .gmail-thread small, .gmail-thread em { display: block; }
.gmail-thread strong { font-size: 9px; }
.gmail-thread b { margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.gmail-thread small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.gmail-thread em { width: max-content; margin-top: 5px; padding: 3px 6px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 7px; font-style: normal; }
.gmail-thread time { color: var(--muted); font-size: 7px; }
.gmail-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: white; background: #345f69; font-size: 8px; font-weight: 800; }
.gmail-reader { min-width: 0; display: flex; flex-direction: column; }
.gmail-empty { margin: auto; padding: 30px; text-align: center; }
.gmail-empty > span { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: var(--green-soft); }
.gmail-empty svg { width: 24px; }
.gmail-empty h2 { margin: 0; font-size: 16px; }
.gmail-empty p { color: var(--muted); font-size: 9px; }
.gmail-reader > header { padding: 22px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; border-bottom: 1px solid var(--line); }
.gmail-reader > header h2 { margin: 4px 0; font-size: 16px; }
.gmail-reader > header p, .gmail-reader > header small { margin: 0; color: var(--muted); font-size: 8px; }
.gmail-reader > header time { color: var(--muted); font-size: 8px; }
.gmail-body { padding: 24px; flex: 1; overflow-y: auto; color: #405552; font-size: 10px; line-height: 1.65; }
.gmail-body p { margin: 0 0 3px; }
.gmail-reader > footer { padding: 16px 22px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.gmail-pilot-note { padding: 11px 13px; display: flex; gap: 7px; align-items: center; color: #6e644f; border: 1px solid #e7ddca; border-radius: 9px; background: #fffbf3; font-size: 8px; }
.gmail-pilot-note svg { width: 14px; }
.compose-modal textarea { resize: vertical; }
.compose-modal form { margin-top: 21px; }

@media (max-width: 1000px) {
  .gmail-shell { grid-template-columns: 145px 280px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .brokerage-command { grid-template-columns: 1fr; align-items: start; }
  .brokerage-command button { width: 100%; justify-content: center; }
  .deal-studio-grid { grid-template-columns: 1fr; }
  .deal-output { position: static; }
  .deal-math { grid-template-columns: 1fr; }
  .deal-output pre { min-height: 330px; }
  .gmail-shell { grid-template-columns: 1fr; }
  .gmail-folders { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .gmail-folders button { width: auto; white-space: nowrap; }
  .gmail-folders hr, .gmail-folders > small { display: none; }
  .gmail-list { max-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .gmail-reader { min-height: 430px; }
}

.blast-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.blast-actions .secondary-button { text-decoration: none; }
.blast-summary { margin: 24px 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.blast-summary article { min-height: 82px; padding: 15px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.blast-summary article > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.blast-summary svg { width: 17px; }
.blast-summary small, .blast-summary strong { display: block; }
.blast-summary small { color: var(--muted); font-size: 8px; }
.blast-summary strong { margin-top: 3px; font-family: Manrope, sans-serif; font-size: 15px; }
.blast-panel { overflow: visible; }
.blast-toolbar { padding: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.blast-search { height: 38px; min-width: 280px; flex: 1; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.blast-search svg { width: 14px; color: var(--muted); }
.blast-search input { width: 100%; border: 0; outline: 0; font-size: 9px; }
.blast-toolbar select { min-height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #4c5e5b; background: white; font-size: 9px; }
.compact-check { min-height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; color: #4c5e5b; background: white; font-size: 9px; white-space: nowrap; }
.compact-check input { accent-color: var(--green); }
.blast-table-wrap { max-height: 560px; overflow: auto; }
.blast-table { min-width: 1260px; }
.blast-table thead { position: sticky; top: 0; z-index: 2; }
.blast-table th, .blast-table td { padding: 11px 12px; }
.blast-table tbody tr.selected { background: #f0f7f4; }
.blast-table tbody tr:hover { background: #f8fbf9; }
.inventory-check { width: 19px; height: 19px; display: block; position: relative; }
.inventory-check input { position: absolute; opacity: 0; }
.inventory-check span { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #bac9c4; border-radius: 5px; background: white; }
.inventory-check input:checked + span { border-color: var(--green); background: var(--green); }
.inventory-check input:checked + span::after { content: "✓"; color: white; font-size: 10px; font-weight: 800; }
.blast-address, .blast-source { min-width: 180px; white-space: normal; }
.blast-address strong, .blast-address small, .blast-source strong, .blast-source small { display: block; }
.blast-address strong, .blast-source strong { font-size: 9px; }
.blast-address small, .blast-source small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.gap-good { color: #34745f; font-weight: 700; }
.gap-review { color: #a27123; font-weight: 700; }
.gap-high { color: #a74639; font-weight: 700; }
.fit-pill, .blast-status { display: inline-flex; padding: 5px 7px; border-radius: 999px; font-size: 7px; font-weight: 800; }
.fit-pill.strong { color: #34745f; background: #e8f4ef; }
.fit-pill.lead { color: #946b25; background: #fbf1dc; }
.fit-pill.no-fit { color: #8c5751; background: #faece9; }
.blast-status { color: #536d78; background: #edf3f6; }
.inventory-use { width: 26px; height: 26px; border-radius: 7px; color: white; background: var(--green); font-size: 13px; }
.blast-empty { padding: 50px 20px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.blast-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); }
.blast-empty svg { width: 20px; }
.blast-empty strong { margin-top: 12px; color: var(--ink); }
.blast-empty small { margin-top: 4px; }
.blast-boundary { margin-top: 12px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #dfd5c3; border-radius: 10px; color: #675e4d; background: #fffaf1; font-size: 8px; line-height: 1.55; }
.blast-boundary > span { color: #9b6e26; }
.blast-boundary svg { width: 16px; }
.blast-boundary p { margin: 0; }
.blast-boundary strong { display: block; color: #584c38; }
.add-listing-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }

@media (max-width: 1000px) {
  .blast-summary { grid-template-columns: repeat(2, 1fr); }
  .blast-toolbar { align-items: stretch; flex-wrap: wrap; }
  .blast-search { min-width: 100%; }
}

@media (max-width: 760px) {
  .blast-actions { width: 100%; }
  .blast-actions > * { flex: 1; justify-content: center; white-space: nowrap; }
  .blast-summary { grid-template-columns: 1fr 1fr; }
  .blast-toolbar select, .compact-check { flex: 1; }
}

@media (max-width: 480px) {
  .blast-summary { grid-template-columns: 1fr; }
}

.court-resources-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 16px; color: white; background: linear-gradient(135deg, #163d34, #24634f); box-shadow: var(--shadow); }
.court-resources-hero h1 { margin: 6px 0 7px; font-family: Manrope, sans-serif; font-size: clamp(27px, 3.3vw, 40px); }
.court-resources-hero .eyebrow { color: #efc96f; }
.court-resources-hero .lede { max-width: 720px; margin: 0; color: #d5e3de; line-height: 1.55; }
.court-primary { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border-radius: 9px; color: #173e34; background: #efc96f; text-decoration: none; font-size: 10px; font-weight: 800; }
.court-primary svg { width: 15px; }
.court-audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.court-audience-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.court-audience-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); }
.court-audience-icon svg { width: 19px; }
.court-audience-grid article > small { display: block; margin-top: 13px; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.court-audience-grid h2 { margin: 5px 0; font-family: Manrope, sans-serif; font-size: 18px; }
.court-audience-grid p { min-height: 48px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.court-audience-grid article > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.court-audience-grid a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--green); text-decoration: none; font-size: 8px; font-weight: 800; }
.court-audience-grid a:first-child { border-color: var(--green); color: white; background: var(--green); }
.court-audience-grid a svg { width: 12px; }
.court-process-panel { display: grid; grid-template-columns: minmax(230px, .55fr) 1.45fr; gap: 20px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.court-process-panel > div small { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.court-process-panel > div h2 { margin: 6px 0 0; font-family: Manrope, sans-serif; font-size: 19px; }
.court-process-panel ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: court-steps; }
.court-process-panel li { position: relative; padding: 38px 10px 10px; border-radius: 9px; background: #f3f7f5; counter-increment: court-steps; }
.court-process-panel li::before { content: counter(court-steps); position: absolute; left: 10px; top: 9px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 8px; font-weight: 800; }
.court-process-panel li b, .court-process-panel li span { display: block; }
.court-process-panel li b { font-size: 9px; }
.court-process-panel li span { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.court-legal-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 13px 15px; border: 1px solid #e6d39e; border-radius: 10px; color: #6e5a2e; background: #fff8e7; }
.court-legal-note > span { color: #9a742c; }
.court-legal-note svg { width: 18px; }
.court-legal-note p { margin: 0; font-size: 9px; line-height: 1.5; }
@media (max-width: 900px) { .court-resources-hero { align-items: flex-start; flex-direction: column; } .court-audience-grid { grid-template-columns: 1fr; } .court-process-panel { grid-template-columns: 1fr; } .court-process-panel ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .court-process-panel ol { grid-template-columns: 1fr; } }

.knowledge-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:25px;border-radius:15px;color:#fff;background:linear-gradient(135deg,#173d34,#255f50);box-shadow:var(--shadow)}.knowledge-hero .eyebrow{color:#efc96f}.knowledge-hero h1{margin:5px 0;font-size:34px}.knowledge-hero .lede{max-width:760px;color:#d4e3de;line-height:1.55}.knowledge-hero .secondary-button{color:#173e34;border:0;background:#efc96f}.knowledge-warning{display:flex;align-items:flex-start;gap:9px;margin:14px 0;padding:12px 14px;border:1px solid #e7d4a4;border-radius:10px;color:#715a27;background:#fff8e7}.knowledge-warning>span{flex:none}.knowledge-warning svg{width:18px}.knowledge-warning p{margin:0;font-size:9px;line-height:1.5}.knowledge-topics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.knowledge-topics article{padding:16px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:var(--shadow)}.knowledge-topics small,.knowledge-panel-title small,.knowledge-glossary header small{color:var(--gold);font-size:7px;font-weight:800;letter-spacing:.12em}.knowledge-topics h2{margin:7px 0 5px;font-size:14px}.knowledge-topics p{margin:0;color:var(--muted);font-size:8px;line-height:1.55}.knowledge-tools{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:11px}.knowledge-tools>.panel,.knowledge-glossary{padding:18px}.knowledge-panel-title{display:flex;align-items:center;gap:10px}.knowledge-panel-title>span{width:37px;height:37px;display:grid;place-items:center;border-radius:9px;color:var(--green);background:var(--green-soft)}.knowledge-panel-title svg{width:18px}.knowledge-panel-title h2,.knowledge-glossary h2{margin:3px 0 0;font-size:16px}.knowledge-calculator label{display:flex;flex-direction:column;gap:5px;margin-top:11px;color:#556862;font-size:8px;font-weight:700}.knowledge-calculator select,.knowledge-calculator input{height:36px;padding:0 9px;border:1px solid #d5dfdb;border-radius:8px;background:#fff;outline:0}.knowledge-calculator>div:not(.knowledge-panel-title){display:grid;grid-template-columns:1fr 1fr;gap:8px}.knowledge-calculator output{display:flex;align-items:center;justify-content:space-between;margin-top:11px;padding:11px;border-radius:9px;color:#fff;background:#153e34}.knowledge-calculator output small{font-size:8px}.knowledge-calculator output strong{font-family:Manrope,sans-serif;font-size:19px}.knowledge-calculator>p{margin:7px 0 0;color:#82908c;font-size:7px}.knowledge-checklist ol{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}.knowledge-checklist li{display:flex;align-items:flex-start;gap:7px;color:#52655f;font-size:9px;line-height:1.45}.knowledge-checklist li>span{color:var(--green);flex:none}.knowledge-checklist li svg{width:14px}.knowledge-glossary{margin-top:11px}.knowledge-glossary>header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.knowledge-glossary header label{width:min(350px,44%);display:flex;align-items:center;gap:7px;padding:8px 9px;border:1px solid var(--line);border-radius:8px}.knowledge-glossary header label svg{width:13px;color:var(--muted)}.knowledge-glossary header input{width:100%;border:0;outline:0;font-size:9px}.knowledge-glossary>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.knowledge-glossary article{padding:11px;border-radius:8px;background:#f4f7f5}.knowledge-glossary article strong{font-size:9px;color:#21483c}.knowledge-glossary article p{margin:4px 0 0;color:var(--muted);font-size:8px;line-height:1.45}.knowledge-empty{color:var(--muted);font-size:9px}.knowledge-official{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:11px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:8px}.knowledge-official strong{margin-right:5px}.knowledge-official a{padding:5px 7px;border-radius:6px;color:var(--green);background:var(--green-soft);text-decoration:none;font-weight:700}@media(max-width:1050px){.knowledge-topics,.knowledge-glossary>div{grid-template-columns:1fr 1fr}.knowledge-tools{grid-template-columns:1fr}}@media(max-width:650px){.knowledge-hero{align-items:flex-start;flex-direction:column}.knowledge-topics,.knowledge-glossary>div{grid-template-columns:1fr}.knowledge-glossary>header{align-items:stretch;flex-direction:column}.knowledge-glossary header label{width:100%}.knowledge-calculator>div:not(.knowledge-panel-title){grid-template-columns:1fr}}

.directory-hero .secondary-button { text-decoration: none; white-space: nowrap; }
.directory-summary { margin: 24px 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.directory-summary article { min-height: 82px; padding: 15px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.directory-summary article > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.directory-summary svg { width: 17px; }
.directory-summary small, .directory-summary strong { display: block; }
.directory-summary small { color: var(--muted); font-size: 8px; }
.directory-summary strong { margin-top: 3px; font-family: Manrope, sans-serif; font-size: 15px; }
.directory-panel { overflow: hidden; }
.directory-toolbar { padding: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.directory-search { height: 40px; min-width: 300px; flex: 1; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.directory-search svg { width: 14px; color: var(--muted); }
.directory-search input { width: 100%; border: 0; outline: 0; font-size: 9px; }
.directory-toolbar select { min-height: 40px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #4c5e5b; background: white; font-size: 9px; }
.directory-workspace { min-height: 650px; display: grid; grid-template-columns: minmax(350px, .85fr) minmax(420px, 1.15fr); }
.directory-list { min-width: 0; border-right: 1px solid var(--line); background: #f9fbfa; }
.directory-list-head { min-height: 43px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.directory-list-head button { border: 0; color: var(--green); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
#directoryCards { max-height: 605px; overflow-y: auto; }
.directory-card { width: 100%; min-height: 82px; padding: 12px 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.directory-card:hover { background: #f2f8f5; }
.directory-card > span:nth-child(2) { min-width: 0; }
.directory-card strong, .directory-card small, .directory-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-card strong { font-size: 10px; }
.directory-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.directory-card em { margin-top: 4px; color: #80908d; font-size: 7px; font-style: normal; }
.directory-card > i { padding: 4px 7px; border-radius: 999px; color: #8b6d32; background: #fbf1dd; font-size: 7px; font-style: normal; font-weight: 700; white-space: nowrap; }
.directory-card > i.contact-ready { color: #34745f; background: #e7f3ee; }
.directory-card > b { color: var(--green); font-size: 14px; }
.directory-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, #2e6c63, #567d88); font-size: 8px; font-weight: 800; }
.directory-avatar.large { width: 48px; height: 48px; border-radius: 13px; font-size: 10px; }
.directory-detail { min-width: 0; padding: 26px; background: white; }
.directory-detail-empty { min-height: 560px; display: grid; place-items: center; align-content: center; text-align: center; }
.directory-detail-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--green); background: var(--green-soft); }
.directory-detail-empty svg { width: 25px; }
.directory-detail-empty h2 { margin: 15px 0 5px; font-size: 17px; }
.directory-detail-empty p { max-width: 350px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.directory-detail > header { padding-bottom: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.directory-detail > header small { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.directory-detail > header h2 { margin: 4px 0; font-size: 20px; }
.directory-detail > header p { margin: 0; color: var(--muted); font-size: 9px; }
.directory-detail dl { margin: 8px 0 20px; }
.directory-detail dl > div { padding: 12px 0; display: grid; grid-template-columns: 145px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.directory-detail dt { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.directory-detail dd { margin: 0; color: #394d4a; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.directory-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.directory-detail-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.directory-detail-actions svg { width: 14px; }
.directory-verification, .directory-source-note { padding: 11px 13px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #e4d9c6; border-radius: 9px; color: #6d624e; background: #fffaf1; font-size: 8px; line-height: 1.55; }
.directory-verification svg, .directory-source-note svg { width: 15px; flex: 0 0 15px; }
.directory-source-note { margin-top: 12px; }
.directory-empty { min-height: 280px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.directory-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); }
.directory-empty svg { width: 19px; }
.directory-empty strong { margin-top: 11px; color: var(--ink); }
.directory-empty small { margin-top: 4px; }

@media (max-width: 1100px) {
  .directory-summary { grid-template-columns: repeat(2, 1fr); }
  .directory-toolbar { flex-wrap: wrap; }
  .directory-search { min-width: 100%; }
  .directory-toolbar select, .directory-toolbar .compact-check { flex: 1; }
  .directory-workspace { grid-template-columns: minmax(320px, .8fr) minmax(390px, 1.2fr); }
}

@media (max-width: 760px) {
  .directory-summary { grid-template-columns: 1fr 1fr; }
  .directory-workspace { grid-template-columns: 1fr; }
  .directory-list { border-right: 0; border-bottom: 1px solid var(--line); }
  #directoryCards { max-height: 430px; }
  .directory-detail { padding: 20px; }
  .directory-detail-empty { min-height: 360px; }
}

@media (max-width: 480px) {
  .directory-summary { grid-template-columns: 1fr; }
  .directory-card { grid-template-columns: 38px minmax(0, 1fr) 18px; }
  .directory-card > i { grid-column: 2; justify-self: start; }
  .directory-detail dl > div { grid-template-columns: 1fr; gap: 4px; }
}
