/* No ad-* selectors: browser content blockers can hide those as advertising. */
#sales-cards-panel #deal-workspace { padding:0; margin:0; }
.deal-address-card.is-in-use { border:2px solid #b88428; }
.deal-card-pills { display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;font-size:11px;font-weight:700; }
.deal-card-pills > span { padding:5px 9px;border-radius:999px; }
.deal-in-use { background:#f5e3b7;color:#6c4b12; }
.deal-called-today { position:absolute;top:0;left:50%;transform:translate(-50%,-50%);z-index:1;padding:5px 12px;border-radius:999px;background:#dcefeb;color:#07565d;font-size:11px;font-weight:700;white-space:nowrap;pointer-events:none; }
.deal-address-card { position:relative; }
.deal-address-card[aria-disabled=true] { cursor:not-allowed; }
/* Native-dialog adapter; content uses the same classes as Inside Sales. */
.new-deal-call-feedback{flex:0 0 auto;margin:0;padding:12px 26px;background:#fff5dd;color:#6e4b10;font-size:13px;}
dialog.new-deal-property{width:min(1180px,calc(100vw - 48px));max-width:none;max-height:none;margin:auto;padding:0;color:var(--is-ink);font:inherit;}
dialog.new-deal-property:not([open]){display:none;}
dialog.new-deal-property::backdrop{background:rgba(7,22,39,.64);backdrop-filter:blur(5px);}
@media(max-width:680px){dialog.new-deal-property{width:100%;margin:auto 0 0;}}
.deal-location-filter { display:grid; gap:5px; min-width:190px; max-width:320px; color:#50717d; font-size:11px; font-weight:700; }
.deal-location-filter details { position:relative; }
.deal-location-filter summary { cursor:pointer; list-style:none; padding:10px 34px 10px 12px; border:1px solid #cee1e6; border-radius:9px; background:#f6fbfb; color:#16424d; font-size:14px; }
.deal-location-filter summary::-webkit-details-marker { display:none; }
.deal-location-filter summary:focus-visible { outline:2px solid #008b95; outline-offset:2px; }
.deal-location-menu { position:absolute; z-index:10; top:calc(100% + 6px); left:0; width:100%; min-width:190px; max-height:280px; overflow:auto; padding:8px; background:#fff; border:1px solid #cee1e6; border-radius:12px; box-shadow:0 10px 30px #16354926; }
.deal-list-toolbar .deal-location-menu label { display:flex; align-items:center; gap:10px; min-width:0; max-width:none; padding:10px 6px; cursor:pointer; font-size:14px; color:#16424d; }
.deal-location-menu input { width:17px; height:17px; margin:0; accent-color:#008b95; }
.deal-location-menu button { border:0; background:transparent; color:#00838d; padding:8px 6px; font:inherit; font-size:13px; cursor:pointer; }
@media(max-width:600px) { .deal-location-filter { width:100%; max-width:none; min-width:0; } }
body.new-deal-page .inside-sales-main { max-width:none; margin:0; padding:90px 24px 24px; }
#deal-workspace { color:#163549; }
#deal-workspace [hidden] { display:none!important; }
#deal-workspace * { box-sizing:border-box; }
#deal-workspace .deal-cards-heading h2 { margin-top:0; }
.deal-address-card,.deal-list-toolbar input { font:inherit; }
#deal-workspace button { cursor:pointer; }
.deal-address-card:focus-visible { outline:3px solid #9b7325; outline-offset:3px; }
.deal-kicker { font-size:10px; letter-spacing:1.3px; font-weight:800; color:#00808a; }
.deal-queue,.deal-property,.deal-contacts { min-width:0; border:1px solid #d0e3e7; border-radius:18px; background:#fff; overflow:hidden; box-shadow:0 8px 24px #00444e06; }
.deal-queue header { padding:20px; background:#e8f4f5; }
.deal-queue h2 { font-size:20px; margin-bottom:4px; }
.deal-queue header span { font-size:12px; color:#587583; }
.deal-search { display:block; padding:12px; }
.deal-search input { width:100%; min-width:0; padding:11px; border:1px solid #d2e3e7; border-radius:9px; background:#f8fbfc; color:#163549; font-size:13px!important; }
.deal-queue-item { display:block; width:calc(100% - 20px); margin:0 10px 7px; text-align:left; border:1px solid transparent; border-radius:11px; background:white; padding:14px; color:#163549; overflow-wrap:anywhere; }
.deal-queue-item[aria-pressed=true] { border-color:#9dd6d9; background:#ebf8f8; box-shadow:inset 4px 0 #00929b; }
.deal-queue-item strong,.deal-queue-item span { display:block; }
.deal-queue-item strong { font-size:14px; }
.deal-queue-item span { font-size:12px; color:#557784; margin-top:5px; }
.deal-queue-item small { display:block; font-size:11px; color:#00818b; margin-top:7px; }
.deal-more { margin:10px; width:calc(100% - 20px); }
.deal-property-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; background:#fff; color:#163549; }
.deal-property-heading h2 { margin:0 0 5px; font-size:20px; overflow-wrap:anywhere; }
.deal-property-heading p { margin-bottom:0; color:#587583; font-size:13px; }
.deal-property-heading a { display:flex; flex-shrink:0; align-items:center; gap:7px; background:#fff; border:1px solid #d0e3e7; border-radius:9px; padding:9px 11px; color:#007e88; text-decoration:none; font-size:12px; }
.deal-property-heading img { width:23px; height:23px; object-fit:contain; }
.deal-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:13px 18px; border-bottom:1px solid #d5e6ea; background:#f8fcfc; }
.deal-tabs button { border:0; padding:11px 14px; border-radius:9px; color:#466675; background:transparent; font-weight:700!important; font-size:13px!important; }
.deal-tabs button[aria-pressed=true] { background:#007e88; color:white; }
.deal-map-panel p { padding:24px; }
.deal-panel h3 { font-size:17px; margin-bottom:12px; }
.deal-facts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:24px; }
.deal-fact { padding:14px; background:#f3f9fa; border:1px solid #dae9ec; border-radius:11px; overflow-wrap:anywhere; }
.deal-fact span { display:block; color:#5d7b86; font-size:12px; margin-bottom:6px; }
.deal-fact strong { font-size:14px; }
.deal-contacts h2 { font-size:19px; margin:7px 0; }
.deal-person { padding:18px 20px; border-top:1px solid #e1ecef; overflow-wrap:anywhere; }
.deal-person h3 { font-size:17px; margin:8px 0 4px; }
.deal-person .deal-owner { display:inline-block; color:#007e88; background:#e4f6f3; padding:3px 7px; border-radius:6px; font-size:10px; font-weight:bold; }
.deal-person p { font-size:12px; color:#5d7b86; margin-bottom:9px; }
.deal-person a { display:block; color:#007e88; font-size:13px; margin:8px 0; overflow-wrap:anywhere; }
.deal-phone { display:block; font-size:14px; color:#173f50; margin-top:10px; }
.deal-dial-link { display:block; background:linear-gradient(110deg,#008c98,#00aeb6); color:white!important; border-radius:11px; text-align:center; padding:14px 10px; font-size:13px; font-weight:800; margin:16px; text-decoration:none; }
.deal-footnote { margin:0 18px 20px; color:#607b87; font-size:11px; }
.deal-record { border:1px solid #d3e5e8; border-radius:12px; padding:18px; margin-bottom:12px; overflow-wrap:anywhere; }
.deal-record h3 { margin:6px 0 10px; }
.deal-record p { font-size:13px; white-space:pre-wrap; margin:8px 0; }
.deal-record small { color:#557583; font-size:12px; }
.deal-record a,.deal-panel a { color:#007e88; }
.deal-empty { padding:30px; color:#617b87; }
.deal-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.deal-list-toolbar label { display:grid; gap:5px; min-width:190px; max-width:320px; color:#50717d; font-size:11px; font-weight:700; flex-shrink:0; }
.deal-list-toolbar select { min-width:0; max-width:100%; padding:10px 34px 10px 12px; border:1px solid #cee1e6; border-radius:9px; background:#f6fbfb; color:#16424d; font:inherit; font-size:14px; }
.deal-list-toolbar select,.deal-location-filter summary { appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%2316424d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:16px 16px; }
.deal-sheet-tabs { display:flex; gap:8px; overflow-x:auto; padding:4px; min-width:0; }
.deal-sheet-tabs button { flex-shrink:0; padding:11px 17px; border:0; border-radius:9px; background:#eff6f7; color:#527480; font-size:13px; font-weight:700; }
.deal-sheet-tabs button[aria-pressed=true] { background:#007f89; color:white; }
.deal-queue > header { padding:16px 18px; }
.deal-queue [data-contact-list] { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.deal-queue-item { padding:12px; margin-bottom:4px; }
.deal-queue-footer button { width:34px; height:34px; border:1px solid #cbdfe3; border-radius:9px; background:#f6fbfb; color:#007f89; }
.deal-queue-footer button:disabled { opacity:.35; cursor:default; }
.deal-last-call { display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:12px; padding:16px 20px; background:#fff; border-bottom:1px solid #d6e7eb; }
.deal-last-call > div { min-width:0; }
.deal-last-call span { display:block; color:#67818b; font-size:10px; text-transform:uppercase; letter-spacing:.8px; margin-bottom:5px; }
.deal-last-call strong { display:block; color:#174455; font-size:13px; overflow-wrap:anywhere; }

/* Property cards open an accessible, focused property dialog. */
.deal-layout { display:block; }
.deal-property { border-radius:16px; }
.deal-list-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 16px; background:#fff; border:1px solid #d0e3e7; border-radius:14px; margin-bottom:16px; }
.deal-list-toolbar label { min-width:160px; }
.deal-sheet-tabs { flex:1; }
.deal-browse { margin-left:auto; max-width:100%; overflow-wrap:anywhere; border:1px solid #c8dfe4; border-radius:9px; background:#fff; color:#163549; padding:11px 16px; font-size:13px!important; font-weight:700!important; }
.deal-queue-footer { display:flex; align-items:center; gap:12px; color:#587583; font-size:12px; white-space:nowrap; }
.deal-queue { width:min(640px,calc(100vw - 32px)); max-height:80dvh; padding:0; margin:auto; border:1px solid #d0e3e7; border-radius:18px; }
.deal-queue:not([open]) { display:none; }
.deal-queue[open] { display:flex; flex-direction:column; }
.deal-queue::backdrop { background:#16354966; backdrop-filter:blur(3px); }
.deal-queue > header { display:flex; justify-content:space-between; align-items:center; background:#fff; }
.deal-queue header button { border:1px solid #d0e3e7; border-radius:8px; background:white; padding:8px 12px; color:#163549; }
.deal-queue [data-contact-list] { max-height:55dvh; }
.deal-queue-item { display:grid; grid-template-columns:1fr 1fr; column-gap:16px; }
.deal-queue-item small { grid-column:1 / -1; }
.deal-property-heading { padding:24px 28px 18px; }
.deal-property-heading h2 { font-size:24px; letter-spacing:-.5px; }
.deal-last-call { padding:16px 28px 22px; grid-template-columns:1fr 1fr 1fr; }
.deal-tabs { padding:0 20px; gap:12px; background:white; }
.deal-tabs button { border-radius:0; padding:16px 10px; border-bottom:3px solid transparent; }
.deal-tabs button[aria-pressed=true] { background:transparent; color:#007e88; border-bottom-color:#008c98; }
.deal-map-panel iframe { display:block; width:100%; height:clamp(360px,55dvh,650px); border:0; background:#e3edef; }
.deal-panel { padding:28px; min-height:360px; }
.deal-contacts { border:0; border-radius:0; box-shadow:none; }
.deal-contacts header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.deal-dial-link { margin:0; padding:12px 18px; }
.deal-contacts [data-people-list] { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }
.deal-person { border:1px solid #dce8ec; border-radius:12px; padding:20px; }
.deal-footnote { margin:20px 0 0; }
.deal-cards-heading { display:flex; align-items:center; gap:16px; margin:28px 0 18px; }
.deal-cards-heading h2 { margin:0; font-size:23px; }
.deal-cards-heading span { color:#617b87; font-size:13px; }
.deal-list-toolbar .deal-search { margin-left:auto; padding:0; width:300px; max-width:100%; }
.deal-address-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.deal-address-card { display:flex; flex-direction:column; text-align:left; padding:22px; border:1px solid #e5d1a4; border-radius:17px; background:linear-gradient(145deg,#fffdf8,#f8f1e2); color:#07565d; box-shadow:0 8px 24px #aa8c4810; transition:box-shadow .15s,border-color .15s; min-width:0; }
.deal-address-card:hover { border-color:#b28b38; box-shadow:0 8px 24px #aa8c4826; }
.deal-card-location { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; width:100%; }
.deal-card-location .deal-solar { flex-shrink:0; margin-left:auto; }
.deal-solar { padding:5px 9px; border-radius:7px; background:#f0f5f6; color:#607783; font-size:11px; }
.deal-solar.is-solar { background:#fff7e6; color:#ad7000; }
.deal-address-card > strong { font-size:19px; overflow-wrap:anywhere; }
.deal-card-city { color:#607783; font-size:13px; overflow-wrap:anywhere; }
.deal-card-call { display:grid; grid-template-columns:1fr 1.4fr; gap:12px; border-top:1px solid #e5d1a4; margin-top:24px; padding-top:18px; font-size:11px; color:#607783; }
.deal-card-call strong { display:block; font-size:12px; color:#07565d; margin-top:7px; overflow-wrap:anywhere; }
.deal-card-bottom { display:flex; justify-content:space-between; gap:10px; margin-top:22px; color:#07565d; font-size:11px; }
dialog.deal-property { width:min(1400px,calc(100vw - 40px)); max-width:none; max-height:92dvh; margin:auto; padding:0; overflow-y:auto; color:#163549; background:#f5fafa; border:1px solid #cee5e7; border-radius:24px; }
dialog.deal-property:not([open]) { display:none; }
dialog.deal-property::backdrop { background:#092d40a6; backdrop-filter:blur(5px); }
dialog.deal-property .deal-property-heading > div { flex:1; }
.deal-close { order:3; border:1px solid #c8dfe4; border-radius:9px; padding:9px 12px; background:white; color:#163549; }
[data-solar] { display:inline-block; margin-top:10px; font-size:12px; color:#607783; }
.deal-overview-heading { display:flex; align-items:center; gap:20px; background:#fff; padding:24px; margin-bottom:20px; }
.deal-overview-heading h2 { margin:6px 0 0; font-size:28px; }
.deal-home-icon { display:grid; place-items:center; width:60px; height:60px; flex-shrink:0; border-radius:16px; color:white; background:linear-gradient(135deg,#15b5aa,#009298); box-shadow:0 10px 20px #00929826; }
.deal-home-icon svg { width:30px; height:30px; }
.deal-summary-grid { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:20px; }
.deal-summary-card { min-width:0; border:1px solid #cfe3e6; border-radius:22px; background:#fff; overflow:hidden; }
.deal-summary-card h3 { margin:0; padding:24px; border-bottom:1px solid #deebed; font-size:21px; }
.deal-summary-card .deal-facts { gap:0; margin:0; }
.deal-summary-card .deal-fact { background:white; border:0; border-right:1px solid #e2ecee; border-bottom:1px solid #e2ecee; border-radius:0; padding:22px; min-height:110px; }
.deal-summary-card .deal-fact:nth-child(even) { border-right:0; }
.deal-summary-card .deal-fact span { color:#00838c; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.6px; }
.deal-summary-card .deal-fact strong { display:block; margin-top:10px; font-size:18px; }
.deal-summary-empty { padding:24px; color:#617b87; grid-column:1/-1; }
.deal-contacts [data-people-list] { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:20px 0; border:1px solid #cfe3e6; border-radius:22px; background:#fff; }
.deal-contacts .deal-person { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; border:0; border-right:1px solid #deebed; border-radius:0; padding:22px; }
.deal-contacts .deal-person:nth-child(3n) { border-right:0; }
.deal-contacts .deal-person .deal-owner { background:#005560; color:white; border-radius:999px; padding:7px 12px; }
.deal-person-phones { display:flex; flex-direction:column; gap:8px; align-self:start; padding-top:14px; }
.deal-contacts .deal-phone { margin:0; padding:8px 12px; border:1px solid #c5e1e4; border-radius:999px; background:#f4fafa; color:#008b94; font-weight:750; white-space:nowrap; font-size:12px; }
.deal-contacts .deal-dial-link { margin-top:20px; width:fit-content; margin-left:auto; }
@media(max-width:1100px) { .deal-contacts [data-people-list] { grid-template-columns:repeat(2,minmax(0,1fr)); } .deal-contacts .deal-person:nth-child(3n) { border-right:1px solid #deebed; } .deal-contacts .deal-person:nth-child(2n) { border-right:0; } .deal-summary-grid { gap:12px; } .deal-summary-card h3 { font-size:17px; padding:18px; } }
dialog.deal-property .deal-map-panel iframe { height:60dvh; }
@media(max-width:650px) {
  .deal-address-grid { grid-template-columns:1fr; }
  dialog.deal-property { width:calc(100vw - 16px); max-height:96dvh; border-radius:16px; }
  dialog.deal-property .deal-property-heading { padding:18px; gap:8px; }
  body.new-deal-page .inside-sales-main { padding:85px 12px 16px; }
  .deal-list-toolbar { gap:10px; padding:12px; }
  .deal-list-toolbar label { width:100%; max-width:none; min-width:0; }
  .deal-sheet-tabs { flex-basis:100%; }
  .deal-browse { margin-left:0; flex:1; text-align:left; }
  .deal-property-heading { padding:18px; align-items:flex-start; }
  .deal-property-heading h2 { font-size:19px; }
  .deal-property-heading a span { display:none; }
  .deal-last-call { padding:12px 18px; grid-template-columns:1fr; gap:12px; }
  .deal-last-call > div { display:flex; justify-content:space-between; gap:12px; }
  .deal-last-call strong { text-align:right; }
  .deal-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; padding:0 4px; gap:0; }
  .deal-tabs button { min-width:0; padding:14px 1px; font-size:10px!important; }
  .deal-panel { padding:18px; }
  .deal-facts,.deal-contacts [data-people-list] { grid-template-columns:1fr; }
  .deal-contacts header { flex-wrap:wrap; }
  .deal-map-panel iframe { height:360px; }
  .deal-summary-grid { grid-template-columns:1fr; }
  .deal-summary-card .deal-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .deal-overview-heading { padding:16px; gap:12px; }
  .deal-overview-heading h2 { font-size:22px; }
  .deal-contacts [data-people-list] { grid-template-columns:1fr; }
  .deal-contacts .deal-person { grid-template-columns:1fr; border-right:0!important; border-bottom:1px solid #deebed; }
  .deal-contacts .deal-person:last-child { border-bottom:0; }
  .deal-person-phones { flex-direction:row; flex-wrap:wrap; padding-top:0; }
}
/* Match the existing dialing property popup. */
dialog.deal-property { width:min(1180px,calc(100vw - 48px)); height:min(900px,calc(100dvh - 48px)); max-height:none; overflow:hidden; }
dialog.deal-property[open] { display:flex; flex-direction:column; }
.deal-modal-banner { flex:0 0 auto; }
dialog.deal-property > [data-panel] { flex:1 1 auto; min-height:0; overflow:auto; padding:20px 26px 26px; }
dialog.deal-property > [data-panel="permits"] { background:#f7fbfb; }
dialog.deal-property > [data-panel="permits"] h3 { margin:0; }
dialog.deal-property > [data-panel="map"] { display:flex; flex-direction:column; }
dialog.deal-property > [data-panel="map"] iframe { flex:1 1 auto; min-height:0; height:100%; border:1px solid #bedbd9; border-radius:16px; }
dialog.deal-property > [data-panel="map"] .deal-map-external { order:2; flex-shrink:0; margin:12px 0 0; }
@media(max-width:650px) { dialog.deal-property { width:100%; height:94dvh; max-height:94dvh; margin:auto 0 0; border-radius:22px 22px 0 0; } }
.deal-modal-banner { background:linear-gradient(110deg,#00313d,#00858b); }
dialog.deal-property .deal-property-heading { background:transparent; color:white; padding:24px 24px 20px; }
dialog.deal-property .deal-property-heading > div { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; }
dialog.deal-property .deal-property-heading h2 { margin:0; color:white; font-size:28px; line-height:1.3; }
dialog.deal-property [data-solar] { margin:0; padding:8px 12px; border:1px solid #eab957; border-radius:8px; background:#fffaf0; color:#cf8900; font-size:12px; font-weight:800; white-space:nowrap; }
.deal-modal-banner .deal-close { background:transparent; border-color:#ffffff50; color:white; flex-shrink:0; }
.deal-modal-banner .deal-tabs { background:transparent; padding:8px 24px; gap:10px; border:0; }
.deal-modal-banner .deal-tabs button { border:0; border-radius:12px; padding:16px 18px; color:white; }
.deal-modal-banner .deal-tabs button[aria-pressed=true] { background:white; color:#007880; }
dialog.deal-property .deal-contacts { background:#f5fafa; padding:24px; }
.deal-contacts .deal-overview { margin-top:16px; }
.deal-contacts .deal-overview-heading { justify-content:flex-start; margin-bottom:16px; }
.deal-contacts .deal-overview-heading h2 { margin:6px 0 0; font-size:28px; }
.deal-map-external { display:flex; align-items:center; gap:8px; margin:16px 24px; color:#007e88; text-decoration:none; width:fit-content; }
.deal-map-external img { width:24px; height:24px; }
@media(max-width:650px) {
  dialog.deal-property .deal-property-heading { padding:18px; align-items:flex-start; }
  dialog.deal-property .deal-property-heading h2 { font-size:20px; }
  .deal-modal-banner .deal-tabs { display:flex; flex-wrap:wrap; padding:8px 12px; gap:4px; }
  .deal-modal-banner .deal-tabs button { padding:12px 10px; }
  dialog.deal-property .deal-contacts { padding:16px; }
  .deal-contacts .deal-overview-heading h2 { font-size:22px; }
}
