/* ProSite Client Dashboard — styles scoped to the WooCommerce My Account area */
.pscd{--pscd-bg:#080d18;--pscd-panel:#101a2b;--pscd-panel2:#131f32;--pscd-line:#233148;--pscd-text:#f5f8ff;--pscd-muted:#91a0b7;--pscd-accent:#2787ff;color:var(--pscd-text);background:var(--pscd-bg);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;width:100%;max-width:none!important;min-height:calc(100vh - 80px);border:1px solid #1c2a3d;border-radius:14px;overflow:hidden;box-sizing:border-box}
.pscd *{box-sizing:border-box}.pscd a{text-decoration:none!important}.pscd svg{vertical-align:middle;flex:none}.pscd-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:800px}.pscd-sidebar{background:#0c1422;border-right:1px solid var(--pscd-line);padding:30px 16px;display:flex;flex-direction:column;min-width:0}.pscd-brand{display:flex;align-items:center;gap:12px;padding:0 14px 35px;color:#fff;font-size:15px;letter-spacing:.07em;line-height:1.2}.pscd-brandmark{display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#147ff5,#61b5ff);color:#fff;font-weight:900;letter-spacing:-.08em;width:40px;height:40px;border-radius:11px}.pscd-brand small{display:block;font-size:10px;letter-spacing:.25em;color:var(--pscd-muted);margin-top:5px}.pscd-side-label{color:#62758e;font-size:10px;font-weight:800;letter-spacing:.18em;padding:0 14px 13px}.pscd .woocommerce-MyAccount-navigation{float:none!important;width:100%!important;min-width:0;margin:0!important;padding:0!important;display:block!important}.pscd .woocommerce-MyAccount-navigation ul{display:flex!important;flex-direction:column!important;list-style:none!important;padding:0!important;margin:0!important;gap:4px}.pscd .woocommerce-MyAccount-navigation li{list-style:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;width:100%!important}.pscd .woocommerce-MyAccount-navigation li a{display:flex!important;align-items:center;gap:12px;padding:12px 14px!important;border-radius:9px;border:1px solid transparent!important;background:transparent!important;color:#a9b8cd!important;font-size:13px!important;font-weight:550!important;line-height:1.4!important;transition:background .2s,color .2s}.pscd .woocommerce-MyAccount-navigation li a:hover,.pscd .woocommerce-MyAccount-navigation li.is-active a{background:#162d4f!important;color:#fff!important;border-color:#254a7d!important}.pscd .woocommerce-MyAccount-navigation li.is-active a{box-shadow:inset 3px 0 var(--pscd-accent)}.pscd .woocommerce-MyAccount-navigation li a:focus-visible,.pscd a:focus-visible{outline:2px solid var(--pscd-accent)!important;outline-offset:2px}.pscd-sidebar-bottom{margin-top:auto;padding-top:35px}.pscd-help{background:linear-gradient(155deg,#152b48,#101e33);border:1px solid #274365;border-radius:12px;padding:19px;display:flex;flex-direction:column;gap:7px}.pscd-help>span{color:#62aeff}.pscd-help strong{font-size:13px}.pscd-help small{color:var(--pscd-muted);font-size:11px}.pscd-help a{color:#80beff!important;font-size:12px;font-weight:700;margin-top:6px}.pscd-help a svg{width:14px}.pscd-main{min-width:0;background:radial-gradient(ellipse 70% 20% at 75% 0%,rgba(26,79,148,.14),transparent 70%),#080d18}.pscd-topbar{min-height:79px;border-bottom:1px solid var(--pscd-line);padding:18px clamp(20px,4%,48px);display:flex;align-items:center;justify-content:space-between;gap:20px}.pscd-breadcrumb{font-size:11px;letter-spacing:.12em;color:#7f90a8;font-weight:700}.pscd-breadcrumb span{margin:0 10px;color:#3f5677}.pscd-breadcrumb strong{color:#e8effb;letter-spacing:0;font-size:12px}.pscd-user{display:flex;align-items:center;gap:12px}.pscd-user-name{color:#dbe6f6;font-size:12px;font-weight:650}.pscd-avatar{width:36px!important;height:36px!important;border-radius:50%!important;border:2px solid #2b4b73}.pscd-content{padding:clamp(20px,3.5vw,46px);min-width:0}.pscd .woocommerce-MyAccount-content{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-width:0!important;color:#dbe5f2}.pscd-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px}.pscd-eyebrow{font-size:10px;color:#6daeff;letter-spacing:.17em;font-weight:800}.pscd-dot{display:inline-block;width:7px;height:7px;background:#36d5a3;border-radius:50%;margin-right:7px;box-shadow:0 0 0 4px rgba(54,213,163,.1)}.pscd h1,.pscd h2,.pscd h3{color:#f8fbff!important;text-transform:none!important;letter-spacing:-.035em!important}.pscd-welcome h1{font-size:clamp(28px,3vw,39px)!important;line-height:1.16!important;margin:13px 0 12px!important;font-weight:780!important}.pscd-welcome p{color:var(--pscd-muted);margin:0!important;font-size:13px}.pscd-welcome-action{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap;color:var(--pscd-muted);font-size:12px}.pscd-welcome-action strong{font-size:17px;color:#fff;margin-top:5px}.pscd-welcome-action strong span{color:#e6b769}.pscd-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 40px}.pscd-stat{background:linear-gradient(155deg,#142238,#101b2d);border:1px solid #293b54;border-radius:13px;padding:22px 23px;min-width:0}.pscd-stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#9caec4;font-size:12px;font-weight:600}.pscd-stat-symbol{display:flex;align-items:center;justify-content:center;color:#75b8ff;background:#1a3658;border-radius:9px;width:31px;height:31px;font-size:17px}.pscd-stat>strong{display:block;color:#fff;font-size:clamp(23px,2.4vw,31px);letter-spacing:-.05em;margin:13px 0 3px;white-space:normal;overflow-wrap:anywhere}.pscd-stat>strong .woocommerce-Price-amount{color:#fff!important}.pscd-stat>small{font-size:11px;color:#72869e}.pscd-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:19px}.pscd-section-head h2{font-size:22px!important;line-height:1.3!important;margin:7px 0 0!important;font-weight:750!important}.pscd-section-sub{font-size:12px;color:#72869e}.pscd-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.pscd-quick{position:relative;min-height:161px;display:flex;flex-direction:column;align-items:flex-start;background:#111b2b;border:1px solid #24354c;border-radius:12px;padding:21px!important;color:#f5f8ff!important;transition:transform .2s,border-color .2s,background .2s}.pscd-quick:hover{transform:translateY(-2px);background:#17263b;border-color:#3b76b7;color:#fff!important}.pscd-quick-icon{display:flex;align-items:center;justify-content:center;width:39px;height:39px;background:#18375a;border-radius:10px;color:#73b5ff;margin-bottom:18px}.pscd-quick>strong{font-size:13px;font-weight:700;margin-bottom:4px}.pscd-quick>small{color:#8296ae;font-size:11px;line-height:1.5;padding-right:14px}.pscd-quick-arrow{position:absolute;right:18px;top:22px;color:#60758d}.pscd-quick-arrow svg{width:16px}.pscd-recent-head{margin-top:39px}.pscd-viewall{color:#8dc5ff!important;font-size:12px;font-weight:700}.pscd-viewall svg{width:16px}.pscd-orders-panel{border:1px solid #24354c;border-radius:12px;background:#111b2b;overflow:hidden}.pscd-table-scroll{overflow-x:auto}.pscd-order-table{border-collapse:collapse!important;width:100%!important;margin:0!important;background:transparent!important;color:#dce7f7!important}.pscd-order-table th{font-size:10px;letter-spacing:.1em;color:#8194ad!important;text-transform:uppercase;text-align:left;padding:17px 20px!important;background:#142238!important;border:0!important}.pscd-order-table td{padding:17px 20px!important;font-size:12px;color:#dce7f7!important;border-top:1px solid #25334a!important;background:transparent!important}.pscd-order-table td a{color:#85beff!important}.pscd-status{display:inline-block;padding:5px 9px;border-radius:6px;color:#9de2c7;background:#193a35;font-size:11px}.pscd-empty{text-align:center;padding:44px 18px}.pscd-empty-icon{display:inline-flex;width:55px;height:55px;border-radius:14px;background:#1b3453;align-items:center;justify-content:center;color:#80bfff;margin-bottom:14px}.pscd-empty strong{display:block;color:#f7fbff;font-size:15px}.pscd-empty p{color:#8da0b8;margin:7px 0 13px!important;font-size:12px}.pscd-empty a{color:#89c4ff!important;font-weight:700;font-size:12px}.pscd-empty a svg{width:15px}
/* WooCommerce endpoint forms and tables remain WooCommerce-controlled */
.pscd .woocommerce-MyAccount-content>p{color:#b6c5d9}.pscd .woocommerce-MyAccount-content a{color:#8fc3ff}.pscd .woocommerce-MyAccount-content form input:not([type=checkbox]):not([type=radio]),.pscd .woocommerce-MyAccount-content form select,.pscd .woocommerce-MyAccount-content form textarea{background:#142239!important;color:#f5f8ff!important;border:1px solid #314563!important;border-radius:8px!important;padding:12px!important;max-width:100%}.pscd .woocommerce-MyAccount-content form label{color:#dbe5f4!important}.pscd .woocommerce-MyAccount-content .button,.pscd .woocommerce-MyAccount-content button.button{background:var(--pscd-accent)!important;color:white!important;border:0!important;border-radius:8px!important;padding:12px 17px!important}.pscd .woocommerce-MyAccount-content .woocommerce-orders-table,.pscd .woocommerce-MyAccount-content .woocommerce-table{background:#121e30;color:#e6eef9;border:1px solid #2c3d56;border-radius:10px;overflow:hidden}.pscd .woocommerce-MyAccount-content .woocommerce-orders-table th,.pscd .woocommerce-MyAccount-content .woocommerce-orders-table td,.pscd .woocommerce-MyAccount-content .woocommerce-table th,.pscd .woocommerce-MyAccount-content .woocommerce-table td{color:#e6eef9;border-color:#2c3d56;padding:14px}.pscd .woocommerce-Addresses .woocommerce-Address{background:#111d2f;border:1px solid #2a3a51;border-radius:12px;padding:20px}.pscd .woocommerce-Addresses address{color:#b8c8db}.pscd .woocommerce-message,.pscd .woocommerce-info,.pscd .woocommerce-error{border-radius:8px;background:#15273d;color:#e9f2ff;border-top-color:var(--pscd-accent)}
@media(max-width:1100px){.pscd-shell{grid-template-columns:220px minmax(0,1fr)}.pscd-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pscd-stat{padding:18px}.pscd-sidebar{padding:23px 11px}}
@media(max-width:760px){.pscd{border-radius:9px}.pscd-shell{display:block;min-height:0}.pscd-sidebar{border-right:0;border-bottom:1px solid var(--pscd-line);padding:18px}.pscd-brand{padding:0 5px 15px}.pscd-side-label,.pscd-sidebar-bottom{display:none}.pscd .woocommerce-MyAccount-navigation ul{flex-direction:row!important;overflow-x:auto;scrollbar-width:thin;gap:6px;padding-bottom:5px!important}.pscd .woocommerce-MyAccount-navigation li{width:auto!important;flex:none!important}.pscd .woocommerce-MyAccount-navigation li a{white-space:nowrap;padding:10px 12px!important;font-size:12px!important}.pscd-topbar{min-height:62px;padding:12px 19px}.pscd-content{padding:24px 18px}.pscd-welcome{align-items:flex-start;flex-direction:column;gap:12px}.pscd-welcome-action{align-items:flex-start}.pscd-stats{gap:10px;margin-bottom:30px}.pscd-stat{padding:15px}.pscd-stat>strong{font-size:20px}.pscd-section-sub{display:none}}
@media(max-width:520px){.pscd-stats{grid-template-columns:1fr}.pscd-stat{padding:16px}.pscd-stat>strong{font-size:27px}.pscd-quick-grid{grid-template-columns:1fr}.pscd-quick{min-height:120px;padding:17px!important}.pscd-quick-icon{margin-bottom:10px}.pscd-user-name{display:none}.pscd-section-head h2{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){.pscd *{transition:none!important;scroll-behavior:auto!important}}

/* v1.2: Escape narrow WordPress block/theme columns and prevent clipping. */
body .pscd{position:relative!important;width:100vw!important;max-width:100vw!important;min-width:0!important;margin-left:calc(50% - 50vw)!important;margin-right:0!important;left:auto!important;overflow:visible!important;isolation:isolate;}
body .pscd-shell{width:100%!important;max-width:100%!important;grid-template-columns:clamp(190px,19vw,270px) minmax(0,1fr)!important;}
body .pscd-main,body .pscd-content{min-width:0!important;width:auto!important;max-width:none!important;}
body .pscd .woocommerce-MyAccount-content{float:none!important;display:block!important;width:100%!important;max-width:none!important;}
body .pscd .woocommerce-MyAccount-navigation{float:none!important;}
body .pscd .pscd-stat,body .pscd .pscd-quick{min-width:0!important;}
@media(max-width:760px){body .pscd-shell{display:block!important;}body .pscd{margin-left:calc(50% - 50vw)!important;}body .pscd-stats{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:520px){body .pscd-stats{grid-template-columns:1fr;}body .pscd-quick-grid{grid-template-columns:1fr;}}

/* v1.3: Customer identity and profile photo editor */
.pscd .pscd-client-brand{display:flex;align-items:center;gap:12px;text-decoration:none!important;letter-spacing:0;min-width:0}
.pscd .pscd-client-brand strong{display:block;font-size:14px;letter-spacing:0;max-width:165px;overflow-wrap:anywhere}
.pscd .pscd-client-brand small{font-size:10px;letter-spacing:.14em}
.pscd .pscd-client-avatar{height:52px!important;width:52px!important;object-fit:cover;border-radius:50%!important;border:2px solid #2c6fc5;flex:none}
.pscd .pscd-profile-field{margin:24px 0;padding:20px;border:1px solid #314563;border-radius:12px;min-width:0}
.pscd .pscd-profile-field legend{font-size:16px;font-weight:700;color:#fff;padding:0 9px}
.pscd .pscd-profile-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.pscd .pscd-profile-preview{width:84px!important;height:84px!important;object-fit:cover;border-radius:50%!important;border:3px solid #2787ff}
.pscd .pscd-profile-row p{color:#a9bad1;margin:0 0 12px}
.pscd .pscd-avatar-trigger{margin:3px 7px 3px 0!important;cursor:pointer}
.pscd .pscd-avatar-message{padding:12px;background:#183b34;color:#bbffe0;border-radius:8px}

/* v1.4: portal is positioned relative to the viewport, not constrained by theme columns. */
html body .pscd{width:100vw!important;max-width:100vw!important;min-width:0!important;margin-left:0!important;transform:translateX(var(--pscd-breakout,0px));overflow:hidden!important;box-sizing:border-box!important}
html body .pscd-shell{display:grid!important;grid-template-columns:var(--pscd-sidebar-width,250px) minmax(0,1fr)!important;max-width:none!important}
html body .pscd-main{width:100%!important;min-width:0!important}
html body .pscd-content{width:100%!important;max-width:var(--pscd-desktop-width,1320px)!important;margin:0 auto!important;min-width:0!important}
.pscd-agency-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.pscd-agency-welcome h1{font-size:clamp(26px,3vw,38px)!important;margin:7px 0!important}.pscd-agency-welcome p{color:#a9bad2;margin:0}.pscd-agency-welcome img{border-radius:50%}.pscd-agency-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.pscd-agency-card{display:flex;flex-direction:column;gap:5px;background:#182944;border:1px solid #2b3e5d;border-radius:11px;padding:22px;min-width:0}.pscd-agency-card strong{font-size:22px;color:#fff;overflow-wrap:anywhere}.pscd-agency-card span{font-size:12px;color:#c5d5e9}.pscd-agency-card small{font-size:11px;color:#8ca3c2}.pscd-agency-heading{font-size:21px!important;margin:25px 0 16px!important}.pscd-agency-links{display:grid;gap:10px}.pscd-agency-link{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#192b48;color:#fff!important;padding:17px!important;border-radius:9px;border:1px solid #273d5e;min-width:0}.pscd-agency-link span{display:flex;gap:12px;align-items:center}.pscd-agency-link svg{color:#4db6ff}.pscd-agency-link small{color:#9db0cb}.pscd-agency-link:hover{background:#243d62}.pscd-agency-site{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#101f36;border:1px solid #29466b;border-radius:12px;padding:20px}.pscd-agency-site h2{font-size:21px!important;margin:6px 0!important}.pscd-agency-site p{color:#9db0cb;margin:0}.pscd-agency-site a{color:#79c2ff!important}
@media(max-width:760px){html body .pscd{transform:translateX(var(--pscd-breakout,0px))!important}html body .pscd-shell{display:block!important}.pscd-agency-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pscd-agency-card{padding:14px}.pscd-agency-card strong{font-size:18px}.pscd-agency-site{flex-wrap:wrap}}
@media(max-width:420px){.pscd-agency-stats{grid-template-columns:1fr}}

/* v1.5 desktop theme-container escape: standalone account layout. */
@media (min-width:761px) {
  html body .pscd.pscd-detached {
    display:block!important;
    position:relative!important;
    transform:none!important;
    margin:0!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    clear:both!important;
    overflow:hidden!important;
  }
  html body .pscd.pscd-detached .pscd-shell {
    display:grid!important;
    grid-template-columns:minmax(200px,var(--pscd-sidebar-width,250px)) minmax(0,1fr)!important;
    width:100%!important;
    max-width:none!important;
  }
  html body .pscd.pscd-detached .pscd-content {
    width:100%!important;
    max-width:var(--pscd-desktop-width,1320px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* v1.6: Keep the sidebar and the account panel on the SAME ROW on desktop.
   A flex layout is more resilient than the previous grid when block themes
   assign grid placement to nested <main> elements. */
@media (min-width:761px) {
  html body .pscd .pscd-shell,
  html body .pscd.pscd-detached .pscd-shell {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  html body .pscd .pscd-shell > .pscd-sidebar {
    display:flex!important;
    flex:0 0 var(--pscd-sidebar-width,250px)!important;
    width:var(--pscd-sidebar-width,250px)!important;
    max-width:30vw!important;
    min-width:190px!important;
    align-self:stretch!important;
    grid-column:auto!important;
    grid-row:auto!important;
    margin:0!important;
  }
  html body .pscd .pscd-shell > .pscd-main {
    display:block!important;
    flex:1 1 0%!important;
    width:0!important;
    max-width:none!important;
    min-width:0!important;
    grid-column:auto!important;
    grid-row:auto!important;
    margin:0!important;
    float:none!important;
    clear:none!important;
  }
  html body .pscd .pscd-main > .pscd-content {
    width:100%!important;
    max-width:var(--pscd-desktop-width,1320px)!important;
    min-width:0!important;
    margin:0 auto!important;
  }
  html body .pscd .pscd-agency-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* v2.7: Keep Log out last in the navigation, directly after Subscription. */
@media (min-width:761px){
 .pscd .pscd-sidebar > .woocommerce-MyAccount-navigation{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;}
 .pscd .pscd-sidebar > .woocommerce-MyAccount-navigation > ul{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;}
 .pscd .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:0!important;padding-top:0!important;order:9999!important;}
}

/* Also enforce last-position on mobile and with theme navigation overrides. */
.pscd .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{order:9999!important;margin-top:0!important;}

.pscd-subscription-panel{max-width:800px}.pscd-subscription-panel p{margin:14px 0}.pscd-cancel-subscription{background:#203752!important;color:#fff!important;border:1px solid #e17d7d!important;border-radius:9px!important;padding:10px 18px!important;cursor:pointer!important}.pscd-cancel-subscription:hover{background:#553044!important}
