/* PD-V43.0-UNIFIED-EXPERIENCE-OS
   One brand, one rail, one command surface, one active calendar view.
*/
:root{
  --pd43-navy:#071426;
  --pd43-navy-2:#0B2342;
  --pd43-blue:#2F72EA;
  --pd43-sky:#179CE5;
  --pd43-cyan:#56D8FF;
  --pd43-ink:#0D2239;
  --pd43-muted:#647C94;
  --pd43-line:#D6E5F1;
  --pd43-canvas:#F5FAFE;
  --pd43-card:#FFFFFF;
  --pd43-wide-rail:236px;
  --pd43-compact-rail:72px;
  --pd43-phone-rail:64px;
  --pd43-gutter:clamp(12px,1vw,20px);
  --pd43-radius:18px;
}

/* ============================================================
   BRAND / HEADER — same pd-mark asset everywhere; presentation
   may change only for contrast.
   ============================================================ */
:where(.site-header,.pd-system-header,.pd-sync-header) :where(.brand,.brand-mark-img),
:where(.client-appbar) .client-appbrand,
:where(.v362-head,.v362-brand,.pd353-brand-mark,.ds-brand){
  align-items:center!important;
}
:where(.site-header,.pd-system-header,.pd-sync-header) .brand-mark-img{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  flex:0 0 44px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
:where(.site-header,.pd-system-header,.pd-sync-header) .brand-mark-img img,
:where(.v362-brand,.pd353-brand-mark,.ds-brand) img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  opacity:1!important;
  animation:none!important;
  transition:none!important;
}

/* Client app header is dark in the authenticated workspace. */
.client-appbar .client-appbrand>span{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  flex:0 0 42px!important;
  display:grid!important;
  place-items:center!important;
  padding:6px!important;
  border-radius:13px!important;
  border:1px solid rgba(86,216,255,.28)!important;
  background:linear-gradient(145deg,#0B2342,#071426)!important;
  box-shadow:0 8px 22px rgba(2,17,31,.18)!important;
  overflow:hidden!important;
}
.client-appbar .client-appbrand img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  filter:brightness(0) invert(1)!important;
  background:transparent!important;
  box-shadow:none!important;
  animation:none!important;
  transition:none!important;
}

/* Admin/Staff internal mark — no white square tile. */
body.pd43-unified.pd365-internal .sidebar :where(.brandmark,.brand-logo){
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  display:grid!important;
  place-items:center!important;
  padding:6px!important;
  border-radius:15px!important;
  border:1px solid rgba(86,216,255,.30)!important;
  background:
    radial-gradient(circle at 28% 20%,rgba(86,216,255,.18),transparent 44%),
    linear-gradient(145deg,#0B2342,#071426)!important;
  box-shadow:0 9px 26px rgba(2,17,31,.20)!important;
  overflow:hidden!important;
}
body.pd43-unified.pd365-internal .sidebar :where(.brandmark,.brand-logo) img,
body.pd43-unified.pd365-internal .sidebar .brand>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  opacity:1!important;
  filter:brightness(0) invert(1)!important;
  animation:none!important;
  transition:none!important;
}

/* ============================================================
   STATIC SHELL / REFLOW — never squeeze text inside a tiny rail.
   ============================================================ */
html,body.pd43-unified{
  width:100%!important;
  max-width:100%!important;
  min-height:100dvh!important;
  margin:0!important;
  overflow-x:hidden!important;
}
body.pd43-unified .app{
  width:100%!important;
  max-width:none!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  grid-template-columns:none!important;
}
body.pd43-unified.pd365-internal .sidebar{
  box-sizing:border-box!important;
  position:fixed!important;
  inset:0 auto 0 0!important;
  height:100dvh!important;
  transform:none!important;
  overflow-x:hidden!important;
  z-index:90!important;
}
body.pd43-unified.pd365-internal .main{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:none!important;
  min-height:100dvh!important;
  margin-top:0!important;
  margin-right:0!important;
  margin-bottom:0!important;
  padding:0!important;
  overflow-x:clip!important;
}
@media(min-width:1281px){
  body.pd43-unified.pd365-internal .sidebar{
    width:var(--pd43-wide-rail)!important;
    min-width:var(--pd43-wide-rail)!important;
    max-width:var(--pd43-wide-rail)!important;
  }
  body.pd43-unified.pd365-internal .main{
    width:calc(100dvw - var(--pd43-wide-rail))!important;
    margin-left:var(--pd43-wide-rail)!important;
  }
}
@media(min-width:761px) and (max-width:1280px){
  body.pd43-unified.pd365-internal .sidebar{
    width:var(--pd43-compact-rail)!important;
    min-width:var(--pd43-compact-rail)!important;
    max-width:var(--pd43-compact-rail)!important;
  }
  body.pd43-unified.pd365-internal .main{
    width:calc(100dvw - var(--pd43-compact-rail))!important;
    margin-left:var(--pd43-compact-rail)!important;
  }
}
@media(max-width:760px){
  body.pd43-unified.pd365-internal .sidebar{
    width:var(--pd43-phone-rail)!important;
    min-width:var(--pd43-phone-rail)!important;
    max-width:var(--pd43-phone-rail)!important;
  }
  body.pd43-unified.pd365-internal .main{
    width:calc(100dvw - var(--pd43-phone-rail))!important;
    margin-left:var(--pd43-phone-rail)!important;
  }
}

/* Generated semantic SVG icon remains visible at all sizes. */
body.pd43-unified .pd43-rail-icon{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  display:grid!important;
  place-items:center!important;
  color:currentColor!important;
  font-size:16px!important;
  line-height:1!important;
  flex:0 0 22px!important;
}
body.pd43-unified .pd43-rail-icon svg{
  width:21px!important;
  height:21px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

@media(max-width:1280px){
  body.pd43-unified.pd365-internal .sidebar .brand{
    min-height:78px!important;
    height:78px!important;
    padding:10px 6px!important;
    display:grid!important;
    place-items:center!important;
    gap:0!important;
    overflow:hidden!important;
  }
  body.pd43-unified.pd365-internal .sidebar .brand>:not(:first-child):not(.brandmark):not(.brand-logo):not(img),
  body.pd43-unified.pd365-internal .sidebar .brand-copy,
  body.pd43-unified.pd365-internal .sidebar .navlabel,
  body.pd43-unified.pd365-internal .sidebar .navgroup-label,
  body.pd43-unified.pd365-internal .sidebar .count,
  body.pd43-unified.pd365-internal .sidebar .navcount,
  body.pd43-unified.pd365-internal .sidebar .badge{
    display:none!important;
  }
  body.pd43-unified.pd365-internal .sidebar .navscroll{
    height:calc(100dvh - 78px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:5px 6px 14px!important;
    scrollbar-width:none!important;
  }
  body.pd43-unified.pd365-internal .sidebar .navscroll::-webkit-scrollbar{display:none!important}
  body.pd43-unified.pd365-internal .sidebar .navgroup{
    margin:0!important;
    padding:0!important;
  }
  body.pd43-unified.pd365-internal .sidebar :where(.navbtn,.manage-link){
    box-sizing:border-box!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:48px!important;
    min-height:48px!important;
    margin:4px auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-indent:0!important;
    font-size:0!important; /* hides raw text nodes — no clipped half words */
    line-height:0!important;
    border-radius:14px!important;
  }
  body.pd43-unified.pd365-internal .sidebar :where(.navbtn,.manage-link)>*:not(.pd43-rail-icon):not(svg){
    font-size:0!important;
    line-height:0!important;
  }
  body.pd43-unified.pd365-internal .sidebar :where(.navbtn,.manage-link) :where(.navicon,.icon)>svg{
    width:20px!important;
    height:20px!important;
  }
  body.pd43-unified.pd365-internal .sidebar :where(.navbtn,.manage-link) :where(.navicon,.icon):not(:has(svg)){
    display:none!important;
  }
  body.pd43-unified.pd365-internal .sidebar .account{
    padding:6px!important;
  }
  body.pd43-unified.pd365-internal .sidebar .account :where(strong,small,p,span:not(.pd43-rail-icon)){
    display:none!important;
  }
  body.pd43-unified.pd365-internal .sidebar .account :where(button,a){
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:44px!important;
    margin:4px auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    font-size:0!important;
  }
}
@media(max-width:760px){
  body.pd43-unified.pd365-internal .sidebar .brand{
    height:70px!important;
    min-height:70px!important;
  }
  body.pd43-unified.pd365-internal .sidebar .navscroll{
    height:calc(100dvh - 70px)!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
  body.pd43-unified.pd365-internal .sidebar :where(.navbtn,.manage-link){
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
  }
}

/* Do not let stale proxy rails regain authority. */
body.pd43-unified .pd3691-rail{display:none!important}

/* ============================================================
   CONTENT / READABILITY / BASIC LAYOUT RULES
   ============================================================ */
body.pd43-unified{
  font-size:15px!important;
  line-height:1.5!important;
  color:var(--pd43-ink)!important;
}
body.pd43-unified .main>.topbar,
body.pd43-unified .main>.tab{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:var(--pd43-gutter)!important;
  padding-right:var(--pd43-gutter)!important;
  overflow-x:clip!important;
}
body.pd43-unified :where(h1,h2,h3,h4,p,span,strong,a,button,input,select,textarea){
  text-rendering:optimizeLegibility;
}
body.pd43-unified .topbar h1{
  font-size:clamp(30px,3vw,48px)!important;
  line-height:1.04!important;
  letter-spacing:-.035em!important;
}
body.pd43-unified .topbar p{
  font-size:clamp(15px,1.1vw,18px)!important;
  line-height:1.5!important;
}
body.pd43-unified :where(.sectionhead h2,.section-head h2,.panel h2,.card h2){
  line-height:1.15!important;
  letter-spacing:-.025em!important;
}

/* One primary command/search row. */
body.pd43-unified .pd365-workbar{
  box-sizing:border-box!important;
  width:calc(100% - (2 * var(--pd43-gutter)))!important;
  max-width:none!important;
  min-width:0!important;
  margin:14px var(--pd43-gutter)!important;
  padding:10px!important;
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  border-radius:20px!important;
  overflow:visible!important;
}
body.pd43-unified .pd365-workbar-search{
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
}
body.pd43-unified .pd365-workbar-search input{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  box-sizing:border-box!important;
  font-size:16px!important;
  line-height:1.35!important;
}
body.pd43-unified .pd365-workbar :where(button,a){
  min-height:44px!important;
  white-space:nowrap!important;
}
body.pd43-unified .pd43-redundant-control{
  display:none!important;
}
@media(max-width:900px){
  body.pd43-unified .pd365-workbar{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.pd43-unified .pd365-workbar>*:not(.pd365-workbar-search){
    justify-self:start!important;
  }
}

/* Tabs and small toolbars scroll locally, never push the page. */
body.pd43-unified :where(.tabs,.tabbar,.subtabs,[role="tablist"],.pd366-sectionbar,.pd365-sectionbar){
  min-width:0!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
}
body.pd43-unified :where(.tabs,.tabbar,.subtabs,[role="tablist"],.pd366-sectionbar,.pd365-sectionbar)::-webkit-scrollbar{
  display:none!important;
}
body.pd43-unified :where(
  .page-shell,.page-wrap,.workspace-shell,.workspace,.content,.section,
  .dashboard-grid,.people-grid,.people-layout,.cards,.card-grid,.statrow,
  .metrics,.split,.masterdetail,.master-detail,.cp-grid,.client-layout
){
  min-width:0!important;
  max-width:100%!important;
}
body.pd43-unified :where(
  .tablewrap,.board-scroll,.work-board-wrap,.candidate-board-wrap,
  .cp-table-wrap,.data-table-wrap
){
  min-width:0!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overscroll-behavior-inline:contain!important;
}

/* ============================================================
   SINGLE COMMAND AUTHORITY
   ============================================================ */
body.pd43-unified :where(.pd362-command,.pd400-command-popover){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.pd43-command{
  width:min(900px,calc(100dvw - 32px));
  max-width:900px;
  max-height:min(760px,calc(100dvh - 32px));
  margin:auto;
  padding:0;
  border:1px solid rgba(113,161,202,.35);
  border-radius:24px;
  background:#fff;
  color:var(--pd43-ink);
  box-shadow:0 38px 100px rgba(4,23,42,.28);
  overflow:hidden;
}
.pd43-command::backdrop{
  background:rgba(7,20,38,.50);
  backdrop-filter:blur(10px);
}
.pd43-command-shell{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  min-height:min(620px,calc(100dvh - 48px));
  max-height:min(760px,calc(100dvh - 32px));
}
.pd43-command-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 18px 12px;
  border-bottom:1px solid #e0ebf4;
}
.pd43-command-head>div{min-width:0;flex:1}
.pd43-command-head strong{
  display:block;
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.pd43-command-head span{
  display:block;
  margin-top:3px;
  color:#71879b;
  font-size:12px;
  font-weight:650;
}
.pd43-command-close{
  width:40px;
  height:40px;
  border:1px solid #d4e2ee;
  border-radius:12px;
  background:#f9fcff;
  color:#2d4a65;
  font-size:21px;
  cursor:pointer;
}
.pd43-command-search{
  padding:12px 18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  border-bottom:1px solid #e3edf5;
}
.pd43-command-search input{
  min-width:0;
  width:100%;
  min-height:50px;
  box-sizing:border-box;
  border:1px solid #bfd8ee;
  border-radius:14px;
  padding:0 16px;
  outline:none;
  background:#fff;
  color:#102c48;
  font:650 16px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 0 0 3px rgba(47,114,234,.04);
}
.pd43-command-search input:focus{
  border-color:#7bb6ea;
  box-shadow:0 0 0 4px rgba(23,156,229,.10);
}
.pd43-command-status{
  min-width:150px;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
  border:1px solid #d7e5f0;
  border-radius:14px;
  background:#f7fbff;
  color:#496982;
  font-size:12px;
  font-weight:750;
  white-space:nowrap;
}
.pd43-command-status i{
  width:8px;height:8px;border-radius:50%;background:#2daf85;box-shadow:0 0 0 5px rgba(45,175,133,.10)
}
.pd43-command-results{
  min-height:0;
  overflow:auto;
  padding:10px 12px 18px;
}
.pd43-command-group{
  padding:12px 8px 7px;
  color:#6c8499;
  font-size:10px;
  font-weight:850;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.pd43-command-item{
  width:100%;
  min-height:60px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:9px 10px;
  text-align:left;
  color:#173651;
  cursor:pointer;
}
.pd43-command-item:hover,
.pd43-command-item.active{
  border-color:#c8deef;
  background:#f2f9ff;
}
.pd43-command-item-icon{
  width:38px;height:38px;border-radius:11px;
  display:grid;place-items:center;
  background:#eaf5fd;color:#176ca8;
  font-size:12px;font-weight:900;
}
.pd43-command-item-copy{min-width:0}
.pd43-command-item-copy b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  line-height:1.25;
}
.pd43-command-item-copy span{
  display:block;
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#71889b;
  font-size:11.5px;
  line-height:1.3;
}
.pd43-command-kind{
  color:#6d879e;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
}
.pd43-command-empty{
  margin:20px 6px;
  padding:28px;
  border:1px dashed #cfdeea;
  border-radius:16px;
  text-align:center;
  color:#6e8498;
  font-size:13px;
}
.pd43-command-foot{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:11px 18px;
  border-top:1px solid #e2edf5;
  background:#fbfdff;
  color:#6f8498;
  font-size:10.5px;
  font-weight:700;
}
.pd43-command-foot kbd{
  border:1px solid #d3e1ec;
  border-bottom-width:2px;
  border-radius:6px;
  background:#fff;
  padding:2px 6px;
  color:#4d6a83;
}
@media(max-width:640px){
  .pd43-command{width:calc(100dvw - 14px);max-height:calc(100dvh - 14px);border-radius:18px}
  .pd43-command-shell{min-height:calc(100dvh - 14px);max-height:calc(100dvh - 14px)}
  .pd43-command-search{grid-template-columns:minmax(0,1fr)}
  .pd43-command-status{min-width:0;justify-content:flex-start;min-height:36px}
  .pd43-command-item{grid-template-columns:36px minmax(0,1fr)}
  .pd43-command-kind{display:none}
}

/* ============================================================
   MEETING COORDINATION — active work is clean; history is opt-in.
   Data is preserved; this is presentation separation only.
   ============================================================ */
.pd43-meeting-viewbar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin:8px 0 12px!important;
}
.pd43-meeting-viewbar button{
  min-height:36px!important;
  padding:0 12px!important;
  border:1px solid #cfe0ec!important;
  border-radius:999px!important;
  background:#f8fcff!important;
  color:#385b78!important;
  font:750 11.5px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  cursor:pointer!important;
}
.pd43-meeting-viewbar button.active{
  border-color:#9fc9ea!important;
  background:#eaf6ff!important;
  color:#155d92!important;
}
.pd43-meeting-history-hidden{
  display:none!important;
}

/* ============================================================
   STUDIO LAUNCHPAD — no text/footer collision.
   ============================================================ */
.v362-shell{
  width:100%!important;
  max-width:none!important;
}
.v362-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
.v362-card{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:230px!important;
  height:auto!important;
  padding:20px!important;
  overflow:hidden!important;
}
.v362-card p{
  flex:1 1 auto!important;
  min-height:0!important;
  margin-bottom:0!important;
  overflow-wrap:anywhere!important;
}
.v362-card>b,
.v362-card>.v362-card-action{
  position:static!important;
  inset:auto!important;
  display:block!important;
  margin-top:auto!important;
  padding-top:18px!important;
  line-height:1.3!important;
}

/* Smooth but bounded interaction only. */
@media(prefers-reduced-motion:no-preference){
  body.pd43-unified :where(.navbtn,.manage-link,.pd43-command-item,.v362-card){
    transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease!important;
  }
  body.pd43-unified :where(.navbtn,.manage-link,.v362-card):hover{
    transform:translateY(-1px);
  }
}
@media(prefers-reduced-motion:reduce){
  body.pd43-unified *,
  body.pd43-unified *::before,
  body.pd43-unified *::after,
  .pd43-command *,
  .pd43-command *::before,
  .pd43-command *::after{
    animation-duration:.001ms!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important;
  }
}
/* /PD-V43.0-UNIFIED-EXPERIENCE-OS */
