/* Shared layout and interaction corrections, used by both appearances. */
@media screen {
  html body .top .accessSwitch{flex-wrap:wrap!important;align-items:end!important;gap:10px!important}
  html body .top{flex-wrap:wrap!important}
  html body .top .appearanceControl{display:flex;flex-direction:column;gap:5px;min-width:0;max-width:100%}
  html body .appearanceCaption{font:600 10px/1.5 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--ui-muted,#686157)}
  html body .appearanceButtons{display:flex;gap:3px;padding:3px;border:1px solid var(--ui-line,#d9d1c4);border-radius:7px;background:var(--ui-paper,#f5f4f0);width:280px;max-width:100%}
  html body .appearanceButtons button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;min-height:42px;padding:9px 10px;border:1px solid transparent;border-radius:4px;font:500 12px/1.4 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;color:#4c4a42;background:transparent;cursor:pointer;white-space:nowrap;box-shadow:none;transition:background .15s,color .15s}
  html body .appearanceSwatch{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#202622;box-shadow:0 0 0 1px #00000016}
  html body [data-core-appearance-button=cosmos] .appearanceSwatch{background:#806039}
  html body .appearanceButtons button[aria-pressed=true]{background:#202622;color:#fffdf6;border-color:#202622}
  html body .appearanceButtons button[data-core-appearance-button=cosmos][aria-pressed=true]{background:#493827;border-color:#493827}
  html body .appearanceButtons button[aria-pressed=true] .appearanceSwatch{box-shadow:0 0 0 1px #ffffff80;background:#c6cabd}
  html body .appearanceButtons button[data-core-appearance-button=cosmos][aria-pressed=true] .appearanceSwatch{background:#c2a477}
  html body .appearanceButtons button:hover:not([aria-pressed=true]){background:#eae7df}
  html body .appearanceButtons button:focus-visible{outline:2px solid #806039;outline-offset:2px}

  html body #calcModal{z-index:80!important}
  html body #clientOfferModal,html body #boardPdfModal,html body #pdfModal{z-index:90!important}
  html body #clientChoiceModal{z-index:110!important}
  html body #clientsPage .clientHeroTools{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
  html body #clientsPage .clientHeroTools button{width:auto!important;flex:0 1 auto!important}
  html body #telephonyPage .atsWorkspace{align-items:start!important}
  html body .modal .field{min-width:0}
  html body .modal .field :is(input,select,textarea){max-width:100%;min-width:0}
  html body .clientHero h2,html body .clientItem .name,html body .taskMain b,html body .dealCard h4,html body .employeeCard h4{overflow-wrap:anywhere}
  html body #boardPage .sectionHead{gap:12px;flex-wrap:wrap}
  html body #boardPage .sectionHead h2{min-width:0}
  html body .modalBackdrop .modal{overscroll-behavior:contain}
  html body .modal .close{touch-action:manipulation}
  @media(max-width:900px){
    html body .top{flex-wrap:wrap!important}
    html body .top .accessSwitch{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;width:100%!important;gap:8px!important;align-items:end!important}
    html body .top .accessSwitch>label{min-width:0!important;width:100%!important;font-size:10px!important;letter-spacing:.07em!important}
    html body .top .accessSwitch>label:first-child{grid-column:1!important;grid-row:1!important}
    html body .top .accessSwitch>.appearanceControl{grid-column:1/-1!important;grid-row:2!important;width:100%!important}
    html body .top .appearanceButtons{width:100%!important}
    html body .top .appearanceButtons button{min-height:44px!important;font-size:13px!important}
    html body .top .accessSwitch select{min-width:0!important;width:100%!important;font-size:16px!important;height:44px!important;min-height:44px!important;padding:8px!important}
    html body .top .accessSwitch #notificationBtn{width:44px!important;height:44px!important;grid-column:2!important;grid-row:1!important;align-self:end!important}
    html body .top .accessSwitch>.roleBadge{display:none!important}
    html body .top .accessSwitch #coreLogout{grid-column:1/-1!important}
    html body #clientsPage .clientHeroTools button{min-height:42px!important}
    html body #boardPage .unit .selectMini{width:34px!important;height:34px!important}
    html body .modal .field input,html body .modal .field select,html body .modal .field textarea{font-size:16px!important}
    html body .mobileNav{overscroll-behavior-x:contain}
  }
  @media(max-width:380px){
    html body .top .appearanceButtons button{padding:9px 8px!important;font-size:12px!important}
  }
}
@media print{.appearanceControl{display:none!important}}
/* Status chips: readable labels with natural wrapping in narrow cards. */
@media screen {
  html body :is(.badge,.statusPill,.projectTag,.priorityPill,.employeeTag,.convPill){box-sizing:border-box;max-width:100%;min-width:0;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;vertical-align:middle}
  html body :is(.statusPill,.projectTag,.priorityPill,.employeeTag,.convPill){display:inline-flex;align-items:center;justify-content:center;min-height:24px!important;padding:3px 8px!important;height:auto!important}
  html body .statusPill.sold{background:#eef0f2!important;color:#535f68!important}
  html body #dealsPage .dealCard .projectTag.hive{background:#e8ede2!important;color:#4b6042!important}
  html[data-core-appearance=cosmos] body #dealsPage .dealCard .projectTag.hive{background:#eee7dc!important;color:#66543d!important}
  html body :is(.dashCard,.dealStat,.taskStat,.employeeStat,.akpi){min-width:0;overflow-wrap:anywhere}
  html body :is(.dashCard,.dealStat,.taskStat,.employeeStat,.akpi)>b{max-width:100%;font-variant-numeric:tabular-nums}
}
@media screen {
  html body #dashboardPage #dashboardGrid>.dashCard>b,
  html body #analyticsPage .akpi>b,
  html body .dealStat b,html body .taskStat b,html body .employeeStat b{white-space:normal!important;overflow-wrap:anywhere!important}
  html body .statusPill.available{color:#70512e!important;background:#eee4d3!important}
  @media(max-width:380px){
    html body #dashboardPage #dashboardGrid>.dashCard.dashValue>b{font-size:22px!important}
  }
}
@media screen {
  html body #analyticsPage .projectSplit{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important;gap:12px!important;min-width:0}
  html body #analyticsPage .projectAnalytic{min-width:0}
  html body #analyticsPage .paValue{white-space:normal!important;overflow-wrap:anywhere!important}
}

/* Compact analytic panels and accessible foregrounds on tinted chips. */
@media screen {
  html body #analyticsPage .analyticsGrid,html body #analyticsPage .analyticsLower{align-items:start!important}
  html[data-core-appearance=cosmos] body #analyticsPage .projectAnalyticHead>span{color:#66543d!important;background:#eee7dc!important}
  html[data-core-appearance=premium] body #clientsPage .clientItem .avatar{color:#526040!important}
  html[data-core-appearance=premium] body #clientsPage .clientItem.active .avatar{color:#3f3423!important;background:#d8c5a5!important}
}

/* Lots: one responsive grid, with no horizontal clipping in either appearance. */
@media screen {
  html body #boardPage .boardPhoto {
    grid-template-columns:240px minmax(0,1fr)!important;
    align-items:stretch!important;
    padding:0!important;
    gap:0!important;
    box-shadow:none!important;
  }
  html body #boardPage .boardPhoto .complexPhoto {
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1.24;
    background-size:202% auto!important;
    background-position:left center!important;
    align-self:stretch!important;
  }
  html body #boardPage.theme-hive .boardPhoto .complexPhoto {background-position:right center!important}
  html body #boardPage .boardPhoto .photoCaption {
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    min-height:0!important;
    padding:24px 28px!important;
    border:0!important;
    margin:0!important;
  }
  html body #boardPage .boardPhoto::before,
  html body #boardPage .boardPhoto::after,
  html body #boardPage .floorLabel::before,
  html body #boardPage .floorLabel::after,
  html body #boardPage #board::before,
  html body #boardPage #board::after {display:none!important;content:none!important}
  html body #boardPage .toolbar {display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;align-items:center!important}
  html body #boardPage .toolbar>* {min-width:0!important;max-width:100%!important;margin:0!important;order:0!important}
  html body #boardPage .toolbar .projectSeg {grid-row:1!important;grid-column:1!important;display:flex!important;width:100%!important}
  html body #boardPage .toolbar .projectSeg button {flex:1!important}
  html body #boardPage .toolbar #search {grid-row:1!important;grid-column:2/span 2!important;width:100%!important;min-width:0!important}
  html body #boardPage .toolbar #floorFilter {grid-row:1!important;grid-column:4!important;width:100%!important}
  html body #boardPage .toolbar #statusFilter {grid-row:1!important;grid-column:5!important;width:100%!important}
  html body #boardPage .toolbar .selectedCount {grid-row:1!important;grid-column:6!important;text-align:right!important;justify-content:flex-end!important}
  html body #boardPage .toolbar #manageLotsBtn {grid-row:2!important;grid-column:4!important;width:100%!important}
  html body #boardPage .toolbar #boardPdfOpenBtn {grid-row:2!important;grid-column:5!important;width:100%!important}
  html body #boardPage .toolbar #openClientBtn {grid-row:2!important;grid-column:6!important;width:100%!important}
  @media(min-width:601px) and (max-width:1100px) {
    html body #boardPage .toolbar {grid-template-columns:repeat(3,minmax(0,1fr))!important}
    html body #boardPage .toolbar #floorFilter {grid-row:2!important;grid-column:1!important}
    html body #boardPage .toolbar #statusFilter {grid-row:2!important;grid-column:2!important}
    html body #boardPage .toolbar .selectedCount {grid-row:2!important;grid-column:3!important}
    html body #boardPage .toolbar #manageLotsBtn {grid-row:3!important;grid-column:1!important}
    html body #boardPage .toolbar #boardPdfOpenBtn {grid-row:3!important;grid-column:2!important}
    html body #boardPage .toolbar #openClientBtn {grid-row:3!important;grid-column:3!important}
  }
  html body #boardPage #board {padding:22px!important;overflow:visible!important}
  html body #boardPage #board .floor {
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:12px!important;
    margin:16px 0 0!important;
    min-width:0!important;
  }
  html body #boardPage #board .floorLabel {min-width:0!important;min-height:0!important;height:76px!important;align-self:start!important}
  html body #boardPage #board .units {
    grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr))!important;
    gap:10px!important;
    padding:2px!important;
    min-width:0!important;
    overflow:visible!important;
    align-items:stretch!important;
  }
  html body #boardPage #board .units .unit {
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    min-height:210px!important;
    height:auto!important;
    padding:12px!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    grid-template-rows:26px minmax(34px,auto) 1fr 36px!important;
    gap:6px!important;
  }
  html body #boardPage #board .unit .uTop {border:0!important;padding:0!important}
  html body #boardPage #board .unit .price {
    font-size:14px!important;
    line-height:1.5!important;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    letter-spacing:-.02em!important;
  }
  html body #boardPage #board .unit .meta {font-size:11px!important;line-height:1.6!important;overflow-wrap:normal!important}
  html body #boardPage #board .unit .soldText {font-size:11px!important;line-height:1.5!important;word-break:normal!important;overflow-wrap:normal!important}
  html body #boardPage #board .unit.reserved .meta>br:first-child {display:none!important}
  html body #boardPage #board .unit .selectMini {width:36px!important;height:36px!important}
  html body #boardPage #board .unit .mini {min-height:36px!important;max-width:100%!important;padding:6px 8px!important}
  html body #boardPage #board .sectionHead {margin-top:28px!important;margin-bottom:12px!important}
  html body #boardPage #board .sectionHead:first-child {margin-top:0!important}
  @media(max-width:600px) {
    html body #boardPage .boardPhoto {grid-template-columns:minmax(0,1fr)!important;margin-bottom:20px!important}
    html body #boardPage .boardPhoto .complexPhoto {aspect-ratio:1.6!important}
    html body #boardPage .boardPhoto .photoCaption {align-items:center!important;text-align:center!important;padding:18px!important}
    html body #boardPage .boardPhoto .photoCaption strong {font-size:26px!important;line-height:1.2!important}
    html body #boardPage .toolbar {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0 0 18px!important}
    html body #boardPage .toolbar>* {min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;order:0!important}
    html body #boardPage .toolbar .projectSeg {grid-column:1/-1!important;grid-row:1!important;display:flex!important}
    html body #boardPage .toolbar .projectSeg button {flex:1!important;min-height:44px!important}
    html body #boardPage .toolbar #search {grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important}
    html body #boardPage .toolbar :is(input,select,.btn) {min-height:44px!important}
    html body #boardPage .toolbar #floorFilter {grid-row:3!important;grid-column:1!important}
    html body #boardPage .toolbar #statusFilter {grid-row:3!important;grid-column:2!important}
    html body #boardPage .toolbar #manageLotsBtn {grid-row:4!important;grid-column:1!important}
    html body #boardPage .toolbar #openClientBtn {grid-row:4!important;grid-column:2!important}
    html body #boardPage .toolbar #boardPdfOpenBtn {grid-row:5!important;grid-column:1/-1!important}
    html body #boardPage .toolbar .selectedCount {grid-row:6!important}
    html body #boardPage .toolbar .selectedCount {grid-column:1/-1!important;text-align:right!important;justify-content:flex-end!important}
    html body #boardPage #board {padding:14px 12px!important}
    html body #boardPage #board .sectionHead h2 {font-size:25px!important;line-height:1.3!important}
    html body #boardPage #board .floor {grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-top:20px!important}
    html body #boardPage #board .floorLabel {
      display:flex!important;
      align-items:center!important;
      justify-content:flex-start!important;
      gap:7px!important;
      padding:8px 12px!important;
      min-height:42px!important;
      height:auto!important;
      text-align:left!important;
    }
    html body #boardPage #board .floorLabel b {font-size:22px!important;line-height:1.2!important}
    html body #boardPage #board .floorLabel small {margin:0!important;font-size:11px!important;letter-spacing:.05em!important}
    html body #boardPage #board .units {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
    html body #boardPage #board .units .unit {grid-template-columns:40px minmax(0,1fr)!important;grid-template-rows:26px minmax(34px,auto) 1fr 44px!important;min-height:224px!important;padding:10px!important}
    html body #boardPage #board .unit .selectMini {width:40px!important;height:44px!important}
    html body #boardPage #board .unit .mini {min-height:44px!important;padding:6px!important}
  }
  @media(max-width:359px) {
    html body #boardPage #board .units .unit {grid-template-columns:36px minmax(0,1fr)!important;padding:8px!important;gap:5px!important}
    html body #boardPage #board .unit .selectMini {width:36px!important}
    html body #boardPage #board .unit .mini {font-size:10px!important;padding:4px!important}
    html body #boardPage #board .unit .meta {font-size:10.5px!important}
  }
}

/* Keep the complete PDF label visible in the desktop toolbar. */
html body #boardPage #boardPdfOpenBtn{white-space:normal!important;height:auto!important;min-height:44px!important;line-height:1.3!important}
/* A single quiet workspace toolbar, shared by both approved themes. */
@media screen {
  html body .top.coreTopbar {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;gap:22px!important;min-height:76px!important;
    padding:0 0 24px!important;margin-bottom:26px!important;
    border-bottom:1px solid var(--ui-line,#d9d1c4)!important;
    background:transparent!important;box-shadow:none!important;
  }
  html body .top.coreTopbar:before,html body .top.coreTopbar:after{display:none!important}
  html body .coreTopbar .corePageHeading{min-width:0}
  html body .coreTopbar #pageTitle{
    margin:0!important;font-family:var(--private-serif,Georgia,serif)!important;
    font-size:40px!important;font-weight:400!important;line-height:1.12!important;
    letter-spacing:-.025em!important;overflow-wrap:normal!important;
  }
  html body .top.coreTopbar .accessSwitch{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
    justify-content:flex-end!important;gap:10px!important;width:auto!important;min-width:0!important;
  }
  html body .coreTopbar .coreRoleControl:has(#roleSwitch:disabled){display:none!important}
  html body .coreTopbar .accessSwitch:not(:has(#roleSwitch:disabled)) .coreAccessIdentity{display:none!important}
  html body .top.coreTopbar .coreAccessIdentity{
    display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:44px;
    min-width:64px;padding-right:18px;margin-right:4px;border-right:1px solid var(--ui-line,#d9d1c4);
  }
  html body .coreTopbar .coreAccessCaption{
    font:500 9px/1.2 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
    letter-spacing:.12em;text-transform:uppercase;color:var(--ui-muted,#756958);
  }
  html body .top.coreTopbar .coreAccessIdentity .roleBadge{
    display:block!important;min-height:0!important;padding:0!important;margin:0!important;
    border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
    color:var(--ui-ink,#30291f)!important;font:500 12px/1.3 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif!important;
    white-space:nowrap!important;letter-spacing:.01em!important;
  }
  html body .coreTopbar .roleBadge:before{display:none!important}
  html body .top.coreTopbar .appearanceControl{display:block!important;min-width:0!important;max-width:100%!important}
  html body .coreTopbar .appearanceCaption{display:none!important}
  html body .top.coreTopbar .appearanceButtons{
    display:flex!important;box-sizing:border-box;width:246px!important;max-width:100%!important;
    height:44px!important;padding:3px!important;gap:3px!important;
    border:1px solid var(--ui-line,#d9d1c4)!important;border-radius:6px!important;
    background:var(--ui-surface,#fcfaf6)!important;box-shadow:none!important;
  }
  html body .top.coreTopbar .appearanceButtons button{
    display:flex!important;flex:1!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;height:36px!important;min-height:36px!important;padding:0 11px!important;
    border:1px solid transparent!important;border-radius:3px!important;
    font:500 12px/1.3 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif!important;
    letter-spacing:0!important;white-space:nowrap!important;box-shadow:none!important;
  }
  html body .coreTopbar .appearanceSwatch{display:none!important}
  html body .top.coreTopbar #notificationBtn{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;
    padding:0!important;border:1px solid var(--ui-line,#d9d1c4)!important;border-radius:6px!important;
    background:transparent!important;color:var(--ui-ink,#30291f)!important;box-shadow:none!important;
  }
  html body .coreTopbar #notificationBtn svg{
    display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
  }
  html body .coreTopbar #notificationBtn:after{display:none!important}
  html body .top.coreTopbar #coreLogout{
    flex:0 0 auto!important;width:72px!important;height:44px!important;min-height:44px!important;
    margin:0!important;padding:0 12px!important;border:1px solid var(--ui-line,#d9d1c4)!important;
    border-radius:6px!important;background:transparent!important;color:var(--ui-ink,#30291f)!important;
    font:500 12px/1.3 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif!important;box-shadow:none!important;
  }
  html body .coreTopbar :is(#notificationBtn,#coreLogout):hover{background:var(--ui-surface,#fcfaf6)!important}
  html body .coreTopbar :is(button,select):focus-visible{outline:2px solid var(--ui-accent,#806744)!important;outline-offset:3px!important}
  @media(max-width:1239px){
    html body .top.coreTopbar{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
    html body .top.coreTopbar .accessSwitch{width:100%!important;justify-content:flex-start!important}
    html body .top.coreTopbar .coreAccessIdentity{margin-right:auto!important;border-right:0!important;padding-right:0!important}
  }
  @media(max-width:600px){
    html body .top.coreTopbar{gap:18px!important;padding-bottom:20px!important;margin-bottom:20px!important}
    html body .coreTopbar #pageTitle{font-size:34px!important;line-height:1.12!important}
    html body .top.coreTopbar .accessSwitch{
      display:grid!important;grid-template-columns:minmax(0,1fr) 44px 72px!important;
      align-items:center!important;gap:12px 8px!important;
    }
    html body .top.coreTopbar .coreAccessIdentity,html body .top.coreTopbar .coreRoleControl{grid-column:1!important;grid-row:1!important;min-width:0!important}
    html body .top.coreTopbar .accessSwitch .appearanceControl{grid-column:1/-1!important;grid-row:2!important;width:100%!important}
    html body .top.coreTopbar .appearanceButtons{width:100%!important;height:48px!important}
    html body .top.coreTopbar .appearanceButtons button{height:40px!important;min-height:40px!important;font-size:13px!important}
    html body .top.coreTopbar .accessSwitch #notificationBtn{grid-column:2!important;grid-row:1!important;align-self:center!important}
    html body .top.coreTopbar .accessSwitch #coreLogout{grid-column:3!important;grid-row:1!important}
    html body .top.coreTopbar .coreRoleControl select{min-width:0!important;width:100%!important}
  }
  @media(max-width:359px){html body .coreTopbar #pageTitle{font-size:30px!important}}
}

/* Unified line icons: presentation only, both approved appearances. */
@media screen {
 html body :is(.nav,.mobileNav) button i{display:inline-flex!important;align-items:center;justify-content:center;font-style:normal;flex-shrink:0}
 html body :is(.nav,.mobileNav) button i svg,
 html body #notificationBtn svg,
 html body .projectMaterialsButton svg{fill:none!important;stroke:currentColor!important;stroke-width:1.5!important;stroke-linecap:round!important;stroke-linejoin:round!important;vertical-align:middle;flex-shrink:0}
 html body :is(.nav,.mobileNav) button i svg{width:20px!important;height:20px!important;overflow:visible}
 html body :is(.nav,.mobileNav) button i svg path{vector-effect:non-scaling-stroke}
 html body #notificationBtn svg,html body .projectMaterialsButton svg{width:18px!important;height:18px!important}
 html body .main input.search{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238a785a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.5%22%2F%3E%3Cpath%20d%3D%22m15.5%2015.5%205%205%22%2F%3E%3C%2Fsvg%3E")!important;background-repeat:no-repeat!important;background-size:17px 17px!important;background-position:12px center!important;padding-left:38px!important;box-sizing:border-box}
 html body .main select.filter{appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%238a785a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%2010%205%205%205-5%22%2F%3E%3C%2Fsvg%3E")!important;background-repeat:no-repeat!important;background-size:16px 16px!important;background-position:right 10px center!important;padding-right:32px!important;box-sizing:border-box}
 html body .uiDisclosure>summary{list-style:none!important}
 html body .uiDisclosure>summary::-webkit-details-marker{display:none}
 html body .uiDisclosure>summary::before{content:''!important;display:inline-block!important;width:6px;height:6px;border:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);vertical-align:3px;margin-right:11px;background:none!important}
 html body .uiDisclosure[open]>summary::before{transform:rotate(45deg);vertical-align:4px}
}
@media (forced-colors:active){html body .main input.search{background-image:none!important;padding-left:12px!important}html body .main select.filter{appearance:auto!important;background-image:none!important}}

@media screen{html body .quickAction i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}html body .quickAction i{display:inline-flex;align-items:center;justify-content:center}}
/* Mobile private office, scoped to preserve approved desktop. */
@media screen and (max-width:600px){
html body{background:#f3eee7!important;color:#27241f!important}
html body .main{padding:16px 12px 116px!important}
html body .coreTopbar{gap:12px!important;padding:8px 0 16px!important;border:0!important}
html body .corePageHeading:before{content:'CORE CRM';display:block;font-family:var(--private-serif,Georgia,serif);font-size:32px;letter-spacing:.05em;color:#211e19}
html body .corePageHeading:after{content:'PRIVATE OFFICE';display:block;font-size:9px;letter-spacing:.4em;color:#a58a68;margin-top:4px}
html body .corePageHeading h1{font-size:22px!important;margin-top:14px!important}html body .corePageHeading p{display:none!important}
html body #dashboardPage{display:flex;flex-direction:column;gap:12px}html body #dashboardPage.hidden{display:none!important}
html body #dashboardPage .photoProjects{order:0;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
html body #dashboardPage .projectMaterialCard{min-width:0;position:relative}
html body #dashboardPage .photoProject{position:relative;display:block;width:100%;height:260px;border:0!important;border-radius:12px!important;color:#fff!important;box-shadow:0 5px 16px #6f54331c}
html body #dashboardPage .complexPhoto{position:absolute;inset:0;height:100%;background-size:auto 100%;background-position:left center}
html body #dashboardPage .photoHive .complexPhoto{background-position:right center}
html body #dashboardPage .photoProject:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 30%,#171713cc 100%);pointer-events:none}
html body #dashboardPage .photoCaption{position:absolute;z-index:1;bottom:18px;left:12px;right:10px;padding:0!important;display:block;color:white}
html body #dashboardPage .photoCaption:before{content:'COSMOS';font-size:10px;letter-spacing:.15em}
html body #dashboardPage .photoCaption strong{display:block;font-size:clamp(24px,8vw,36px)!important;font-weight:400;letter-spacing:.04em!important;color:#fff!important}
html body #dashboardPage .photoCaption span{display:block;font-size:10px!important;color:#eee9df!important;margin-top:6px}
html body #dashboardPage .projectMaterialsButton{width:100%;min-height:44px;margin-top:6px!important;padding:8px 4px!important;border-radius:10px!important;font-size:10px!important;background:#faf7f2!important;border:1px solid #e4dcd0!important}
html body #dashboardPage .dashboardQuick{order:1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:0!important;background:#fcfaf6!important;border:1px solid #e8e1d8;border-radius:16px;padding:10px 4px;box-shadow:0 3px 12px #755e3810}
html body #dashboardPage .quickAction{grid-column:auto!important;display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:74px!important;padding:4px!important;font-size:10px!important;line-height:1.3!important;border:0!important;border-right:1px solid #e3dbd0!important;border-radius:0!important;background:transparent!important;color:#2c2924!important;text-align:center}
html body #dashboardPage .quickAction:last-child{border-right:0!important}html body #dashboardPage #quickBackup{display:none!important}
html body #dashboardPage .quickAction i{background:transparent!important;border:0!important;width:28px!important;height:28px!important;color:#756044!important}html body #dashboardPage .quickAction svg{width:26px;height:26px}
html body #dashboardPage #dashboardGrid{order:2;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html body #dashboardPage #dashboardGrid>.dashCard{background:#fcfaf6!important;color:#2c2924!important;border:1px solid #e8e1d8!important;border-radius:16px!important;padding:16px!important;min-height:96px!important;order:3!important}
html body #dashboardPage #dashboardGrid>.dashCard:before,#dashboardPage #dashboardGrid>.dashCard:after{display:none!important}
html body #dashboardPage #dashboardGrid>.focusDesk{order:0!important;grid-column:1/-1;padding:14px!important;background:#fcfaf6!important;border:1px solid #e8e1d8!important;border-radius:16px!important;margin:0!important}
html body #dashboardPage .focusDeskHead{padding:0 0 12px!important;margin:0!important;border:0!important;background:transparent!important;color:#29241f!important;gap:8px}
html body #dashboardPage .focusDeskHead h3{font-family:var(--private-serif,Georgia,serif);font-size:24px!important;font-weight:400!important;line-height:1.1}html body #dashboardPage .focusDeskHead div>span{color:#a58a68!important;font-size:9px!important;letter-spacing:.14em!important}
html body #dashboardPage .focusDeskHead em{font-size:10px!important;background:#f1ebe2!important;color:#6e5a40!important;padding:8px!important;border-radius:20px!important}
html body #dashboardPage .focusDeskGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;background:transparent!important}
html body #dashboardPage .focusLane{padding:12px 9px!important;min-width:0;border:0!important;border-radius:12px;background:#f4efe8!important;overflow-wrap:anywhere}
html body #dashboardPage .focusLaneTitle{display:flex;flex-direction:column;align-items:flex-start!important;gap:8px;font-size:11px!important;line-height:1.3!important}
html body #dashboardPage .focusLaneTitle b{font-weight:500!important;min-height:30px}html body #dashboardPage .focusLaneTitle>span{font-family:var(--private-serif,Georgia,serif);font-size:36px!important;line-height:1;color:#24201b;background:transparent!important;padding:0!important}
html body #dashboardPage .focusEmpty{font-size:10px!important;color:#81796f!important;line-height:1.4!important;padding:8px 0 0!important}
html body #dashboardPage .focusItem{padding:8px 0!important;font-size:10px!important}html body #dashboardPage .focusItem b{font-size:10px!important}
html body #dashboardPage #dashboardGrid>.dashWide{grid-column:1/-1;order:1!important}html body #dashboardPage .miniFunnelRow{grid-template-columns:100px minmax(0,1fr) 24px!important;padding:7px 0!important}html body #dashboardPage .miniFunnelRow b{font-size:12px!important}html body #dashboardPage .miniFunnelBar{height:6px!important;background:#f1ebe3!important;border-radius:10px}html body #dashboardPage .miniFunnelBar i{background:#bda88d!important;border-radius:10px}
html body .mobileNav{left:12px!important;right:12px!important;bottom:8px!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;border-radius:28px!important;background:#fcfaf6f5!important;border:1px solid #e5ddd2!important;padding:6px 4px max(6px,env(safe-area-inset-bottom))!important;box-shadow:0 8px 28px #71563724!important}
html body .mobileNav button{border-radius:20px!important;min-height:58px!important;padding:8px 0!important;color:#746b60!important}html body .mobileNav button span{font-size:9px!important}html body .mobileNav button.active{background:#efe4d5!important;color:#59452d!important}html body .mobileNav button i{font-size:22px!important}html body .mobileNav button[data-page='tasks'],.mobileNav button[data-page='analytics'],.mobileNav button[data-page='telephony'],.mobileNav button[data-page='control']{display:none!important}
html body .coreMobileExtra{display:grid!important}html body .coreMobileMenu{position:fixed;z-index:65;left:12px;right:12px;bottom:100px;background:#fcfaf6;border:1px solid #e5ddd2;box-shadow:0 10px 40px #47352030;border-radius:20px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}html body .coreMobileMenu[hidden]{display:none!important}html body .coreMobileMenu button{min-height:48px;border:1px solid #e8dfd1;border-radius:12px;background:#f4eee5;color:#4d4030;font-size:13px}
}
@media(min-width:601px){html body .coreMobileExtra,.coreMobileMenu{display:none!important}}
@media(max-width:600px){html body #dashboardPage #dashboardGrid>section.focusDesk{order:0!important}html body #dashboardPage #dashboardGrid>div.panel.dashCard{order:3!important;background:#fcfaf6!important;color:#29241f!important}html body #dashboardPage #dashboardGrid>div.panel.dashCard.dashWide{order:1!important;min-height:0!important}html body #dashboardPage #dashboardGrid>.photoProjects{order:-1!important;grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html body #dashboardPage .dashboardQuick{grid-template-columns:repeat(4,minmax(0,1fr))!important}html body .corePageHeading h1{font-size:22px!important}html body .main{padding:12px 12px 116px!important}html body .mobileNav{grid-template-columns:repeat(6,minmax(0,1fr))!important}html body .mobileNav button.active{background:#efe4d5!important;color:#59452d!important}}
@media(max-width:600px){html body nav.mobileNav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:2px!important}html body nav.mobileNav button{min-width:0!important;width:100%!important;flex:initial!important}html body #dashboardPage .photoProjects{grid-template-columns:repeat(2,minmax(0,1fr))!important}}/* Unified private-office controls; semantic colors and original handlers retained. */
html body button{border-radius:12px!important;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html body button.btn,html body .actionStack button,html body .modal button:not(.photoProject),html body .drawerActions button,html body .coreMobileMenu button{min-height:44px!important;padding:11px 16px!important;font:500 13px/1.35 var(--office-sans,-apple-system,BlinkMacSystemFont,sans-serif)!important;letter-spacing:.01em!important;border-radius:12px!important;border:1px solid #ded3c4!important;box-shadow:0 2px 5px #65503508!important;transition:background .16s,border-color .16s,box-shadow .16s!important}
html body button.btn.dark,html body button.btn.lime,html body .modal button.primary{background:#8e7454!important;border-color:#8e7454!important;color:#fffdf8!important}
html body button.btn.outline,html body button.btn.soft{background:#fcfaf6!important;color:#65513a!important;border-color:#ded3c4!important}
html body button.btn.danger{background:#fff5f3!important;border-color:#e4c5be!important;color:#963f34!important}
html body button:focus-visible{outline:2px solid #a88960!important;outline-offset:3px!important}
html body button:disabled{opacity:.45!important;cursor:not-allowed!important;box-shadow:none!important}
html body button svg{flex-shrink:0;vertical-align:middle}
html body .sidebar .nav button{border-radius:12px!important}
html body #notificationBtn{min-width:44px!important;min-height:44px!important;border-radius:50%!important;border:1px solid #e0d4c4!important;background:#faf6ef!important;color:#725b40!important}
html body #coreAppearance button{border-radius:10px!important;min-height:40px!important}
html body #coreAppearance button[aria-pressed='true']{background:#8e7454!important;color:#fffdf8!important;border-color:#8e7454!important}
@media(hover:hover){html body button.btn:hover:not(:disabled){border-color:#a98a63!important;box-shadow:0 4px 10px #65503512!important}html body button.btn.dark:hover:not(:disabled),html body button.btn.lime:hover:not(:disabled){background:#7d6244!important}}
html body button.btn:active:not(:disabled){box-shadow:inset 0 2px 4px #47331e18!important}
@media(max-width:600px){html body nav.mobileNav button{border-radius:20px!important}html body nav.mobileNav button.active{background:#efe4d5!important;color:#59452d!important}html body #dashboardPage .dashboardQuick .quickAction{border-radius:0!important;box-shadow:none!important}html body #dashboardPage .dashboardQuick .quickAction:first-child{border-radius:12px 0 0 12px!important}html body #dashboardPage .dashboardQuick .quickAction:last-of-type{border-radius:0 12px 12px 0!important}html body #dashboardPage button.projectMaterialsButton{min-height:46px!important;padding:8px 6px!important;border-radius:12px!important;line-height:1.35!important;background:#fcfaf6!important;border-color:#e3d7c7!important;color:#715638!important}html body button.btn{font-size:12px!important;padding:10px 12px!important}html body .coreMobileMenu button{background:#f8f3eb!important;color:#695138!important}}
@media(prefers-reduced-motion:reduce){html body button{transition:none!important}}
/* Consistent geometry and icon rhythm across the private office. */
html body :is(.btn,.quickAction,.filter,.search,.uiViewSwitch button,.tabs button){box-sizing:border-box!important}
html body :is(.btn,.quickAction,.uiViewSwitch button,.tabs button){min-height:44px!important;line-height:1.35!important;border-radius:12px!important;white-space:normal!important;overflow-wrap:break-word!important}
html body :is(.toolbar,.dealsToolbar,.tasksToolbar,.analyticsToolbar,.controlToolbar,.modalActions,.drawerActions){gap:10px!important;align-items:center!important}
html body :is(.toolbar,.dealsToolbar,.tasksToolbar,.analyticsToolbar,.controlToolbar) :is(input,select,button){min-width:0!important;max-width:100%!important}
html body :is(.btn,.quickAction) svg{width:20px!important;height:20px!important;stroke-width:1.5!important;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0!important}
html body :is(.nav,.mobileNav) button i{display:inline-flex!important;align-items:center!important;justify-content:center!important}
html body :is(.nav,.mobileNav) button i svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important;stroke-linecap:round;stroke-linejoin:round}
html body button.close,html body #closeDrawer{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;flex-shrink:0!important}
html body button.close svg,html body #closeDrawer svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
html body .dashLink{min-height:44px!important;padding:10px 0!important;display:inline-flex;align-items:center}
html body .modalTop{gap:12px!important;align-items:flex-start!important}html body .modalTop>div{min-width:0!important;flex:1}
html body .modalActions{display:flex!important;flex-wrap:wrap!important}.modalActions>button{flex:1 1 140px;min-width:0!important}
html body .modal{box-sizing:border-box!important;max-width:calc(100vw - 24px)!important}
@media(max-width:600px){
html body .crmPageJump{display:none!important}
html body .top.coreTopbar{margin:0 0 12px!important;padding:6px 0 10px!important;min-height:0!important;border:0!important}
html body .corePageHeading:before{font-size:29px!important}html body .corePageHeading:after{font-size:8px!important;letter-spacing:.3em!important}
html body .top.coreTopbar .accessSwitch{gap:8px!important}
html body .top.coreTopbar .accessSwitch .appearanceControl{padding:3px!important;border-radius:14px!important;min-height:0!important}
html body #coreAppearance button{min-height:36px!important;padding:6px 10px!important;font-size:11px!important}
html body .top.coreTopbar .coreAccessIdentity{min-width:0!important;overflow-wrap:anywhere}
html body :is(.toolbar,.dealsToolbar,.tasksToolbar,.analyticsToolbar,.controlToolbar){gap:8px!important;padding:12px!important;border-radius:16px!important}
html body :is(.toolbar,.dealsToolbar,.tasksToolbar,.analyticsToolbar,.controlToolbar) .btn{min-height:46px!important}
html body .modal{width:100%!important;border-radius:22px 22px 0 0!important;max-height:calc(100dvh - 12px)!important;overflow-y:auto!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
html body nav.mobileNav button{gap:5px!important;min-height:60px!important}
html body nav.mobileNav button i{width:24px!important;height:24px!important}
html body nav.mobileNav button span{font-size:9px!important;line-height:1.1!important}
html body .pickbar{bottom:calc(92px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;flex-wrap:wrap!important;gap:8px!important}
html body .pickbar button{min-height:44px!important}
html body .boardPhoto .complexPhoto{height:160px!important;min-height:160px!important}
}
html body :is(#clientsPage,#dealsPage,#boardPage,#tasksPage,#analyticsPage,#telephonyPage,#controlPage,#settingsPage) button.btn{border-radius:12px!important;min-height:44px!important;line-height:1.35!important;padding:10px 14px!important}
@media(max-width:600px){html body .dealsStats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}html body .dealsStats>div{padding:14px!important;min-height:92px!important;border-radius:14px!important}html body .dealsStats b{font-size:25px!important;overflow-wrap:anywhere!important}}
@media screen{html body .top.coreTopbar .accessSwitch .appearanceControl{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}html body .top.coreTopbar #coreAppearance.appearanceButtons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;padding:4px!important;width:280px!important;max-width:100%!important;height:auto!important;box-sizing:border-box!important;overflow:visible!important;border-radius:14px!important;isolation:isolate}html body .top.coreTopbar #coreAppearance.appearanceButtons>button{position:relative!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;max-width:100%!important;flex:none!important;height:auto!important;min-height:44px!important;margin:0!important;padding:9px 6px!important;border-radius:10px!important;transform:none!important;white-space:normal!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:normal!important;box-shadow:none!important}html body .top.coreTopbar #coreAppearance.appearanceButtons>button>span{min-width:0!important;overflow-wrap:normal!important}html body .top.coreTopbar #coreAppearance.appearanceButtons>button:focus-visible{outline-offset:-3px!important}@media(max-width:600px){html body .top.coreTopbar #coreAppearance.appearanceButtons{width:100%!important}html body .top.coreTopbar #coreAppearance.appearanceButtons>button{font-size:11px!important}}}
