
  /* HDEC SaaS Blue: one cached, CSS-only visual layer. */
  html[data-theme=ocean]{
    color-scheme:light;
    --hdec-primary:#1265e8;--hdec-light-blue:#4da3ff;--hdec-navy:#102a43;
    --hdec-pale-blue:#eaf4ff;--hdec-page:#f7fafc;--hdec-card:#fff;
    --hdec-secondary:#64748b;--hdec-border:#dce7f3;--hdec-success:#22c55e;
    --hdec-pending:#f5a623;--hdec-activity:#8b5cf6;
    --bg:#f7fafc;--bg2:#eaf4ff;--bg-2:#eaf4ff;--body:#f7fafc;
    --surface:#fff;--surface2:#fff;--surface-2:#fff;--surface-hover:#eaf4ff;
    --sf:#fff;--sf2:#fff;--s:#fff;--s2:#fff;--surf:#fff;--surf2:#fff;
    --panel:#fff;--panel2:#fff;--panel-2:#fff;--paper:#fff;
    --text:#102a43;--tx:#102a43;--ink:#102a43;--heading:#102a43;
    --text-muted:#64748b;--muted:#64748b;--tm:#64748b;--text2:#64748b;
    --text-dim:#94a3b8;--dim:#94a3b8;--td:#94a3b8;--text3:#94a3b8;
    --border:#dce7f3;--bd:#dce7f3;--line:#dce7f3;--border2:#cbdbea;
    --accent:#1265e8;--acc:#1265e8;--a1:#1265e8;--blue:#1265e8;
    --accent2:#4da3ff;--accent-2:#4da3ff;--a2:#4da3ff;--blue2:#4da3ff;
    --a3:#8b5cf6;--accent3:#8b5cf6;--purple:#8b5cf6;
    --green:#22c55e;--success:#22c55e;--ok:#22c55e;--done:#22c55e;
    --amber:#f5a623;--warn:#f5a623;--ao:#f5a623;
    --radius:14px;--radius-sm:12px;--r:14px;--rs:12px;
    --shadow:0 4px 18px rgba(8,36,81,.065);--hdec-one-header-h:66px!important;
    --hdec-sidebar-width:240px!important;
    --font-body:Inter,Arial,sans-serif;--fb:Inter,Arial,sans-serif;
    --font-display:Inter,Arial,sans-serif;--fd:Inter,Arial,sans-serif;
  }
  html[data-theme=ocean] body{
    background:#f7fafc!important;color:#102a43!important;
    font-family:Inter,Arial,sans-serif!important;font-size:15px;font-weight:400;
    line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  }
  html[data-theme=ocean] body :where(button,input,select,textarea){font-family:Inter,Arial,sans-serif}
  html[data-theme=ocean] body :where(p,li,dd,td,.body-text,.description,.sub,.subtitle){font-weight:400!important}
  html[data-theme=ocean] body :where(h1,h2,h3,h4,h5,h6,.topbar-title,.tb-title,.page-title){
    font-family:Inter,Arial,sans-serif!important;color:#102a43;font-weight:700!important;letter-spacing:-.025em;
  }
  html[data-theme=ocean] body :where(.page-title,.hero-title,.welcome h1,.proj-hero h1){font-size:clamp(30px,2.4vw,34px)!important;line-height:1.18!important}
  html[data-theme=ocean] body :where(.section-title,.section-head h2,.ops-dashboard-head h2){font-size:clamp(22px,1.8vw,24px)!important;line-height:1.25!important}
  html[data-theme=ocean] body :where(.meta,.metadata,small,.muted,.subtle){font-size:13px;color:#64748b}

  /* Shared compact header: preserves vertical workspace without costly blur. */
  html[data-theme=ocean] body:has(.hdec-global-header){padding-top:var(--hdec-one-header-h)!important}
  html[data-theme=ocean] body .hdec-global-header{
    top:6px!important;left:8px!important;right:8px!important;height:54px!important;padding:6px 16px!important;gap:12px!important;
    border-bottom:1px solid #dce7f3!important;background:#fff!important;color:#102a43!important;
    border-radius:13px!important;box-shadow:0 5px 18px rgba(8,36,81,.07)!important;backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  html[data-theme=ocean] body .hdec-tbar-logo{
    width:132px!important;height:36px!important;padding:2px 6px!important;border:1px solid #dce7f3!important;
    border-radius:10px!important;background:#fff!important;box-shadow:0 3px 10px rgba(16,42,67,.055)!important;
  }
  html[data-theme=ocean] body .hdec-gh-left,html[data-theme=ocean] body .hdec-gh-right{gap:10px}
  html[data-theme=ocean] body .hdec-gh-btn,
  html[data-theme=ocean] body .hdec-global-header .btn,
  html[data-theme=ocean] body .hdec-global-header .btn-sm,
  html[data-theme=ocean] body .hdec-global-header .back-btn,
  html[data-theme=ocean] body .hdec-global-header .link-btn,
  html[data-theme=ocean] body .hdec-global-header button,
  html[data-theme=ocean] body .hdec-gh-user-chip,
  html[data-theme=ocean] body .hdec-active-call{
    min-height:34px!important;height:34px!important;border-radius:10px!important;
    border-color:#dce7f3!important;background:#fff!important;color:#102a43!important;
    font-size:13px!important;font-weight:500!important;box-shadow:none!important;
  }
  html[data-theme=ocean] body .hdec-gh-btn:hover,
  html[data-theme=ocean] body .hdec-global-header button:hover{
    border-color:#4da3ff!important;background:#eaf4ff!important;color:#1265e8!important;
  }
  html[data-theme=ocean] body .hdec-active-call{border-color:rgba(34,197,94,.36)!important;background:rgba(34,197,94,.1)!important;color:#15803d!important}

  /* Navigation: 240px, clean outline icons, readable 16px labels. */
  html[data-theme=ocean] body .hdec-layout-sidebar{
    top:var(--hdec-one-header-h)!important;bottom:0!important;width:240px!important;padding:18px 14px!important;
    border-right:1px solid #dce7f3!important;background:#fff!important;color:#102a43!important;
    box-shadow:8px 0 24px rgba(16,42,67,.07)!important;backdrop-filter:none!important;
  }
  html[data-theme=ocean] body:not(:has(.hdec-global-header)) .hdec-layout-sidebar{top:0!important}
  html[data-theme=ocean] body .hdec-sidebar-tools{padding-bottom:14px;border-color:#dce7f3}
  html[data-theme=ocean] body .hdec-sidebar-search{
    height:46px;border:1px solid #dce7f3;border-radius:12px;background:#f7fafc;
  }
  html[data-theme=ocean] body .hdec-sidebar-search:focus-within{border-color:#4da3ff;background:#fff;box-shadow:0 0 0 3px rgba(18,101,232,.1)}
  html[data-theme=ocean] body .hdec-sidebar-search input{color:#102a43!important;font-size:14px!important;font-weight:400!important}
  html[data-theme=ocean] body .hdec-sidebar-group-toggle{color:#254570;font-size:14px;font-weight:700!important;letter-spacing:.01em;text-transform:none}
  html[data-theme=ocean] body .hdec-sidebar-link,
  html[data-theme=ocean] body .hdec-sidebar-action{
    min-height:46px;padding:7px 10px;border-radius:12px;color:#102a43;
    font:500 15px/1.3 Inter,Arial,sans-serif;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
  }
  html[data-theme=ocean] body .hdec-sidebar-link:hover,
  html[data-theme=ocean] body .hdec-sidebar-action:hover{transform:translateX(2px);border-color:#dce7f3;background:#eaf4ff;color:#1265e8;box-shadow:none}
  html[data-theme=ocean] body .hdec-sidebar-link.is-active{
    border-color:rgba(18,101,232,.18);background:#eaf4ff;color:#1265e8;
    box-shadow:inset 3px 0 #1265e8!important;
  }
  html[data-theme=ocean] body .hdec-sidebar-link-icon{border-radius:10px;background:#eaf4ff;color:#1265e8}
  html[data-theme=ocean] body .hdec-sidebar-avatar{border-radius:12px;background:#1265e8;box-shadow:0 6px 16px rgba(18,101,232,.18)}
  html[data-theme=ocean] body .hdec-layout-toggle{
    min-height:40px;height:40px;padding:0 13px;border:1px solid #dce7f3;border-radius:12px;
    background:#fff;color:#102a43;font:500 14px/1 Inter,Arial,sans-serif;box-shadow:none;
  }
  html[data-theme=ocean] body .hdec-layout-toggle:hover{transform:translateY(-1px);border-color:#4da3ff;background:#eaf4ff;color:#1265e8}

  /* Reusable SaaS surfaces across the existing modules. */
  html[data-theme=ocean] body :where(
    .ops-kpi,.ops-panel,.card,.module-card,.project-card,.cat-card,.hub-card,.summary-card,
    .metric-card,.kpi-card,.stat,.cal-nav,.cal-day,.act-card,.folder-card,.doc-card,.sheet-card,
    .quality-card,.leave-card,.admin-card,.form-card,.table-card,.content-card
  ){
    border-color:#dce7f3!important;border-radius:13px!important;background:#fff!important;
    box-shadow:0 4px 18px rgba(16,42,67,.06)!important;
  }
  html[data-theme=ocean] body :where(
    .ops-kpi,.card,.module-card,.project-card,.cat-card,.hub-card,.act-card,.folder-card,.doc-card,.sheet-card
  ){
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  }
  html[data-theme=ocean] body :where(
    .ops-kpi,.card,.module-card,.project-card,.cat-card,.hub-card,.act-card,.folder-card,.doc-card,.sheet-card
  ):hover{transform:translateY(-2px);border-color:#b8d4f3!important;box-shadow:0 10px 28px rgba(16,42,67,.1)!important}
  html[data-theme=ocean] body :where(.panel-head,.card-head,.modal-head,.ops-panel-head){border-color:#dce7f3!important}
  html[data-theme=ocean] body :where(.modal,.dialog,.drawer,.popover,.theme-pick-dropdown,.hdec-gh-more-menu){
    border-color:#dce7f3!important;background:#fff!important;color:#102a43!important;
    box-shadow:0 18px 44px rgba(16,42,67,.14)!important;
  }
  html[data-theme=ocean] body :where(input:not([type=checkbox]):not([type=radio]),select,textarea){
    border-color:#dce7f3;background:#fff;color:#102a43;border-radius:10px;
  }
  html[data-theme=ocean] body :where(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{
    border-color:#4da3ff!important;outline:0!important;box-shadow:0 0 0 3px rgba(18,101,232,.1)!important;
  }
  html[data-theme=ocean] body :where(.btn-primary,.primary-btn,.btn-blue,button[type=submit]:not(.danger):not(.leave)){
    border-color:#1265e8!important;background:#1265e8!important;color:#fff!important;
    border-radius:10px;font-weight:600!important;box-shadow:0 5px 14px rgba(18,101,232,.16)!important;
  }
  html[data-theme=ocean] body :where(.btn-primary,.primary-btn,.btn-blue,button[type=submit]:not(.danger):not(.leave)):hover{
    background:#0f56c7!important;transform:translateY(-1px);box-shadow:0 8px 18px rgba(18,101,232,.22)!important;
  }
  html[data-theme=ocean] body :where(.badge,.chip,.tag,.meta-tag,.info-tag){border-radius:999px}

  /* Dashboard scale and spacing from the supplied 1440px specification. */
  html[data-theme=ocean] body .proj-hero{padding:24px 32px!important;border-color:#dce7f3!important;background:#f7fafc!important}
  html[data-theme=ocean] body .proj-hero h1 .grad{background:none!important;-webkit-text-fill-color:#102a43!important;color:#102a43!important}
  html[data-theme=ocean] body .ops-dashboard{max-width:1440px;padding:30px 32px 48px!important}
  html[data-theme=ocean] body .ops-dashboard-head{margin-bottom:20px}
  html[data-theme=ocean] body .ops-dashboard-eyebrow{color:#1265e8;font-size:13px;font-weight:500;letter-spacing:.06em}
  html[data-theme=ocean] body .ops-kpi-grid{gap:16px;margin-bottom:20px}
  html[data-theme=ocean] body .ops-kpi{grid-template-columns:40px minmax(0,1fr);gap:10px;padding:14px}
  html[data-theme=ocean] body .ops-kpi-icon{width:40px;height:40px;border-radius:12px;background:#eaf4ff;color:#1265e8!important}
  html[data-theme=ocean] body .ops-kpi-copy strong{font-size:clamp(30px,2.15vw,32px)!important;font-weight:700!important;color:#102a43!important;letter-spacing:-.035em}
  html[data-theme=ocean] body .ops-kpi-copy span{font-size:14px!important;font-weight:500!important;line-height:1.3;letter-spacing:0;text-transform:none;color:#64748b!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  html[data-theme=ocean] body .ops-grid{gap:18px}
  html[data-theme=ocean] body .ops-panel{border-radius:14px!important}
  html[data-theme=ocean] body .ops-panel-head{padding:20px}
  html[data-theme=ocean] body .ops-panel-head h3{font-size:22px!important;font-weight:700!important}
  html[data-theme=ocean] body .ops-panel-head p{font-size:14px;line-height:1.55;color:#64748b!important}
  html[data-theme=ocean] body .ops-panel-kicker{font-size:13px;font-weight:500!important;letter-spacing:.06em}
  html[data-theme=ocean] body .ops-panel-body{padding:20px}
  html[data-theme=ocean] body .ops-panel-link{min-height:38px;padding:0 13px;border-color:#dce7f3;border-radius:10px;background:#fff;color:#1265e8!important;font-size:14px;font-weight:500!important}

  /* Image-reference refinement: colder canvas, blue ink and gradient navigation. */
  html[data-theme=ocean]{
    --hdec-primary:#1473f6;--hdec-light-blue:#3b9bfd;--hdec-navy:#082451;
    --hdec-pale-blue:#e2f3fe;--hdec-page:#f5fafe;--hdec-secondary:#526b94;--hdec-border:#dce8f5;
    --bg:#f5fafe;--bg2:#e2f3fe;--bg-2:#e2f3fe;--body:#f5fafe;
    --surface-hover:#e2f3fe;--text:#082451;--tx:#082451;--ink:#082451;--heading:#082451;
    --text-muted:#526b94;--muted:#526b94;--tm:#526b94;--text2:#526b94;
    --border:#dce8f5;--bd:#dce8f5;--line:#dce8f5;--border2:#cbdff0;
    --accent:#1473f6;--acc:#1473f6;--a1:#1473f6;--blue:#1473f6;
    --accent2:#3b9bfd;--accent-2:#3b9bfd;--a2:#3b9bfd;--blue2:#3b9bfd;
    --shadow:0 5px 20px rgba(8,36,81,.065);
  }
  html[data-theme=ocean] body{background:#f5fafe!important;color:#082451!important}
  html[data-theme=ocean] body :where(h1,h2,h3,h4,h5,h6,.topbar-title,.tb-title,.page-title){color:#082451}
  html[data-theme=ocean] body .hdec-global-header{border-color:#dce8f5!important;color:#082451!important}
  html[data-theme=ocean] body .hdec-tbar-logo{border-color:#dce8f5!important;box-shadow:0 5px 18px rgba(8,36,81,.07)!important}
  html[data-theme=ocean] body .hdec-gh-btn,
  html[data-theme=ocean] body .hdec-global-header .btn,
  html[data-theme=ocean] body .hdec-global-header .btn-sm,
  html[data-theme=ocean] body .hdec-global-header .back-btn,
  html[data-theme=ocean] body .hdec-global-header .link-btn,
  html[data-theme=ocean] body .hdec-global-header button,
  html[data-theme=ocean] body .hdec-gh-user-chip{border-color:#dce8f5!important;color:#082451!important}
  html[data-theme=ocean] body .hdec-layout-sidebar{border-color:#dce8f5!important;color:#082451!important;box-shadow:8px 0 25px rgba(8,36,81,.065)!important}
  html[data-theme=ocean] body .hdec-sidebar-search{border-color:#dce8f5;background:#f5fafe}
  html[data-theme=ocean] body .hdec-sidebar-link,html[data-theme=ocean] body .hdec-sidebar-action{color:#526b94;font-size:14px;font-weight:500!important}
  html[data-theme=ocean] body .hdec-sidebar-link:hover,html[data-theme=ocean] body .hdec-sidebar-action:hover{border-color:#dce8f5;background:#e2f3fe;color:#1473f6}
  html[data-theme=ocean] body .hdec-sidebar-link.is-active{
    border-color:transparent!important;background:linear-gradient(135deg,#1473f6,#3b9bfd)!important;color:#fff!important;
    box-shadow:0 10px 22px rgba(20,115,246,.22)!important;
  }
  html[data-theme=ocean] body .hdec-sidebar-link.is-active .hdec-sidebar-link-icon{background:rgba(255,255,255,.17)!important;color:#fff!important}
  html[data-theme=ocean] body .hdec-layout-toggle{border-color:#dce8f5;color:#082451}
  html[data-theme=ocean] body :where(
    .ops-kpi,.ops-panel,.card,.module-card,.project-card,.cat-card,.hub-card,.summary-card,
    .metric-card,.kpi-card,.stat,.cal-nav,.cal-day,.act-card,.folder-card,.doc-card,.sheet-card,
    .quality-card,.leave-card,.admin-card,.form-card,.table-card,.content-card
  ){border-color:#dce8f5!important;box-shadow:0 5px 20px rgba(8,36,81,.065)!important}
  html[data-theme=ocean] body .proj-hero{padding:30px 32px 14px!important;border:0!important;background:transparent!important}
  html[data-theme=ocean] body .proj-hero h1 .grad{-webkit-text-fill-color:#082451!important;color:#082451!important}
  html[data-theme=ocean] body .ops-dashboard{padding-top:20px!important}
  html[data-theme=ocean] body .ops-kpi{
    min-height:148px!important;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;
    gap:10px!important;padding:20px!important;border-color:#dce8f5!important;
  }
  html[data-theme=ocean] body .ops-kpi-icon{
    width:46px;height:46px;border-radius:12px;
    background:color-mix(in srgb,var(--kpi-color,#1473f6) 13%,#fff)!important;
    color:var(--kpi-color,#1473f6)!important;
  }
  html[data-theme=ocean] body .ops-kpi-copy{display:grid;gap:6px}
  html[data-theme=ocean] body .ops-kpi-copy strong{color:#082451!important}
  html[data-theme=ocean] body .ops-kpi-copy span{color:#526b94!important}
  html[data-theme=ocean] body .ops-panel-link{border-color:#dce8f5;color:#1473f6!important}
  html[data-theme=ocean] body :where(.btn-primary,.primary-btn,.btn-blue,button[type=submit]:not(.danger):not(.leave)){
    border-color:#1473f6!important;background:#1473f6!important;box-shadow:0 7px 17px rgba(20,115,246,.2)!important;
  }
  html[data-theme=ocean] body :where(.btn-primary,.primary-btn,.btn-blue,button[type=submit]:not(.danger):not(.leave)):hover{
    background:#0e62da!important;box-shadow:0 10px 22px rgba(20,115,246,.25)!important;
  }

  /* Default theme performance: flat paint and compositor-friendly motion only. */
  html[data-theme=ocean] body :where(#bg-canvas,.glow-orb){display:none!important}
  html[data-theme=ocean] body #cv{display:none!important}
  html[data-theme=ocean] body #cv + .card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  @keyframes hdecSaasEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
  html[data-theme=ocean] body :where(.ops-kpi,.ops-panel,.module-card,.project-card,.cal-panel,.act-panel){animation:hdecSaasEnter .28s ease both}

  @media(max-width:1200px){
    html[data-theme=ocean] body .ops-dashboard{padding-inline:28px!important}
    html[data-theme=ocean] body .ops-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  }
  @media(max-width:992px){
    html[data-theme=ocean]{--hdec-one-header-h:62px!important}
    html[data-theme=ocean] body .hdec-global-header{top:5px!important;left:6px!important;right:6px!important;height:52px!important;padding:5px 12px!important;border-radius:12px!important}
    html[data-theme=ocean] body .hdec-tbar-logo{width:124px!important;height:34px!important}
    html[data-theme=ocean] body .hdec-layout-sidebar{width:min(88vw,300px)!important}
  }
  @media(max-width:768px){
    html[data-theme=ocean]{--hdec-one-header-h:58px!important}
    html[data-theme=ocean] body .hdec-global-header{top:4px!important;left:5px!important;right:5px!important;height:50px!important;padding:5px 10px!important;gap:8px!important;border-radius:11px!important}
    html[data-theme=ocean] body .hdec-tbar-logo{width:104px!important;height:34px!important}
    html[data-theme=ocean] body .hdec-gh-btn,html[data-theme=ocean] body .hdec-global-header button,
    html[data-theme=ocean] body .hdec-gh-user-chip,html[data-theme=ocean] body .hdec-active-call{min-height:34px!important;height:34px!important}
    html[data-theme=ocean] body .ops-dashboard{padding:24px 20px 38px!important}
    html[data-theme=ocean] body .ops-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    html[data-theme=ocean] body .ops-kpi{min-height:auto!important;display:grid!important;grid-template-columns:40px minmax(0,1fr);align-items:center;padding:15px!important}
    html[data-theme=ocean] body .ops-kpi-icon{width:40px;height:40px}
  }
  @media(max-width:480px){
    html[data-theme=ocean]{--hdec-one-header-h:54px!important}
    html[data-theme=ocean] body .hdec-global-header{top:3px!important;left:4px!important;right:4px!important;height:48px!important;padding:4px 7px!important;border-radius:10px!important}
    html[data-theme=ocean] body .hdec-tbar-logo{width:38px!important;height:32px!important;object-fit:cover!important;object-position:left center!important;padding:2px!important}
    html[data-theme=ocean] body .ops-dashboard{padding:20px 12px 32px!important}
    html[data-theme=ocean] body .ops-kpi-grid{gap:10px}
    html[data-theme=ocean] body .ops-kpi{grid-template-columns:36px minmax(0,1fr);padding:13px;gap:9px}
    html[data-theme=ocean] body .ops-kpi-icon{width:36px;height:36px}
    html[data-theme=ocean] body .ops-kpi-copy strong{font-size:24px!important}
    html[data-theme=ocean] body .ops-kpi-copy span{font-size:12px!important}
    html[data-theme=ocean] body .ops-panel-head{padding:16px}
    html[data-theme=ocean] body .ops-panel-head h3{font-size:20px!important}
    html[data-theme=ocean] body .ops-panel-body{padding:16px}
  }
  @media(prefers-reduced-motion:reduce){
    html[data-theme=ocean] *,html[data-theme=ocean] *::before,html[data-theme=ocean] *::after{
      scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;
    }
  }
  @media print{
    html[data-theme=ocean] body{padding-top:0!important;background:#fff!important}
    html[data-theme=ocean] body .hdec-global-header,html[data-theme=ocean] body .hdec-layout-sidebar{display:none!important}
  }
