:root{
  --pp-bg:#edf3fb;
  --pp-surface:#ffffff;
  --pp-surface-2:#f6f9ff;
  --pp-line:#d7e2f0;
  --pp-text:#14233d;
  --pp-muted:#607390;
  --pp-primary:#3f68ff;
  --pp-primary-2:#16b5dd;
  --pp-shadow:0 16px 34px rgba(18,34,64,.08);
}
body.app-body{background:var(--pp-bg)!important;color:var(--pp-text)!important}
.shell{max-width:1880px!important;width:calc(100vw - 18px)!important;gap:16px!important;padding:9px!important}
.sidebar{width:auto!important;min-width:282px!important;border-radius:28px!important}
.main-area{min-width:0!important}
.topbar-pro{min-height:92px!important;border-radius:26px!important;padding:18px 22px!important;grid-template-columns:minmax(280px,.9fr) minmax(360px,640px) auto!important}
.topbar-pro .topbar-left{min-width:0}
.topbar-pro .eyebrow{letter-spacing:.14em!important;text-transform:uppercase!important;color:#7b8cab!important}
.topbar-pro h1{font-size:clamp(1.8rem,2.6vw,2.45rem)!important;line-height:1.02!important}
.topbar-center .search-shell{min-height:56px!important;border-radius:18px!important}
.topbar-center .search-input{font-size:15px!important}
.content{padding-top:2px!important}
.page-block{gap:20px!important}
.card,.drawer-card,.drawer-section,.drawer-section-inline,.panel,.glass,.glass-soft,.table-shell,.compact-page-header{background:var(--pp-surface)!important;border:1px solid var(--pp-line)!important;box-shadow:var(--pp-shadow)!important}
.section-head h2{font-size:clamp(1.65rem,2vw,2.1rem)!important}
.section-head p,.muted{color:var(--pp-muted)!important}
.hero-kpi>div,.drawer-stat,.mini-kv,.entity-record-summary .drawer-stat{background:var(--pp-surface-2)!important;border:1px solid var(--pp-line)!important;border-radius:18px!important}
.drawer{width:min(1080px,calc(100vw - 28px))!important}
.drawer-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:18px 24px!important}
.drawer-title{font-size:1.15rem!important}
.workflow-header-strip{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:wrap!important;padding:14px 16px!important;border:1px solid var(--pp-line)!important;border-radius:20px!important;background:linear-gradient(180deg,#f9fbff,#f4f8ff)!important;box-shadow:var(--pp-shadow)!important;margin-top:14px}
.workflow-strip-nav{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.workflow-strip-note{padding:8px 12px;border-radius:999px;background:#fff;border:1px solid var(--pp-line)}
.drawer-tabs-nav{position:sticky;top:0;z-index:2;background:rgba(246,249,255,.92)!important;backdrop-filter:blur(8px);margin-bottom:14px}
.task-view-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.task-focus-strip{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)!important;align-items:stretch!important}
.task-focus-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:flex-start!important}
.task-focus-actions .primary-btn,.task-focus-actions .ghost-btn{min-height:44px!important}
.task-view-overview-grid{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)!important;gap:18px!important}
.project-overview-grid{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr)!important;gap:18px!important}
.project-health-card .list-item,.task-team-card .list-item{padding:10px 0;border-bottom:1px dashed var(--pp-line)}
.project-health-card .list-item:last-child,.task-team-card .list-item:last-child{border-bottom:0}
.member-chip-row{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.member-chip{border-radius:999px!important;padding:8px 12px!important;background:#fff!important;border:1px solid var(--pp-line)!important;font-weight:700!important;color:var(--pp-text)!important}
.member-chip img{width:22px!important;height:22px!important;border-radius:999px!important}
.entity-page-pro .section-head,.search-page-pro .section-head,.access-center-pro .section-head,.api-center-pro .section-head{align-items:flex-start!important}
.entity-page-head,.entity-page-actions{display:flex!important;gap:12px!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap!important}
.entity-page-actions .segmented-tabs{padding:6px!important;border-radius:16px!important;background:#eef4ff!important;border:1px solid var(--pp-line)!important}
.entity-page-pro .card,.search-page-pro .card,.api-center-pro .card,.access-center-pro .card{padding:18px!important}
.entity-toolbar,.analytics-toolbar,.toolbar-inline{grid-template-columns:minmax(260px,1fr) minmax(200px,.6fr) auto auto!important;gap:12px!important}
.entity-record-card__head .ghost-btn{min-height:38px!important}
.entity-record-card__grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
.entity-kanban-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:18px!important}
.entity-kanban-card{min-height:132px!important}
.search-grid{gap:18px!important}
.search-page-pro .list-item{padding:14px 16px!important;border:1px solid var(--pp-line)!important;border-radius:18px!important;background:#fff!important}
.search-page-pro .list-item:hover{border-color:#b8c9ef!important;box-shadow:0 12px 22px rgba(18,34,64,.06)!important}
.access-tabs{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.access-tabs .ghost-btn{background:#fff!important;border-color:var(--pp-line)!important}
.access-tabs .ghost-btn.active,.access-tabs .ghost-btn.is-active{background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2))!important;color:#fff!important;border-color:transparent!important}
.access-hub-grid{grid-template-columns:minmax(360px,.95fr) minmax(360px,1.05fr)!important;gap:18px!important}
.access-role-summary-row{align-items:flex-start!important}
.access-role-tags{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
.access-table-row-wide{grid-template-columns:1.4fr .8fr .8fr .9fr .9fr 1fr 1.2fr .7fr!important}
.role-matrix-shell .table-row{align-items:center!important}
.api-center-grid{grid-template-columns:minmax(360px,.85fr) minmax(360px,1fr) minmax(300px,.8fr)!important;gap:18px!important}
.api-center-pro .toolbar-card,.api-center-pro .card{border-radius:22px!important}
.api-code-block{margin:10px 0 0!important;padding:14px 16px!important;background:#0f1c35!important;color:#ecf4ff!important;border:1px solid #1d3155!important;border-radius:18px!important;overflow:auto!important;white-space:pre-wrap!important;word-break:break-word!important}
.api-center-pro code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important}
.chat-shell,.drawer-chat-layout{grid-template-columns:340px minmax(0,1fr)!important;gap:18px!important}
.chat-side,.chat-side-panel,.chat-sidebar-panel{padding:16px!important;border-radius:24px!important}
.chat-side-title{font-size:.82rem!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:#7385a4!important}
.chat-thread,.tg-thread,.chat-thread-row{padding:14px 16px!important;min-height:86px!important;border-radius:18px!important}
.chat-thread.active,.tg-thread.active,.chat-thread-row.active{border-color:#b7c9ef!important;background:linear-gradient(180deg,#fff,#f5f9ff)!important}
.tg-chat-main,.chat-main-panel{min-height:74vh!important}
.tg-chat-hero,.chat-head{padding:18px 20px!important;border-radius:22px!important}
.modern-messages,.chat-messages{padding:20px!important;min-height:460px!important;border-radius:24px!important}
.message,.tg-message,.chat-bubble{max-width:min(74%,760px)!important;padding:12px 14px!important}
.chat-compose-row{padding:14px!important;border-radius:22px!important;grid-template-columns:44px minmax(0,1fr) auto!important;align-items:end!important}
.chat-compose-input,.chat-form textarea,.chat-compose-card textarea{min-height:116px!important}
#chat-send,.chat-form .primary-btn{min-width:156px!important}
.right-rail{padding-top:2px!important}
.rail-btn{min-height:88px!important}
@media (max-width:1480px){
  .topbar-pro{grid-template-columns:1fr!important}
  .topbar-actions{justify-self:start!important}
}
@media (max-width:1180px){
  .shell{width:calc(100vw - 10px)!important;padding:5px!important}
  .topbar-pro{padding:14px 16px!important;border-radius:20px!important}
  .drawer{width:calc(100vw - 14px)!important;height:calc(100vh - 14px)!important;right:7px!important;top:7px!important}
  .workflow-header-strip,.drawer-tabs-nav,.task-view-grid,.task-focus-strip,.task-view-overview-grid,.project-overview-grid,.access-hub-grid,.api-center-grid,.entity-toolbar,.analytics-toolbar,.toolbar-inline,.chat-shell,.drawer-chat-layout{grid-template-columns:1fr!important}
  .workflow-header-strip{align-items:flex-start!important}
}
@media (max-width:900px){
  .section-head h2{font-size:1.55rem!important}
  .topbar-pro h1{font-size:1.6rem!important}
  .search-shell{width:100%!important}
  .hero-kpi{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .access-table-row-wide{grid-template-columns:1fr!important}
  .message,.tg-message,.chat-bubble{max-width:100%!important}
  .chat-compose-row{grid-template-columns:1fr!important}
  #chat-send,.chat-form .primary-btn{width:100%!important}
}
