/* PD702 Sales OS Shared UI 3.0.0
   Shared visual language for Brooklyn-integrated customer + setter experiences. */
:root{
  --pd702-bg:#090b10;
  --pd702-surface:#11151d;
  --pd702-surface-2:#171c26;
  --pd702-surface-3:#202632;
  --pd702-line:#2c3545;
  --pd702-line-strong:#3b4960;
  --pd702-text:#f7fbff;
  --pd702-text-muted:#aab6c6;
  --pd702-text-on-light:#102b38;
  --pd702-cyan:#20cfcf;
  --pd702-cyan-2:#56e4f4;
  --pd702-purple:#7424bb;
  --pd702-success:#43d39e;
  --pd702-warning:#f5b942;
  --pd702-danger:#ff7188;
  --pd702-info:#65b7ff;
  --pd702-radius-sm:10px;
  --pd702-radius:16px;
  --pd702-radius-lg:22px;
  --pd702-shadow:0 18px 45px rgba(0,0,0,.24);
  --pd702-touch:48px;
}
body.pd702-brooklyn-integrated :is(#pd702-portal,.pd702-iwq,.pd702li-front){color:var(--pd702-text)}
body.pd702-brooklyn-integrated :is(#pd702-portal,.pd702-iwq,.pd702li-front) :is(button,a,input,select,textarea){font:inherit}
body.pd702-brooklyn-integrated :is(#pd702-portal,.pd702-iwq,.pd702li-front) :is(input,select,textarea){min-height:var(--pd702-touch)}
body.pd702-brooklyn-integrated :is(#pd702-portal,.pd702-iwq,.pd702li-front) :is(button,[role="button"],a[class*="btn"]){touch-action:manipulation}
body.pd702-brooklyn-integrated :is(#pd702-portal,.pd702-iwq,.pd702li-front) :is(button,a,input,select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--pd702-cyan-2) 54%,transparent)!important;outline-offset:2px!important}
body.pd702-brooklyn-integrated .pd702-ui-card{background:linear-gradient(180deg,var(--pd702-surface-2),var(--pd702-surface));border:1px solid var(--pd702-line);border-radius:var(--pd702-radius);box-shadow:var(--pd702-shadow)}
body.pd702-brooklyn-integrated .pd702-ui-pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:5px 9px;border-radius:999px;border:1px solid var(--pd702-line);background:var(--pd702-surface-2);color:var(--pd702-text);font-size:11px;font-weight:850}
body.pd702-brooklyn-integrated .pd702-ui-primary{background:linear-gradient(90deg,var(--pd702-cyan),var(--pd702-cyan-2))!important;color:#061113!important;border-color:transparent!important;font-weight:900!important}
body.pd702-brooklyn-integrated .pd702-ui-secondary{background:var(--pd702-surface-3)!important;color:var(--pd702-text)!important;border:1px solid var(--pd702-line-strong)!important}
body.pd702-brooklyn-integrated .pd702-ui-danger{background:#30161d!important;color:#ffeef2!important;border:1px solid #703241!important}
body.pd702-brooklyn-integrated .pd702-ui-light{background:#f7fafc!important;color:var(--pd702-text-on-light)!important;border-color:#d9e3e8!important}
body.pd702-brooklyn-integrated .pd702-ui-light :is(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,label,a,li,td,th){color:var(--pd702-text-on-light)!important}
body.pd702-brooklyn-integrated .pd702-network-state{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));z-index:2147482000;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:min(92vw,560px);padding:10px 14px;border-radius:999px;background:#2b1519;color:#ffeef1;border:1px solid #73343f;box-shadow:0 12px 36px rgba(0,0,0,.36);font-size:12px;font-weight:850}
body.pd702-brooklyn-integrated .pd702-network-state[hidden]{display:none!important}
body.pd702-brooklyn-integrated [aria-busy="true"]{cursor:progress!important}
body.pd702-brooklyn-integrated [aria-busy="true"]:after{content:"";display:inline-block;width:.85em;height:.85em;margin-left:.55em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:pd702SharedSpin .7s linear infinite;vertical-align:-.1em}
@keyframes pd702SharedSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){
  body.pd702-brooklyn-integrated{font-size:16px}
  body.pd702-brooklyn-integrated :is(#pd702-portal,.pd702-iwq) :is(button,a[class*="btn"],input,select,textarea){min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  body.pd702-brooklyn-integrated *,body.pd702-brooklyn-integrated *:before,body.pd702-brooklyn-integrated *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* Sales OS 20 owner-admin bridge */
body.pd702-admin-integrated .pd702li{--pd702-bg:#090b10;--pd702-surface:#11151d;--pd702-surface-2:#171c26;--pd702-line:#2c3545;--pd702-text:#f7fbff;--pd702-text-muted:#aab6c6}
body.pd702-admin-integrated .pd702li :is(button,a,input,select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--pd702-cyan-2) 54%,transparent)!important;outline-offset:2px!important}
body.pd702-admin-integrated .pd702li [aria-busy="true"]{cursor:progress!important}
body.pd702-admin-integrated .pd702-network-state{position:fixed;left:50%;bottom:18px;z-index:100000;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:min(92vw,560px);padding:10px 14px;border-radius:999px;background:#2b1519;color:#ffeef1;border:1px solid #73343f;box-shadow:0 12px 36px rgba(0,0,0,.36);font-size:12px;font-weight:850}
body.pd702-admin-integrated .pd702-network-state[hidden]{display:none!important}

/* v3.1.0 — shared final accessibility/compatibility layer */
:where(.pd702li,.pd702-rp,.pd702-iwq),:where(.pd702li,.pd702-rp,.pd702-iwq) *{box-sizing:border-box}
:where(.pd702li,.pd702-rp,.pd702-iwq) :where(img,svg,video,canvas){max-width:100%;height:auto}
:where(.pd702li,.pd702-rp,.pd702-iwq) :where(button,[role=button],a,input,select,textarea):focus-visible{outline:3px solid #56e4f4;outline-offset:2px}
:where(.pd702li,.pd702-rp,.pd702-iwq) :where(.pd702-ui-light,[data-surface=light]){color:#111827}
:where(.pd702li,.pd702-rp,.pd702-iwq) :where(.pd702-ui-light,[data-surface=light]) :where(h1,h2,h3,h4,h5,h6,p,label,strong,small,span){color:inherit}

/* v3.2.0 light/mono control contrast */
.pd702-light-surface button,.pd702-light-surface input,.pd702-light-surface select,.pd702-light-surface textarea{color:#111!important}.pd702-light-surface button{background:#fff;border-color:#aeb7bd}.pd702-light-surface input,.pd702-light-surface select,.pd702-light-surface textarea{background:#fff!important;-webkit-text-fill-color:#111!important}


/* PD702 v30.0.0 — mobile-first sales platform hardening */
*,*:before,*:after{box-sizing:border-box}
.pd702-shell,.pd-owner-command-v17,.pd702-panel,.pd-owner-panel-v17{min-width:0;max-width:100%}
.pd-owner-lead-list-v17>*,.pd-owner-call-row,.pd702-current-business-quick,.pd702-email-command,.pd702-guide-step{min-width:0}
.pd-owner-command-v17 *,.pd702-shell *{overflow-wrap:normal;word-break:normal}
.pd-owner-command-v17 p,.pd-owner-command-v17 small,.pd-owner-command-v17 span,.pd702-shell p,.pd702-shell small,.pd702-shell span{white-space:normal}
@media(max-width:767px){
 .pd-owner-hero-v17{display:block!important;padding:22px!important}
 .pd-owner-hero-v17 h2{font-size:clamp(28px,9vw,40px)!important;line-height:1.05!important}
 .pd-owner-hero-clock{display:none!important}
 .pd-owner-main-grid-v17,.pd702-v18-dashboard-grid,.pd702-call-command-deck{display:block!important}
 .pd-owner-panel-v17{width:100%!important;margin:0 0 16px!important;padding:20px!important;overflow:hidden!important}
 .pd-owner-call-row{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important}
 .pd-owner-call-row>a{grid-column:2/-1!important;width:100%!important;text-align:center!important;min-height:48px!important}
 .pd702-v18-actions{grid-template-columns:1fr!important}
 .pd702-v18-primary-action,.pd702-quick-phone,.pd702-email-send{min-height:54px!important;width:100%!important}
 .pd702-guide-order{display:grid!important;grid-template-columns:1fr 1fr!important}
 .pd702-guide-order strong,.pd702-guide-order p{grid-column:1/-1!important}
 .pd702-email-command,.pd702-current-business-quick{padding:18px!important}
 .pd702-globalbar{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 table{max-width:100%}
}
@media(max-width:430px){
 .pd702-shell{padding-left:12px!important;padding-right:12px!important}
 .pd-owner-panel-v17 header{align-items:flex-start!important;gap:8px!important}
 .pd-owner-panel-v17 header h3{font-size:24px!important;line-height:1.1!important}
 .pd702-guide-order{grid-template-columns:1fr!important}
 .pd702-guide-order>*{grid-column:1!important}
}


/* v30.7.0 — critical suite mismatch alerts are unmistakable */
body.pd702-admin-integrated .notice.pd702-suite-alert{background:#681b25!important;border:1px solid #ff6474!important;border-left:6px solid #ff6474!important;color:#fff!important;border-radius:10px!important}body.pd702-admin-integrated .notice.pd702-suite-alert :is(p,strong,b,span){color:#fff!important}body.pd702-admin-integrated .notice.pd702-suite-alert a{color:#7ff3ff!important;font-weight:900!important}
